PDA

View Full Version : Help for gluUnProject



yage0832
02-05-2004, 02:01 PM
I am trying to get the world coordinates (gluOrtho2D) from window coordinates.

Can someone refer me to some code using gluUnProject to do this?

Thanks.

targe
02-08-2004, 01:06 PM
Try this example:

"Converting from window to world coordinates":
http://www.cs.uaf.edu/~cs381/docs/unproject.cpp