GLint gluUnProject( GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ)
To compute the coordinates proj as follows:
"INV( )" denotes matrix inversion. W is an unused variable, included
for consistent matrix notation.
objX objY objZ W = INV(PM )
2 (winX
view[0] ) /
view[2]
1
2 (winY
view[1] ) /
view[3]
1
2 winZ 1
1
glGet,
See Also
gluProject