Jump to content
  • Advertisement
Sign in to follow this  
Spahrep

HUD example

This topic is 4613 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've got a fairly simple 3d maze compleated, but what I'd like to have is a H.U.D. of sorts. Be it always there or toggled by a button. Anyone know of a tutorial or sample code that my speed up this process? ** Edit ** More info: Im doing this in opengl full screen mode. The hude has to be able to display static images as well as a text box which i can modify as needed. [Edited by - Spahrep on November 29, 2005 8:56:56 AM]

Share this post


Link to post
Share on other sites
Advertisement
Here's what I do:

When I finish drawing a scene
1 - I clear the depth buffer
2 - Set the view matrix to identity
3 (optional) - switch to a different projection matrix
4 - render the HUD

You could always disable depth testing instead of clearing the depth buffer, giving you the added advantage of being able to use painter's algorithm, but that can cause trouble if you want to render 3D objects in the HUD.

Share this post


Link to post
Share on other sites
Thanks for the tip, not sure why i didnt think just to do that and change to an ortho view. Works great!

thanks again!

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!