Just ckecking...
Did you invert the transformation after LookAt method?
ie.,
        cameraTr.lookAt(eye, centre, up);
        cameraTr.invert();
        cameraTG.setTransform(cameraTr);
As pete described, the up vector is just the general direction that you
want it to be pointing up.

rOnn c.

On Thu, 18 Feb 1999, Pete Tinker wrote:

> I have *never* figured out what lookat does -- it certainly doesn't work as
> advertised.  I end up with the wrong position and the wrong orientation.
> 
> The "UP" vector supplies the "roll" information so lookat can construct a
> matrix with the proper orientation.
> 
> At 04:16 PM 2/18/99 +0100, Olszowy Karine wrote:
> >Could someone tell me what is the third value of the
> >lookAt method of a Transform3D ?
> >
> >In the specification it is said that is the frustrum's
> >up direction...
> >
> >Does this function work good ?
> >
> >Thanks for your answer.
> >
> >-- 
> >---------------------------------------------------------------
> >-     Karine  OLSZOWY                Ecole Superieure         -
> >-  1 avenue de Provence                    en                 -
> >-      06600 ANTIBES              Sciences Informatiques      -
> >-                                                             -
> >-     [EMAIL PROTECTED]           http://www.essi.fr/~olszowy   -
> >---------------------------------------------------------------
> >=====================================================================
> >To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> >Java 3D Home Page: http://java.sun.com/products/java-media/3D/
> >
> >
> 
> Pete Tinker
> HRL Laboratories, LLC
> [EMAIL PROTECTED]
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
> 

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to