I had a requirement in Bullet physics with Opengl where I have modelview matrix but need to get the same matrix by calling gluLookAt. Thanks in advance.
how to convert modelview matrix to gluLookAt parameters?
1k views Asked by user2756362 At
1
From any 4x4 matrix we can get gluLookAt parameters which are CameraPos, CameraTarget, UpVector. Here is the code to get CameraPos, CameraTarget, UpVector from ModelView matrix.