directx with mfc

Started by
1 comment, last by cgrant 14 years, 2 months ago
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....
Advertisement
People still actually use MFC?!? [sick]

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

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