PDA

View Full Version : [REQ] math or 3d programmer :)


ref
09-04-07, 07:11 PM
Can anybody help me with a routine to convert euler angles to quaternions and back?
I've adapted a routine I found in the net, but I'm having problems with quadrants, and I don't know why.
Here's what I've got :

http://img252.imageshack.us/img252/8118/curvenr1.jpg

As you see the curve jumps from + to - when it reaches certain values.

Ref