Skip to main content
GameDev.net gamedev.net
🔒 Locked

Grayscale Image

Started by arkansas Dec 24, 2002 at 7:41 AM 2 replies 200+ views
Original Post
arkansas
arkansas
Hey When I get farer away from the drawn mountains it''s like some parts are invisible. When I get close it''s drawing everything just fine. Backface culling are disabled so that must some kind of mistake. I could imagine that I didn''t draw the grayscale image properly. What could that be??
vincoof
vincoof
I seems like your far clipping plane is too close.
When you call gluPerspective (or maybe glFrustum?) you should set the ''far'' parameter a bit bigger.
CraZeE
CraZeE
it could as vincoof says it, ur far clipping plane is too near. follow his suggestion and change the parameters for gluPerspective.

however, arkansas'' description is a little ambiguous. it may also be the case that the near and far clipping plane is defined too large for the chosen depth resolution.
this can be fixed by using a higher bit depth for the zbuffer (24bit instead of 16bit) or, change both near and far clipping parameter of gluPerspective so that they do not cover too large a region.
larger distances reduce z-buffer precision, causing farther polygons to occasionally ''disappear'' or even overwrite nearer polygons...

hope this helps
To learn, we share... Give some to take some -
arkansas
arkansas
Thanks a lot.
It''s working now.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.