For a matrix that has only rotation, the inverse is the transpose.
So first get the non-inverted rotation matrix mat, and use trans.set instead
of lookAt.
The columns of mat are the Rt, Up, Dir Vector3ds.

       Matrix3d mat;
       Transform3d trans;


        mat.setColumn( 0, Rt);        // Rt is unit vector to camera's right
        mat.setColumn( 1, Up);        // Up is unit vector for camera's Up
        mat.setColumn( 2, Dir);        // Dir is unit vector in negative
lookat direction

        trans.set( mat, Loc, 1.0);        // Loc is camera location

Mike

----- Original Message -----
From: "portsacero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 11:18 AM
Subject: [JAVA3D] lookAt()


> Hello guys,
>
> How can I get the the parameters for a Transform3D.lookAt(target,
> position and vector up) method from the inverted matrix of a Transform3D?
>
>
> Thanks!
>
>
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.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".

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