openGL position and orientation from modelview matrix
问题 My problem is the following: I have nested object in my opengl scene, and i only know their relative position and orientation. How do I get the absolute position and orientation of the inner object? I' thinking of calculating the modelview matrix of the inner object, and after that i have the current matrix, but how do i convert it to position and orientation? In other words, to two float vector, so I can call the following code: glTranslatef(position.x,position.y,position.z); glRotatef