PDA

View Full Version : Polygons fading away



Jmoses
04-01-2002, 12:46 PM
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.

nexusone
04-01-2002, 12:56 PM
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).]

Jmoses
04-01-2002, 03:11 PM
Ah, it's gluPerspective that sets the distance... Thanks, Fixed it.