Question

Does anyone knows what might be causing the weird artifacts I am seeing in my C# Managed DirectX application. Here is a screenshot of the problem I am having:

enter image description here

What you are looking at is some terrain with a flat plane under it.

  • To the left you can see the plane in front of the terrain even though it shouldn't be visible (it is underneath)
  • In the middle there is a transition stage where you see what i've been calling 'blinds'
  • On the right it is displayed correctly

This must be a Z-Buffer issue but I have not been able to sort it out. Has anyone else run into this same problem? It is driving me nuts!

Was it helpful?

Solution

It's called Z fighting and most likely your zmin of the projection matrix is too small.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top