how to size screen according to geometry

I’m reading grids, lines, etc… from a file and when I display them, they are not showing up on the screen. So I think there being drawn offscreen?!

So how do I know how to size the screen? Like, is it something to do w/ the viewing or modeling translation (I have the red book but it’s still not clear to me)?

Any big hints or help, thnxs.

Will

If you are working in a 2D orthographic mode (HUD, GUI etc…) you should use something like the following:

if width and height are set to 800 and 600 respectively, you can then use gl.glVertex3f() with specific locations in the 800 by 600 area. For example. a line from point 100, 200 to 700, 300 would use vertex calls like the following:

gl.glBegin(GL.GL_LINES);
gl.glVertex3f(100.0f, 200.0f, 0.0f);
gl.glVertex3f(700.0f, 300.0f, 0.0f);
gl.glEnd()

Hope this helps.