View Full Version : Finding A point on a Rendering Context?

Jack Dingler
05-02-2007, 09:09 AM
Ok, simplifying my earlier question...

If I have a given point in space, how do I find out at what screen coordinates, OpenGL will render it?

Then, given a point on the rendering device, how do I construct a line that represents the line of sight through that point?

If I know these two things, I can do the rest.

05-02-2007, 09:32 AM
1) gluProject
2) gluUnproject

Jack Dingler
05-02-2007, 09:53 AM
Thank you very much ZbuffeR!

Jack Dingler
05-02-2007, 10:45 AM
That works great!