The lookAt function set the eye postion to eyePos, looking at the center
point, with up as the viewer's orientation. Here is the code I use.
getVpTransformGroup() returns simpleU.getViewingPlatform().getTransformGroup()
Transform3D viewTrans = new Transform3D();
viewTrans.lookAt( eyePos, center, up );
viewTrans.invert();
getVpTransformGroup().setTransform(viewTrans);
At 03:16 PM 7/22/2002 +0100, you wrote:
>How do I use the lookAt() function? I'm a bit dopey!
>cheers
>KP
>
>--- Lan Wu-Cavener <[EMAIL PROTECTED]> wrote: > You may
>use LookAt() function in Transform3D class.
> > I don't know how to
> > control the time.
> > Just an idea.
> >
> >
> >
> > At 02:34 PM 7/22/2002 +0100, you wrote:
> > >Hi everyone,
> > > I want to move the view platform, so it looks
> > down
> > >on my scene (a computer room). Then I would like to
> > >move to a different view, move the platform from
> > one
> > >place (birds eye) to another, during the running of
> > >the program.
> > >
> > >I'm not sure how to move the view platform to the
> > >birds eye view I require, any suggestions or code
> > >would be much appreciated!
> > >cheers
> > >KP
> > >
> > >
> > >__________________________________________________
> > >Do You Yahoo!?
> > >Everything you'll ever need on one web page
> > >from News and Sport to Email and Music Charts
> > >http://uk.my.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".
> >
> > Lan Wu-Cavener
> > Dept. of Landscape Architecture
> >
> >
>===========================================================================
> > 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".
>
>__________________________________________________
>Do You Yahoo!?
>Everything you'll ever need on one web page
>from News and Sport to Email and Music Charts
>http://uk.my.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".
Lan Wu-Cavener
Dept. of Landscape Architecture
===========================================================================
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".