Wether the scene or the camera moves is just a matter of where the behaviour is attached. Attach it to the viewplatform and the camera moves.
Using KeyNavBehaviour and sich is a predefined service (that you don't actually have in OGL/DirectX). Of cource you can implement your own movement. This can then be fully under your control. Thik of attaching the ViewPlatform to a TransformGroup That in turn is added somwhere to the Locale. Whatever you do with that TG, the camera will follow. - J ----- Original Message ----- From: "kindy huang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 4:14 AM Subject: [JAVA3D] walk through in a 3D scene > Dear all, > > I am wondering how to implement a smooth walking > through in a 3D scene in Java3D. Suppose the 3D scene > has been constructed, if I use mouse > behavior(MouseRotate etc) and/or KeyNavigatorBehavior, > it looks like that the 3D scene is being rotated, > translated, not like I am walking through in the > scene. Is there anything I didn't take care of or is > there any other way to better implement such walk > through? > > when using OpenGL and programming in C/C++, I can > decide the distance of translation and angle of > rotation, how can I do the same in Java3D? It seems > that everything is default. > > Thanks. > > - Mian > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > =========================================================================== > 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".
