PDA

View Full Version : Increasing viewing depth



camoguard
02-01-2006, 07:17 AM
Ok, I have a 3d box when I move it away 10 OpenGL distance units, it disappears and yet, it's big enough on the screen that I would like to see it get smaller and smaller until my monitor can't display it.

I would be happy if I knew how to set it to draw at 20 OpenGl distance units away.

cam

Aeluned
02-01-2006, 07:53 AM
the last two parameters of the glPerspective call set the near and far clipping planes.

increase the value of the last parameter (far clip) in glPerspective to push your far clip plane back.

Rodrix
02-02-2006, 05:06 AM
Hi! :)
I had the same question as you did and posted it!

Read this post and it will get you the answer:
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=019933

Hope it's useful! :)