Tagged Questions
The quaternion tag has no wiki summary.
0
votes
2answers
79 views
from normal to rotation matrix
(i'm on OPENGL)
i have a mesh O (object) and a mesh T (terrain).
i know a single triangle in T and i want to orient O to be aligned to that triangle (torate O to align to T in that point).
i have ...
1
vote
1answer
103 views
how to create a Quaternion from an Orientation Vector in xna
i have a Vector3 represents an Orientation in 3D , how to convert it to the corresponding Quaternion ?
is there any quick way ?
EDIT :
i want to add an angular velocity vector to the Orientation ...
1
vote
0answers
87 views
How do I correctly use dual quaternions for rotation and translation of an object?
Up until now I've handled a given object's rotation and translation separately using normal quaternions for rotation and vectors for translation. However I'd like to use dual quaternions to handle ...
2
votes
2answers
211 views
Why is my quaternion camera rotating around strange axes?
I can't get it to work for the life of me. Its rotating the camera in the global coordinate system, or some other random coordinate system, not the camera local coordinate system. WASDEC work ...
4
votes
1answer
121 views
How do I extract a translation vector from a dual quaternion?
I'm trying to do some things with rigid body dynamics using dual quaternions (these are not the same thing as normal quaternions!) and I'm so close to getting things to work. The problem I'm having is ...
1
vote
2answers
176 views
How can I orient a projectile along its flight path?
I have a projectile that is moving around the world (in a ballistics trajectory right now). I am currently keeping track of its position and velocity. I want to draw it oriented to its velocity, so ...
6
votes
3answers
591 views
How do I implement a quaternion based camera?
I looked at several tutorials about this and when I thought I understood I tried to implement a quaternion based camera. The problem is it doesn't work correctly, after rotating for approx. 10 degrees ...
8
votes
2answers
383 views
How can I rotate about an arbitrary point in 3D (instead of the origin)?
I have some models that I want to rotate using quaternions in the normal manner, except instead of rotation about the origin, I want it to be offset slightly. I know that you don't say, in 3d space, ...
1
vote
3answers
151 views
How should I model exact 90-degree rotations in 3D?
I'm familiar with quaternions... have used them in the past to model arbitrary rotations in 3D, as for a plane flying around with full pitch/yaw/roll freedom. Works great.
Now I'm working on a 3D ...
0
votes
2answers
249 views
How can I rotate a sphere in response to mouse movement?
I'm using jMonkeyEngine to develop a game. I'm good at scripting, but math usually goes over my head. I tried the Wiki page for Quaternion, but I was far too confused to figure this out myself :P
My ...
1
vote
3answers
325 views
Create quaternion based on where a unit is hit (shield effect as in Starcraft 2)
I'd like to implement a shield effect like that done for Protoss units in Starcraft 2. I'm guessing that the technique involved uses a partial sphere that is rotated to reflect where a unit is hit.
...
4
votes
3answers
207 views
Problem representing torque as a quaternion
Euler angles are much more intuitive to me than quaternions for representing 3-dimensional rotations. In fact, I barely understand quaternions at all. I use quaternions for rotation because people ...
3
votes
2answers
292 views
Quaternion understanding
I have some understanding problem concerning quaternions.
In order to have my world object rotate in the correct way, I need to invert their quaternion rotation while refreshing the object world ...
8
votes
1answer
308 views
Quaternions and rotation around world axis
Disclaimer: I am a professional games programmer, and use quaternions most days but they are close to black magic to me. I am relatively at home with math but imaginary numbers always confused me. I ...
1
vote
3answers
232 views
OpenGL Camera causes spatial distortion
I'm trying to implement a 3D camera of the "Orbit around the origin" variety in a game engine I'm developing in order to learn about 3D graphics and game programming. I have a basic handle on the ...