
Quaternion to Matrix, column mayor. Howto?
Hi there!
I found a quaternion -> matrix, but it didn''t work. Then I found another one, and it only worked for z-axis. What''s going on??
Can someone please post "the correct" one? Preferably in column mayor since I''m using OpenGL.
Thanx...
"No lies of sugar can sweeten the sournes of reality"
}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]

[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
Conversion matrix in column major order:
1-2*(y*y + z*z) 2*x*y + 2*z*w 2*x*z - 2*y*w 0 2*x*y - 2*z*w 1-2*(x*x + z*z) 2*y*z + 2*x*w 0 2*x*z + 2*y*w 2*y*z - 2*x*w 1-2*(x*x + y*y) 0 0 0 0 1
This site could be useful:
www.magic-software.com
Lots of source code to use under a free license (read it carefully!), plus good documentation.
Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
www.magic-software.com
Lots of source code to use under a free license (read it carefully!), plus good documentation.
Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement