HUD example

Started by
1 comment, last by Spahrep 18 years, 4 months ago
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]
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.
Thanks for the tip, not sure why i didnt think just to do that and change to an ortho view. Works great!

thanks again!

This topic is closed to new replies.

Advertisement