Depth Buffer causes artifacts
Hi everyone, I'm using openGL to simply draw the Earth. The problem is, when I turn on depth buffering I get artifacts that look like this:
If I turn if off, then it looks normal as below:
has anyone else seen this?
Thanks!
Bolt
That looks like a problem with either your projection matrix, the polygon depth values, or the depth func is reversed (glDepthFunc(GL_GREATER))
Quote:Original post by agi_shi
Give us the code where you create the projection matrix.
Okay, I won't be able to post until tomorrow. Thanks in advance for the help!
Quote:Original post by V-man
That looks like a problem with either your projection matrix, the polygon depth values, or the depth func is reversed (glDepthFunc(GL_GREATER))
Thanks for both of your replies.. Agi and Mr. "V". As it turns out, it was my projection matrix. I set the near plane too small. :(
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement