Depth increasing

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.

i found the problem thanks anyway.

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.

Thanks

Zee

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.

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);