is there any way by which i can extract the matrix made by glrotate or gltranslate or any other transformation?
Hi,
why do you want that matrix?
just in case any of these do:
-
You can get the current active modelview matrix by calling glGetFloatv(GL_MODELVIEW_MATRIX, mat);
(for more information, http://linux.die.net/man/3/glgetfloatv)) -
For how to generate those matrixes and others you can just google around and get something like this: http://gpwiki.org/index.php/3D:Matrix_Math