andreoq
25th June 2011, 14:07
Hi,
I used QMatrix4x4 to save my transformation. I could also translate my OpenGL Matrix with ;
qreal *data = m.data();
glTranslatef(data[12], data[13], data[14]);
but i cant calculate rotation degrees from QMatrix4x4 for glRotatef simply! With complex math's would be calculable but than no sin to use QMatrix.
Thanks
I used QMatrix4x4 to save my transformation. I could also translate my OpenGL Matrix with ;
qreal *data = m.data();
glTranslatef(data[12], data[13], data[14]);
but i cant calculate rotation degrees from QMatrix4x4 for glRotatef simply! With complex math's would be calculable but than no sin to use QMatrix.
Thanks