Jump to content
  • Advertisement

Archived

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

aker_jus

Getting position values from a matrix.

This topic is 5232 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

Because I am not very good at matrix math, suppose I have a D3DXMatrixTranslation (&matrix, 10,10,100); Now.. this matrix is built, but afterwards, what are the matrix elements that correspond to each x,y,z, so I can find them later?

Share this post


Link to post
Share on other sites
Advertisement
This generally only works with translation matrices.

Look in (4,1),(4,2),(4,3) for the translation values. (I might have that transposed. I don''t think so, but they might be in (1,4),(2,4),(3,4) instead. )


I like pie.

Share this post


Link to post
Share on other sites
Great, thanks about the translation. Is there any way I can get the rotation and scale values from the other matrices though?

Share this post


Link to post
Share on other sites

  • Advertisement
×

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!