PDA

View Full Version : Use of GluUnproject



10-30-2002, 10:30 AM
Has anyone have any experience of using the above routine. It is supposed to map any windows screen coordinate to real world coordinate.

GluUnproject winx,winy,winz, modelviewmatrix, projectionmatrix, viewportmatrix, objx,objy,objz

Regardless of what values of what I use for winx, winy, winz, I get the same values back for objx, objy and objz.

Where am I going wrong??

Many thanks