Hello
I’ve a problem with GL_MODELVIEW_MATRIX and GL_PROJECTION_MATRIX because when I do:
glGetDoublev(GL_MODELVIEW_MATRIX, mvmatrix);
glGetDoublev(GL_PROJECTION_MATRIX, prmatrix);
I use mvmatrix and prmatrix for pass to gluUnProject, but their values are {0,…,0} and gluUnProject give me a mistake value.
I try to solve with glLoadIdentity, glMatrixMode and the problem continue.
Anybody knows why?
Thanks.
Josemi