Liming,

In my program, I have attached the ViewPlatform to a BranchGroup. Then
throughout the course of the program, I can move that BranchGroup (with the
ViewPlatform attached) to any location in my SceneGraph (including moving
objects). This eliminates the need to track the desired position of the
moving object and update the transform above the ViewPlatform. J3D does it
for me.

It sounds like this might solve your problem. Let me know if this isn't
clear.

Raffi

-----Original Message-----
From: Liming CHEN [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 1:02 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] how to move ViewPlatform


Hi,

I built a avatar and want to put the ViewPlatform on the avatar's head, so
when
the avatar move the view (the scene) move too. I can position the
Viewplatform
on the avatar's head using the TransformGroup above the ViewPlatform and
also
can adjust the view direction so that it appear that the scene is viewed
from
the avatar's eyes.

The problem is when the avatar move (say walking), how can I use the
transform
of the avatar's head to  move the ViewPlatform? Both the TransformGroup of
the
ViewPlatform and the avatar's head have their own parent so it is impossible
to
add one as child of another or versus vice. Furthermore, when the avatar is
animated using Interpolators, how can we get the avatar's head transform at
each frame(or at least each knot) and then pass to the transform of the
ViewPlatform?

Thanks

Liming

===========================================================================
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