PDA

View Full Version : Getting rotating, scaling and translating data from the modelview matrix?



tirengarfio
08-28-2006, 03:42 AM
Hi to all!

is it possible to find from the modelview matrix the rotating, translating and scaling variables in an object in order to write them after in glRotate, glScale and glTranslate functions?

08-28-2006, 04:21 AM
glGetFloatv(GL_MODELVIEW_MATRIX, ...)

08-29-2006, 10:02 AM
It seems that tirengarfio has seen fit to triple post. Perhaps he's going for a record.

http://www.opengl.org/discussion_boards/ubb/ultimatebb.php?ubb=get_topic;f=3;t=014693