I still dont understand this.

Lets see an example:

Front view:
    setTranslation (0,0,50);

Top view:
   setTranslation (0,50,0);
   rotY((Math.PI/180)*-90);

How can I do this two views with lookAt method?


Thanks in advance.

--
Borja


----- Original Message -----
From: "Dipl. Ing. Paul Szawlowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 9:00 AM
Subject: Re: [JAVA3D] set the view position


| You need all of these parameters to completely define the local coordinate system of 
|the camera. With the eye
| parameter you specify the translation, together with the center parameter you 
|specify the local z axes. But how to
| position the y and x-axes ? Therefore you specify the the direction of he positve x 
|- axis by doing the cross
| product of the direction vector and the up vector. Since it is defined which 
|coordinate system (left or right
| handed) is used, the third axes is also specified.
|
| Borja Marcos Su�rez schrieb:
|
| > I need that users set the position of the view. The method that I think i have to 
|use is myViewTransform.lookAt.
| >
| > It needs 3 parameters:
| > .- eye: the position that users set.
| > .- center: in my program is Point3d (0,0,0)
| > .- up: I dont have idea what this mean.
| >
| > I have looked the docs and I understand the frustrum idea, but not what is the 
|vector up.
| >
| > When I have front view I set the view position in (0,0,50), but what I have to put 
|with this method?
| >
| > Please help me... is urgent.
| >
| > ----------------------------------------------------------
| > Borja Marcos Suarez
| > mail: [EMAIL PROTECTED]
| > icq: 41472800
| > msn: [EMAIL PROTECTED]
| >
| > Java 3D Spanish Group - http://lapagina.de/java3d
| > Lista de correo [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".
|
| ===========================================================================
| 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