Name
glu.UnProject -- map window coordinates to object coordinates
Synopsis
e,objx,objy,objz = glu.UnProject(winx, winy, winz, model, proj, view)
Function
glu.UnProject() maps the specified window coordinates into object coordinates using model, proj, and view. The result is stored in objx, objy, and objz. A return value of #GL_TRUE indicates success; a return value of #GL_FALSE indicates failure.

Please consult an OpenGL reference manual for more information.

Inputs
winx
specify the window x coordinate
winy
specify the window y coordinate
winz
specify the window z coordinate
model
specifies the current modelview matrix as a table
proj
specifies the current projection matrix as a table
view
specifies the current viewport as a table
Results
e
error code
objx
computed object x coordinate
objy
computed object y coordinate
objz
computed object z coordinate

Show TOC