Hi all,
Thanks for your responses for changing the
position of the camera. I found the following code
snippet for changing the position of the camera in the
archives.
Point3d eye = new Point3d(0.0, 0.0, 3.0);
Point3d center = new Point3d(0.0, 0.0, 0.0);
Vector3d up = new Vector3d(0.0, 1.0, 0.0);
Transform3D look = new Transform3D();
look.lookAt(eye, center, up);
look.invert(); // WHY? WHAT IS HAPPENING HERE
ViewingPlatform viewingPlatform =
simpleU.getViewingPlatform();
TransformGroup viewTrans =
viewingPlatform.getViewPlatformTransform();
viewTrans.setTransform(look);
I did not understand why they are using invert().
Could anyone please explain what is the actual process
going on in the matrices.
Thanks in advance,
Sagar.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.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".