Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


directx with mfc


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 sinfawkes   Members   -  Reputation: 103

Like
0Likes
Like

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....

Sponsor:

#2 Machaira   Moderators   -  Reputation: 1028

Like
0Likes
Like

Posted 09 February 2010 - 01:19 AM

People still actually use MFC?!? [sick]

#3 cgrant   Members   -  Reputation: 692

Like
0Likes
Like

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS