Sign in to follow this  
Spahrep

HUD example

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this