Setup a behavior that uses elapsedFrame(0) and have it set the view
transform to be your avatar's head transform.
Dave Yazel
> ----------
> From: Liming CHEN[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Friday, February 02, 2001 1:01 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
>
> Doug Gehringer wrote:
>
> > > From: Glenn Rowe <[EMAIL PROTECTED]>
> > >
> > > Using the Text2D class, I've created a Text2D object as follows:
> > >
> > > Text2D frontText = new Text2D("New string",
> > > new Color3f(1.0f, 1.0f, 0.0f), "Helvetica", 100, Font.BOLD);
> > >
> > > This displays OK. I now attempt to double the size of the text using:
> > >
> > > frontText.setRectangleScaleFactor(2.0f);
> > > frontText.setString("New string");
> > >
> > > But the text now completely vanishes.
> >
> > The rectangle scale factor starts out at 1/256. To double the size of
> the
> > Text2D, use a factor of 2/256. No, this isn't documenented.
> >
> > Doug Gehringer
> > Sun Microsystems
> >
> >
> ==========================================================================
> =
> > 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".
>
===========================================================================
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".