Jump to content
  • Advertisement
Sign in to follow this  
bearsomg

OpenGL Getting Values for position vector (xyz, rotx roty rotz) from 4x3 Matrix

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

Hello. I am experimenting with a library that returns a 4x3 matrix representing the position of the camera. How would I get the values for pos x, pos y, pos z, rot x, rot y, and rot z from this matrix?



Thanks in advance!


EDIT: I figured out I cannot directly convert this type of matrix because it is not a standard a 4x3 matrix, the library has it's own stuff in there. The library can also create an OpenGL projection matrix (looks like an array of 16 values). How could I get the pos xyz and rot xyz from that matrix? The library is ARToolkit to help clarify.

Share this post


Link to post
Share on other sites
Advertisement
Hi,

Please read the ARToolkit documentation, it has one for sure.
If you read it thru, you will understand how the library works or how to work with it. Therefore you save a lot of time, because you do not have to wait for the answers on the forums.

What are you mean by " not a standard a 4x3 matrix"? A matrix is defined by columns x rows. It can not be for example: the first row has 4 colums but the second has only 3 clomuns.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!