• Advertisement
Sign in to follow this  

gluProject usage

This topic is 4889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

gluProject projects the given point with the two matrices and it returns the screen position in X,Y,Z. So, to then draw at that point, can the modelview and projection matrices be set to the identity matrix? I currently do that and disable depth tests to be safe and try to draw a quad around the projected point and I do not see the point. Any suggestions of what I am missing?

Share this post


Link to post
Share on other sites
Advertisement
gluProject also does the viewport transform, so the point returned can not be passed to OpenGL again, given identity matrices, to get the same point. If you pass the returned point to OpenGL, the point would, effectively, be transformed by the viewport transform twice before it is rasterized.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement