You can try glGetFloatv (GL_MODELVIEW_MATRIX,data); where data is a pointer of type GLFloat. Use GL_PROJECTION_MATRIX if you are using projection. This might even be possible with the GEMgl objects?
cgc
Quoting cyrille henry cyrille.henry@la-kitchen.fr:
hello, I've got a question regarding translormation matrix with gem.
I'm using some combination of translate/rotate/translate etc to draw some shape. At the end of this shape, I want to draw a cube by exemple. the problem is that I want to draw the cube to a defined orientation.
Ss The cube position if defined with lot's of diferent translate/rotate, I'm not able to know it's curent orientation. I don't "know" it's position too.
so, is it possible to imagine an object that could output the curent transformation matrix into the pd patch?
if it's not possible, does anyone know how could I solve my problem.
thanks
Cyrille
GEM-dev mailing list GEM-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/gem-dev
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.