Sign in to follow this  
vonsatan

Strange issues with flickering triangles

Recommended Posts

So I have this issue that only appears on nVidia cards..... and seems to be related to the way multiple frames are drawn (capturing one frame in PIX doesn't exhibit the issue) On a solid mesh, some trangles randomly flicker on and off, like they are being culled somewhere (but the depth buffer appears to still be written to).... this only happens on shaders that use ps_3_0.... I'm at a bit of a loss .... anyone experienced anything similar?

Share this post


Link to post
Share on other sites
Sounds like Z-buffer precision issues to me. What format is your depth buffer, and what are your near and far clip planes set to in your projection matrix? You want the near clip plane as far as possible (And definitely non-zero, ideally 0.1f or further), and the far clip as close as possible (No higher than around 1000.0f for a 16-bit depth buffer).

Share this post


Link to post
Share on other sites
thanks for the reply...

hoever, highly unlikely to be depth buffer precision problem, the problem occurs on entire polygons(any size) ....throughout the scene. (also, the problem disappears when a replayed in a PIX capture frame) And changing the near/far planes doesn't help.

so strange...... introducing an artificial CPU stall between frames removes the problem... but this is obviously an unworkable solution :P


/annoyed

Share this post


Link to post
Share on other sites
I had the same problem.

Introducing an artificial CPU stall between frames removed the problem for me as well but that would never work for my project since it was already going way to slow. I never figured it out and just upgraded to DX10 since there was no way to fix it. Now I found another bug in DX10 that creates a memory leak, I don't like being one of the only people to find huge bugs in DX...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this