Z indices?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Z indices?

Post by Dances »

OK, I am making a 3d game, which of course has a HUD display rendered over top everything else. At current I am rendering my HUD every frame to keep it over top of everything else. Is there a way to keep the old rendering of the HUD on top of the new 3d all the time via a 'z index' or something so I only have to redraw the HUD when there are changes to the data displayed?

P.S. my scene is 3d and my HUD is 2d images and text.
T101
Posts: 44
Joined: Thu Jul 29, 2004 4:41 pm

Post by T101 »

Other than rendering your HUD into a texture when it changes and displaying that texture every frame: no.

The 2D overlays are rendered over the 3D scene. Since the 3D scene is rendered first, the HUD will have been overwritten.
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

Alright, thanks then. It'd be nice if there was a way to omit certain pixels from rendering, or to keep certain things on top, much less requirement on the CPU, but I'll take what I can get. Thanks for answering.
Post Reply