View Full Version : Mouse with Perspective Transformation

01-05-2003, 02:45 AM
How can i get real mouse coor
when i am using perspective transformation?

01-05-2003, 09:12 AM
Use the gluUnProject procedure. This is the format:

int gluUnProject(
GLdouble winx,
GLdouble winy,
GLdouble winz,
const GLdouble modelMatrix[16],
const GLdouble projMatrix[16],
const GLint viewport[4],
GLdouble * objx,
GLdouble * objy,
GLdouble * objz