GLUUNPROJECT(3G) | GLUUNPROJECT(3G) |
To compute the coordinates (objX, objY, and objZ), gluUnProject multiplies the normalized device coordinates by the inverse of model*proj as follows:
(objXobjYobjZW)=INV(PM)(2(winX-view[0])view[2]-12(winY-view[1])view[3]-12(winZ)-11)$INV()$ denotes matrix inversion. W is an unused variable, included for consistent matrix notation.