directx with mfc
2 replies to this topic
Members - Reputation: 103
Posted 09 February 2010 - 01:16 AM
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....
Members - Reputation: 698
Posted 09 February 2010 - 01:23 AM
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.