You don't need to set up a Matrix4d. You just get the viewplatform
transform3d from the simpleUniverse. Transform3D has a helper method called
"lookAt" that takes a camera position, lookAt point, and "up" direction.
Many posts on this discussion group on how to use it.
> -----Original Message-----
> From: Sterling Wright [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 22, 2000 11:36 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Rotation about a target
>
> Hello all,
> I am new to Java and graphic programming, and am trying to rotate the
> ViewPlatform around a lookat point. I have the correct Matrix4d setup for
> rotation about the X, Y and Z axis but don't know how to use it in Java3D?
> The steps I take are:
> 1) Construct the Matrix4d and initialize it
> 2) Set the Matrix4d in the Transform3D
> 3) Set the Transform3D in the TransformGroup above the ViewPlatform
> 4) Run program
>
> My ViewPlatform translates to the point but doesn't rotate to my lookat
> point(which is the origin (0,0,0)).
>
> I want to use this as a helper method to enter a lookat point and a camera
> position and have the ViewPlatform rotate to my camera target.
>
> Any help, or source will be appreciated
> Sterling Wright
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.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".