PDA

View Full Version : Coordinates in OpenGl, where are screen ends?



04-08-2000, 03:13 PM
this stupid gl coords http://www.opengl.org/discussion_boards/ubb/smile.gif, i thought it was some sort of ratio so ends of screen would allways be a (1.0f,1.0f) but no it is not http://www.opengl.org/discussion_boards/ubb/frown.gif
can someone explain those censord(gash darnit) x.xf,y.yf coordinates???

ben
04-09-2000, 03:31 AM
Hello,

The coordinates depend on what you're talking about. Do you want to get actual screen coordinates? Do you want to get client coordinates? Do you want normalized device coordinates? The answers to these questions will help alot.

If you are looking for normalized device coordinates (this is basicially the world coordinate with the modelview, projection and viewport transformations applied). You can look in the OpenGL redbook for a good explanation.

If you can clarify your question, I will be happy to help you some more.

04-09-2000, 02:41 PM
what the diff between screen and client coords and normal?