Problem with nested Transform-nodes 
Author Message
 Problem with nested Transform-nodes

Hi,
I've got three Transform-nodes:

DEF A Transform { children [
   DEF B Transform { children [
      DEF C Transform { children [
         DEF BOX Shape { geometry  ....
                      appearance......
         }
      ]}
   ]}
]}
Now my problem: I want to rotate BOX with A in x-direction and with B in

y-direction, but I do NOT want A to rotate B.
So I don't want any interaction between the Transform-nodes, but every
node should rotate BOX in another direction.
Is this possible ?
Is there any possibility to write a scriptnode which can do this ??????

   Thanks in advance

        Peter



Fri, 17 Aug 2001 03:00:00 GMT  
 Problem with nested Transform-nodes
Peter,

The easiest way to do this is to use a single Transform node with a script
setting the value of the rotation field.  You can have 3 different eventIns
for the script.  Each eventIn will generate an eventOut that rotates the box
along a different axis.


        Information Visualization Specialist & vrml Educator
        Daly Realism - Interactive Web Solutions
             (http://www.realism.com)

Treasurer, LA VR User's Group:                        http://lavug.org/

Quote:

> Hi,
> I've got three Transform-nodes:

> DEF A Transform { children [
>    DEF B Transform { children [
>       DEF C Transform { children [
>          DEF BOX Shape { geometry  ....
>                       appearance......
>          }
>       ]}
>    ]}
> ]}
> Now my problem: I want to rotate BOX with A in x-direction and with B in

> y-direction, but I do NOT want A to rotate B.
> So I don't want any interaction between the Transform-nodes, but every
> node should rotate BOX in another direction.
> Is this possible ?
> Is there any possibility to write a scriptnode which can do this ??????

>    Thanks in advance

>         Peter



Fri, 17 Aug 2001 03:00:00 GMT  
 Problem with nested Transform-nodes
Hello,
when using a single Transfrom-node, it is not possible to hold an rotation
while rotating around another axis. each time you rotate around one axis the
box will jump to these values without  holding the values from previous
rotations.

        Peter

Quote:

> Peter,

> The easiest way to do this is to use a single Transform node with a script
> setting the value of the rotation field.  You can have 3 different eventIns
> for the script.  Each eventIn will generate an eventOut that rotates the box
> along a different axis.


>         Information Visualization Specialist & VRML Educator
>         Daly Realism - Interactive Web Solutions
>              (http://www.realism.com)

> Treasurer, LA VR User's Group:                        http://lavug.org/



Sat, 18 Aug 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Rotating Transform-nodes from a java node

2. Problem with touch sensors in a nested Transform

3. Problem with touch sensors in a nested Transform (Oops, I mistyped in previous email)

4. Alignment Problems in a Transform node

5. nested transforms

6. nested transforms

7. Transform nesting in Cortona

8. transformations in transform node

9. Transform Node's "center" field

10. Transform Node and add/remove children - corridor.wrl (0/1)

11. How to pass Transform node into a PROTO?

12. Depth of nested grouping nodes...

 

 
Powered by phpBB® Forum Software