PDA

View Full Version : from feedback buffer to gluUnProject



122100
09-08-2004, 08:55 AM
from feedback buffer i got the xMax, xMin, yMax
yMin,zMax, zMin values
I want to use gluUnproject to turn them into 3D coordinate, but i failed!the result is not right!
gluUnProject((GLdouble)m_xMin,
(GLdouble)m_yMin,
(GLdouble)m_zMax,
dModelMatrix,
dProjMatrix,
iViewPort,
&ObjectX,
&ObjectY,
&ObjectZ);
??????

122100
09-08-2004, 09:23 AM
i use the glutLookAt function in my program!
is there any thing about it?