PDA

View Full Version : gluUnProject



Scott
10-27-2000, 11:59 PM
I am using gluUnProject in order to get object co-ords back in order to translate an object via mouse/keyboard use. The co-ords do not appear to be correct! Can anyone shed some light on this please. (2D project)

zed
10-28-2000, 12:29 PM
check to faq http://www.frii.com/~martz/oglfaq/
also u are sticking in the correct z value in your gluproject(..) use glReadPixels to find it out.
also be aware in gl window coord (0,0) is at the bottomleft of the screen