Archived

This topic is now archived and is closed to further replies.

pedorro77

Getting the rotation & translation from a matrix

Recommended Posts

Having a matrix with ... Translation(-10,0,0); RotateX(PI); Translation(10,0,0); (Rotation around a pivot) And if i unknow how much was rotated (and in which pivot) It''s possible to know the pivot, rotation and the location where is the object (without rotation).

Share this post


Link to post
Share on other sites
The translation vector is the 1st 3 values in either the last row or last column in the matrix (depending on whether the matrix is row- or column- oriented).

For rotation stuff, the following document from Magic-Software (Dave Eberly) will be enlightening:

RotationIssues.pdf

Graham Rhodes
Principal Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites
Thanks for your response and your time.

I don''t know too much about math notations. I hope (i need) one day to learn a little more about maths.

I was hope a DirectX function that solve my issue
It, is a simple matrix problem, there aren''t so much information in spanish about this.

I''d created a gif with my problem in order to make the question a bit cleaner.

http://personales.ciudad.com.ar/pedorro77/imagenes/1.gif

Any info will be appreciated.

Thanks,

PD: After see the gif... once made it the rotation how can i translate it (ie) 0,10,0 from the location where it is. (Rotation around a pivot affect the translation row)
If i multiplied a translation matrix by the result matrix (having the rotation & implict a translation) it doesn''t move from his location 0,10,0)

Share this post


Link to post
Share on other sites