Jump to content
• Advertisement

#### Archived

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

# Getting the rotation & translation from a matrix

This topic is 5267 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

## 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

##### Share on other sites
Advertisement
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

##### 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

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5
frob
12
• Advertisement

• 9
• 21
• 11
• 9
• 17
• ### Forum Statistics

• Total Topics
632606
• Total Posts
3007383

×

## Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!