Original Post
Hi, I´ve implemented an app using picking, but I want to make it more general retrieving the projection matrix from the system instead of passing manually the arguments with gluPerspective() or glOrtho() like this: When I change gluPerspective() for glMultMatrixd( projection ) it doesn´t work anymore. Wasn´t it suppose to be the same thing??? Why´s that? Thanks in advance! [Edited by - Himura-San on January 21, 2006 8:35:56 AM]
glGetDoublev( GL_PROJECTION , projection );
glRenderMode(GL_SELECT);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
gluPickMatrix(mouse_x , viewport[3] - mouse_y , 2.0, 2.0, viewport );
gluPerspective( 45, (GLdouble)viewport[2] / ( GLdouble) viewport[3] , 1.0, 150.0 );
.
.
.