Hi,
I'm trying to convert window coordinates to object coordinates. There's a gluUnProject in GLU class, which requires current modelview, projection matrices and viewport.
My question is how to get those matrices? I tried gl.glGetIntegerv (GL11.GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES, model, 0); and ((GL11) gl).glGetFloatv(GL11.GL_MODELVIEW_MATRIX, modelf, 0); but the first one returns an array of zeros, and the other one just shows an "method not implemented" error.
Is gluUnProject the correct method for this purpose (i.e. window coordinates --> object coordinates) ?