View Full Version : window coordinates V object coordinates

04-27-2001, 02:02 AM
hi there,
When the initial window size is specified through the function glutInitWindowSize( 1024, 768 ) for example, how should the objects be drawn in relation to this size? What is the relationship between these initial coordinates and the coordinates specified for each object in the world. Should be object coordinates be converted to window coordinates? http://www.opengl.org/discussion_boards/ubb/confused.gif

thanks in advance

05-02-2001, 07:03 AM
Just noticed that you didn't get a reply so: when you position your object withing your clipping planes it will be scaled by OpenGL. If doing a frustum, make sure that the object is farther away than the near plane and closer than the far. The size of the near plane ( left,right,top & bottom ) should be appropriate for your object ( draw it out on graph paper ) and the windows (x,y) coordinates will vary, for a given object point, depending on the near plane's size. Good luck,