View Full Version : Depth increasing

Starnut coder
01-18-2001, 09:30 PM
I made a 3dimensional world through which i can walk, but the player can only see a specific distance anything after this is not drawn. How can i increase the depth.
I want to be able to see objects even if they are really far away and small.

Starnut coder
01-18-2001, 09:41 PM
i found the problem thanks anyway.

01-20-2001, 07:12 AM
Hi Starnut

I am having the same prob it seems that i can only see 100 units into the scene anything further than that slowly gets eaten into a black void

if u have found the soloution can u share the knoledge.

I am using win32 not glut.



Michael Steinberg
01-20-2001, 02:44 PM
When you set up the prohection with glOrtho or gluPerspective, you can set up the near and far clipping plane. You should, however, keep the near plane as far away as possible and the far plane as near as possible to avoid a great zbuffer precision loss.

Starnut coder
01-20-2001, 06:04 PM
if u have found the soloution can u share the knoledge.

Yes i just changed the gluPerspective code.

from gluPerspective(60, (GLfloat)w / (GLfloat)h, 1, 30);

to gluPerspective(60, (GLfloat)w / (GLfloat)h, 1, 100);