Strange problem...
In nehe''s code, in gluperspective, he has the perameter that determines ho close an object can be before it get''s removed, and h uses 0.1... this causes very slight graphical errors in full screen mode (but not windowed)... Setting it to an even lower value makes this even more appearent. Setting it to one works fine though... Why??
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
I think you are talking about ''teeth'' around edges of polygons.
It''s because the depth value of a pixel in the depth buffer is determinded from its real depth value affected by the distance
of near and far plane. If your objects are small, and your depth buffer has lower bit depth (ex. 16 bits) then lot of pixels have
the same final depth value causing wrong depth tests storing wrong pixels to color buffer. So to eliminate these artifacts,
you have to play with near/far plane, depth bits and size of your objects ;-)
It''s because the depth value of a pixel in the depth buffer is determinded from its real depth value affected by the distance
of near and far plane. If your objects are small, and your depth buffer has lower bit depth (ex. 16 bits) then lot of pixels have
the same final depth value causing wrong depth tests storing wrong pixels to color buffer. So to eliminate these artifacts,
you have to play with near/far plane, depth bits and size of your objects ;-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement