JOGL distance of rendered entities

Whenever I render anything about 10.0f away, it is not shown. Is there any way that you can set how far you see, or should I just scale down everything?


gl.glBegin(GL.GL_LINES);
   gl.glVertex3f(-0.5f, 0.0f, -10.0f);
   gl.glVertex3f(0.5f, 0.0f, -10.0f);
gl.glEnd();

Sounds like you might need to adjust your near and far clipping planes. The near plane should be as far away as possible while still encompassing what you’re trying to draw, and the far plane should be as close as possible, again without being closer than the things that you are drawing.

I see… thanks