I think that all it's ok now
Search found 37 matches
- Mon Mar 03, 2008 11:34 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Mon Mar 03, 2008 11:33 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Mon Feb 25, 2008 4:26 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
Ok i think i understand what you want but i don't know how do that. You explain me that the important it's the vector (direction) and it's stipulate by my Position Camera and my Origine of my vector, when i change my origine my vectors is recalculate and give it to me an impression of rotation. Ok b...
- Mon Feb 25, 2008 2:45 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Mon Feb 25, 2008 2:14 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
I do that no ? I try like that with no rotation for the moment, just in the direction in the right (0,1,0) rX.rotX(siapp.event.mData[JNIsiapp.SI_RX] *angularRate); rY.rotY(siapp.event.mData[JNIsiapp.SI_RY] *angularRate); rZ.rotZ(siapp.event.mData[JNIsiapp.SI_RZ] *angularRate); MatriceRotation.mul( r...
- Mon Feb 25, 2008 12:04 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Mon Feb 25, 2008 11:36 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
i find the code of function lookat it's that : public final void lookAt(Tuple3f eye, Tuple3f center, Tuple3f up) { /* Make rotation matrix */ /* Z vector */ Vector3f z = new Vector3f(); z.x = eye.x - center.x; z.y = eye.y - center.y; z.z = eye.z - center.z; z.normalize(); Vector3f y = new Vector3f(u...
- Mon Feb 25, 2008 11:28 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Mon Feb 25, 2008 11:11 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
For the moment i have that : VecteurTranslation.add(new Vector3d((siapp.event.mData[JNIsiapp.SI_TX] * sensitivity), (siapp.event.mData[JNIsiapp.SI_TY] * sensitivity), -(siapp.event.mData[JNIsiapp.SI_TZ] * sensitivity))); rX.rotX(siapp.event.mData[JNIsiapp.SI_RX] *angularRate); rY.rotY(siapp.event.mD...
- Mon Feb 25, 2008 11:02 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Sun Feb 24, 2008 2:15 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
Oupss, click to fast. It's my source code and the problem's is here : /* Point3d targetPos = new Point3d( To define, To define, To define);*/ /*Point3d camPos = new Point3d( To define ,To define ,To define);*/ /* Vecteur3d VectDirection = new Vecteur3d( Vector3d vectDirection = new Vector3d( To defi...
- Sun Feb 24, 2008 2:01 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
if (siapp.event.type == JNIsiapp.SiEventType.SI_MOTION_EVENT) { //Matrice de l'objet //Matrice de la caméra //Matrice de l'univers //Lecture de la Matrice de caméra à partir de la scène3D vueTransform = s3d.getVueTrans(); vueTransform.get(VecteurTranslation); vueTransform.get(MatriceRotation); //TRA...
- Sun Feb 24, 2008 1:56 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
Jim, i think i find a begin of solution if u look in class Transform3D (http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_2_API/j3dapi/javax/media/j3d/Transform3D.html#rotX(double)) u have the the function and u have that : lookAt public void lookAt(Point3d eye, Point3d center, Vector3d...
- Sun Feb 24, 2008 6:41 am
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145
- Thu Feb 21, 2008 5:20 pm
- Forum: Developer's Forum for Windows
- Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
- Replies: 27
- Views: 47145