Problem with Z-Buffer DirectX

Does anyone know what might cause the strange artifacts that I see in my DirectX-driven C # application. Here is a screenshot of the problem I am having:

enter image description here

What you are looking at is some kind of landscape with a flat plane below it.

  • On the left you see a plane in front of the relief, although it should not be visible (it is at the bottom)
  • In the middle there is a transition phase where you see what I call "blinds"
  • On the right, it is displayed correctly.

This should be a problem with Z-Buffer, but I could not figure it out. Anyone else run into this issue? It drives me crazy!

+3
source share
1 answer

He called Z fighting and most likely your zmin projection matrix is ​​too small.

+5
source

Source: https://habr.com/ru/post/1789632/


All Articles