PDA

View Full Version : What's problem with gluProject and gluUnProject



Vector.Z
05-30-2005, 05:23 PM
Hi,

I have a question about gluProject and gluUnProject under the windows xp system.

This is the pesudo code snippet.
--
glMultMatrixd(...)
CPoint pnt1(100, 100), pnt2;
GLPoint glPnt;
gluUnproject(pnt, glPnt);
gluProject(glPnt, pnt2);
--
I found pnt2 is different with pnt1. Could you please tell me the reason?

Thanks lot.

Bob
05-30-2005, 09:58 PM
Neither gluProject not gluUnProject takes a CPoint and a GLPoint as parameters, so unless you have written your own versions of these functions, you better show us the code you're having problem with instead of this non-complete piece of pseudo-code.