• Advertisement

Archived

This topic is now archived and is closed to further replies.

Grayscale Image

This topic is 5540 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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??

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement