Search found 6 matches
- Fri Mar 06, 2009 10:53 am
- Forum: Developer's Forum for Windows
- Topic: using opengl's function glRotate for rotations
- Replies: 9
- Views: 23172
define these: float accumMatrix[16]; float m3dx[16]; float m3dxNew[16]; 1. initialize accumMatrix to identity 2. generate a rotation matrix (m3dxNew) from the pRotation data that comes from the sensor. 3. multiply m3dxNew and accumMatrix to produce m3dx 4. assign m3dx to accumMatrix 5. use the accum...
- Mon Aug 18, 2008 6:33 am
- Forum: Developer's Forum for Windows
- Topic: Rotation about alternate axis
- Replies: 2
- Views: 9110
Rotation about alternate axis
I have rotation in our new application working well. Moving the puck causes rotation in the corresponding axis. Now, I want to provide an option so that rotation mimics our Catia. That is, rotation of the puck causes rotation of the models about the axis that are aligned with the screen. ie. rotatio...
- Fri Mar 21, 2008 8:51 am
- Forum: Developer's Forum for Windows
- Topic: using opengl's function glRotate for rotations
- Replies: 9
- Views: 23172
- Thu Mar 20, 2008 8:47 am
- Forum: Developer's Forum for Windows
- Topic: using opengl's function glRotate for rotations
- Replies: 9
- Views: 23172
I read the values from the device and assign to local values in the function as seen here. ra3 = pRotation->Angle * 60.0; rx3 = pRotation->X; ry3 = pRotation->Y; rz3 = pRotation->Z; If I use ra3 in the function directly, the model rotates fine except that when I let go of the cap, the model recenter...
- Thu Mar 20, 2008 8:04 am
- Forum: Developer's Forum for Windows
- Topic: using opengl's function glRotate for rotations
- Replies: 9
- Views: 23172
I have scaled the angle so that the rotation works great initially. The problem comes when reversing the cap which changes the axis value from +1 to -1 for example on the Y axis. The accumulated angle remains the same at that point but the object immediately rotates to the opposite direction because...
- Thu Mar 20, 2008 6:31 am
- Forum: Developer's Forum for Windows
- Topic: using opengl's function glRotate for rotations
- Replies: 9
- Views: 23172
using opengl's function glRotate for rotations
We use the mouse for 3D navigation in Catia V5 and it works great. We are now trying to apply it to an in house application. I have the SDK and can read the translation and rotation values in the new program with no problem. The device sends the normalized x,y,z rotation vector and angle about the v...