Strange value from gluUnProject
I am developing an application that allow user draw in 3D scene. I start
with a small program: track the mouse click to receive the coordinate (x,y,z)
I wrote in the function OnLButtonDown
(as Martinijy's solution ) :
gluUnProject((GLdouble)point.x, (GLdouble)point.y, (GLdouble)0, model, proj, view, &x, &y, &z );
But the result shock me ! They produce some great values, I can't
continue processing with them.
Please help me to solve this prolem !
Re: Strange value from gluUnProject
hmm do a search on picking in this forum, there are lots of posts...
(fourth time wirting this comment in 2 days...gee people search in here before asking..)