Just add ViewPlatform to a TrasformGroup, and here u go. To move the
VP around the scene u need either to handle AWTEvents or describe
Java3D behavior WakeupOnAWTEvent. U can also use KeyNavigator (or smth
like that) class in util package, but it used to (or still) have some
bugs (incorrect positioning during rotation). As to the second way,
just create an array of X,Z coordinates (positions) and read
consequently the array on frame elapsed events. There are certainly
more advanced means using less points and approximation, but the one i
pointed out is the simplest one to my mind.

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
P> Hi,
P>    Up until now, I have just been able to move objects in a scene, i.e. -
P>    spin them, rotate them around another object etc.
P>    I was wondering if it is possible to keep the object at a fixed point,
P>    and move the view position instead.
P>    There's two ways I'd like to be able to do this:
P>    (1) - Click on buttons to move view left\right, up\down etc.
P>    (2) - Plot a fixed path around an object in the code
P>          (A figure of eight for example)

P>     Can anyone tell me where I can find how to do this? I think I have an
P>     example of how to do (1), but I haven't a clue about (2)

P> Thanks for any help,

P> regards,

P> PK.

P> ===========================================================================
P> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
P> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
P> [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