Jump to content
  • Advertisement
Sign in to follow this  
stu_pidd_cow

D3D10 HUD

This topic is 2994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to create a HUD with D3D10/C++. I assume the way you do it is to temporarily disable the depth buffer while you're drawing the HUD, but I can't figure out how to do this. Anyone know how to pull this off?

Cheers.

Share this post


Link to post
Share on other sites
Advertisement
Just create an ID3D10DepthStencilState with DepthEnable set to false, and set it right before doing your HUD rendering.

Share this post


Link to post
Share on other sites
If the HUD is opaque, then you can actually draw it with a depth on the near clipping plane with writes enabled to save some pixel shading behind the UI. Depending on how big the HUD is it can really add up!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!