Search found 37 matches

by lololem
Mon Mar 03, 2008 11:34 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Tchao Jim

I think that all it's ok now ;)
by lololem
Mon Mar 03, 2008 11:33 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Ok jim it's run. I look the code of Keyboard and I had a revelation. The source code for SpaceMouse for somebody who will need it : public void pollAndProcessInput() { try { if (firstTimeJNI) { initialize(); siapp = new JNIsiapp(); siapp.SiInitialize(); siapp.SiOpenWinInit(nomFrame,"eventCallba...
by lololem
Mon Feb 25, 2008 4:26 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Mon Feb 25, 2008 2:45 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

yes it's that,

Now how i adapt my three DOF Rotation ?

I have to change the target position?
by lololem
Mon Feb 25, 2008 2:14 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Mon Feb 25, 2008 12:04 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Sorry i do a mistake is that : Point3d camPos = new Point3d( VecteurTranslation.x ,VecteurTranslation.y ,VecteurTranslation.z); Point3d targetPos = new Point3d( 0, 0, 0); and not the inverse. There is not more than a vector of direction
by lololem
Mon Feb 25, 2008 11:36 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Mon Feb 25, 2008 11:28 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

I may have given you a Java version of that. If not, it converts to Java easily.
I wouldn't say no !!!
by lololem
Mon Feb 25, 2008 11:11 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Mon Feb 25, 2008 11:02 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Ok no problem, i understand that

My problem is just how adapt my matrice of rotation with my upVector ?

and What is this Twist parameter?
by lololem
Sun Feb 24, 2008 2:15 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Sun Feb 24, 2008 2:01 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Sun Feb 24, 2008 1:56 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

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...
by lololem
Sun Feb 24, 2008 6:41 am
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Jim where i can download the source to CityFly please.

I search in SDK but for C++, you have just

- AtlCube3d.zip
- Cube3DPolling.zip

Thanks
by lololem
Thu Feb 21, 2008 5:20 pm
Forum: Developer's Forum for Windows
Topic: Java3D : SpaceMouseDevice : Object Mode and Camera Mode
Replies: 27
Views: 47129

Ok jwick,

thanks for u long answer.

I translate that and i try most rapidely.

I give you fast news

++