Polygons fading away

I’m drawing a rather large scaled scene to the screen, and when I compile my program and view I notice that polygons after a certain distance arn’t getting drawn. Does anyone know what OpenGL function is making it do this? I’m using NeHe’s basecode… Thanks.

Without seeing how you have setup the view and size of your object, I think that your object is going outside the view area.

You may need to increase the area in which your are rendering to get the whole scene in or maybe scale the scene down to fit the window.

Are you using glortho or gluPerspective to set your view area?

Originally posted by Jmoses:
I’m drawing a rather large scaled scene to the screen, and when I compile my program and view I notice that polygons after a certain distance arn’t getting drawn. Does anyone know what OpenGL function is making it do this? I’m using NeHe’s basecode… Thanks.

[This message has been edited by nexusone (edited 04-01-2002).]

Ah, it’s gluPerspective that sets the distance… Thanks, Fixed it.