Hi Borja :)

If I understand what you want you could do this:

    Get the view's transform:

        universe                (SimpleUniverse instance)

                Transform3D transformadaVista =
universe.getViewingPlatform().getViewPlatformTransform()

    And then rotate,translate,etc the transform

    For example:

        Locate it over (0,0,0) 30 meters up and looking to the ground:

                Transform3D transformadaRotacion = new Transform3D();
                transformadaRotacion.rotX((3*Math.PI)/2);
                Transform3D transformadaTranslacion = new Transform3D();

                transformadaTranslacion.setTranslation(new
Vector3f(0.0f,30.0f,0.0f));

                transformadaTranslacion.mul(transformadaRotacion);

                transformadaVista.setTransform(transformadaTranslacion);

        The same that if you want move the transform:

                Move to the right:

                        Transform3D transformadaAnterior = new
Transform3D();

transformadaVista.getTransform(transformadaAnterior);
                        transformadaRotacionDerecha.rotX(-Math.PI/180d);

transformadaRotacionDerecha.mul(transformadaAnterior);

transformadaVista.setTransform(transformadaRotacionDerecha);

        I supose you want do things like these ones.

-- Creo que es esto lo que quieres hacer aunque no se seguro, no me acuerdo
para que era lookAt ahora - me imagino que es para colocarte en un punto y
mirar al origen siempre, para eso tendr�s que hacer algo m�s o
implement�rtelo t� con lo de antes.

Regards.

-----Original Message-----
From: Borja Marcos Su�rez [mailto:[EMAIL PROTECTED]]
Sent: viernes 1 de junio de 2001 12:56
To: [EMAIL PROTECTED]
Subject: [JAVA3D] lookAt function..... its horrible


English
------------------------
Hello,

in my application I need that the user settles down the point from
which the objects are seen.  The destiny is always (0,0,0) and the
origin is a point (x, y, z) given by the user.

I have been several days treating to do using it the LookAt()
function, but it doesnt work nice.  In order to establish
a point in individual as front or top it works.... but when it is
something dynamic I have not idea.

I need to create a function with a Point3d as parameter and then it modifies
the View to watch from that point.

Can you give me some idea?

Thanks.

---------------------------------------------
Spanish
-----------
Hola,

en mi aplicacion necesito que el usuario establezca el punto desde el que se
ven los objetos. El destino es siempre el (0,0,0) y el origen es un punto
(x,y,z) dado por el usuario.

Llevo varios d�as tratando de hacerlo utilizando la funcion LookAt(), pero
no consigo casi nada. Para establecer un punto en particular como alzado o
planta funciona.... pero cuando es algo din�mico ya no se como hacerlo.

Necesito crear una funcion a la que paso un Point3d y que modifique la vista
para mirar desde ese punto.

Se os ocurre alguna idea?

Gracias.


----------------------------------------------------------
Borja Marcos Su�rez
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".

Reply via email to