Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: How do I convert a matrix to a rotation vector?  (Read 2079 times)
MenDAKE
Community Member
*
Posts: 407


« on: August 19, 2004, 12:42:36 AM »

TV seems to have plenty of functions to convert a rotation axis to a matrix or quaternion, but I can't seem to find any functions to do convert FROM a matrix or quaternion to a rotation axis. Am I overlooking something? I'm using C#, but any help in any language would be appreciated.
Logged
SalatalikTursusu
Community Member
*
Posts: 20


« Reply #1 on: August 19, 2004, 04:00:41 AM »

hi mendake,

first of all it seems you are working on rotations ... let me quide you to following post for detailed rotation informations : http://www.truevision3d.com/phpBB2/viewtopic.php?t=6136

secondly i will recommend you to use axiom.mathlib for matrix , quaternion , vector and such operations ... it's for c# and very good math library.

for a rotation example in c#, you can look at http://www.truevision3d.com/phpBB2/viewtopic.php?t=6045 ... this is very good sample for both programming structure and rotation examples ...

and for exracting rotation axis ; http://www.truevision3d.com/phpBB2/viewtopic.php?p=41760#41760 ... there are links for information on matrix & quaternions ...
Logged
MenDAKE
Community Member
*
Posts: 407


« Reply #2 on: August 19, 2004, 10:55:29 AM »

Thanks very much. I appreciate the help!
Logged
JohnPierre
Community Member
*
Posts: 1250


« Reply #3 on: September 05, 2004, 08:56:29 PM »

hey mendake, all you really need to know is that the information is already in the correct form, no conversion neccessary. all you need is

(i don't know C# but this should still be legible)

anglevector = vector(matrix.m31, matrix.m32, matrix.m33)

those are the x, y, and z rotations contained within the matrix

hope that helped

johnpierre
Logged

------------------------------------------
A computer once beat me at chess, but it was no match for me at kick boxing.
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks