Andy wrote:

The second question I wanna ask is that how do I use lookAt()?


You must call invert() like this:

ct3d.lookAt(new Point3d(0, 0, 5f), new Point3d(0, 0, 0), new Vector3d(0,
-1, 0));
tg.invert();
tg.setTransform(ct3d);


Btw. Are you sure -Y is upwards in your universe? Seem to be an unusual asumption.

Hope that helps
Nikolai

----------------------------------------------
Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31  Fax: +45 65 93 29 99
WWWeb: http://www.ifad.dk
e-mail: [EMAIL PROTECTED]
----------------------------------------------

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