Hello. I’ve been looking around on these forums, Googled it, and also looked through the methods in GL and GLU. That said, I haven’t been able to hunt down any method of obtaining the current transformation matrix. Is this possible, and if so, how?
Thanks for any help.
Edit:
Well, I appear to have found it. If I understand correctly, I use
float[] transform = new float[16];
gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, transform, 0);
if I want it in float precision.
However, this is printing out something I find a bit strange. Is the model view matrix affected directly by calls to GLU.gluLookAt? Furthermore, does calling gl.glLoadIdentity() erase the effects of GLU.gluLookAt?