Alpha blending functions for HUD graphics
Posted: Fri Apr 08, 2011 4:54 pm
Hi All,
Feel like a bit of a noob, but not sure how to get Irrlicht to blend my hud graphics on top of my game graphics in the exact way that I'd like.
I have a radar screen which is displayed while the player holds down a key. Currently it looks like this:
As you can see everything is a bit too bright, and you can hardly see the blips of the other ships on the radar. I'd like the hud radar graphic to darken the screen slightly, rather than lightening it.
The radar is a simple quad scene node added to a second scene manager which draws the HUD graphics.
After setting up the node I set it as transparent with:
I understand irrlicht has other blend functions, but how do I set these, and what combination am I likely looking for?
Cheers,
D
Feel like a bit of a noob, but not sure how to get Irrlicht to blend my hud graphics on top of my game graphics in the exact way that I'd like.
I have a radar screen which is displayed while the player holds down a key. Currently it looks like this:
As you can see everything is a bit too bright, and you can hardly see the blips of the other ships on the radar. I'd like the hud radar graphic to darken the screen slightly, rather than lightening it.
The radar is a simple quad scene node added to a second scene manager which draws the HUD graphics.
After setting up the node I set it as transparent with:
Code: Select all
radar->setMaterialType(EMT_TRANSPARENT_ADD_COLOR);
Cheers,
D