Janet,

The key is to note that moving your scene or moving the viewer is visually
equivalent.

I.e. you can either attach your behavior to the VIEW side of the scenegraph
(for example, one of the TranformGroups in the SimpleUniverse's
MultiTransformGroup) or you can put a TransformGroup as the root Group on
the SCENE side of the scenegraph and attach your behavior to that.

You have to decide how you are going to map your 2D input device (x,y mouse
coords) into 6 possible movements in 3D. No doubt mouse buttons are going to
come into play, and you will probably disallow movement in the Y direction!
Play around with a VRML viewer and see what the "standards" are.

Open up the source to MouseTranslate (inside utils JAR) and that will give
you a good basis for deriving your own MouseBehavior and handling AWT mouse
events/modifying the TransformGroup.

Best of luck!

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com


-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Janet Song
Sent: 06 January 2000 09:38
To: [EMAIL PROTECTED]
Subject: [JAVA3D] walk and rotate navigation


Hi all,

i'm doing an applet on viewing and would like to let the user walk and
rotate around in the scene. So far the com.sun.utils.** , dont allow me to
do so..
Q. Is there any way the com.sun.util.* mouse behavior can implement this?
Q if i have to implement my own mouse behaviour for the navigation, what r
the guidelines i must do? i understand how the behavior process event and so
on, what i am confuse about is what must be done to attach this behavior to
the viewer.. basically how would my scenegraph design look so i can get a
big picture of what i must do..

Thanks
Please do reply :-)

cheers

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to