DirectX Z 缓冲区问题
有谁知道什么可能导致我在 C# 托管 DirectX 应用程序中看到奇怪的工件。这是我遇到的问题的屏幕截图:
您看到的是一些平坦的地形其下的飞机。
- 在左边,你可以看到地形前面的飞机,尽管它不应该是可见的(它在下面)
- 在中间有一个过渡阶段,你可以在其中看到我一直在调用的内容'blinds'
- 在右侧它显示正确
这一定是 Z 缓冲区问题,但我无法解决它。还有其他人遇到同样的问题吗?这让我发疯!
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:
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这称为 Z 战斗,很可能您的投影矩阵的 zmin 太小。
It's called Z fighting and most likely your zmin of the projection matrix is too small.