tbridge
tbridge

Reputation: 1804

DirectX Z-Buffer Issue

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.

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!

Upvotes: 2

Views: 660

Answers (1)

Axel Gneiting
Axel Gneiting

Reputation: 5403

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

Upvotes: 5

Related Questions