Skip to main content
GameDev.net gamedev.net
🔒 Locked

directx with mfc

Started by sinfawkes Feb 9, 2010 at 7:16 AM 1 replies 750+ views
Original Post
sinfawkes
sinfawkes
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....
Machaira
Machaira
People still actually use MFC?!? [sick]
Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development
cgrant
cgrant
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.