directx with mfc
Hello, guys.
I want to use directx in MFC, and here is my problem now.
I draw a triangle and a tank mesh, and the triangle is nearer to the eyes' position than then tank. And the depth test is enabled. But I don't know why the tank is still shown....
Well, if the triangle is big enough to obscure the tank, then you shouldn't see the tank, unless the vertices of the triangle are specified in the incorrect winding order. However, if the triangle is smaller than the tank mesh, then section of the tank not covered by the triangle will be visible.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement