Search code examples
windowswinapiopenglhud

OpenGL Glass HUD?


Hello I Would like to know how to make somthing that looks like "Glass" the example would be in the game called Pikmin.

its in the HUD and i would like to know how to create somthing similar. I Am not trying to copy the game i just like how it looks.

It looks like this: http://3.bp.blogspot.com/_CWor6UdXxBk/SbaZDWSF6VI/AAAAAAAAFCU/UQgBvgGq-VE/s400/pikmin.jpg

The rectangles that have numbers in them

I Know how to create an HUD However i would like to know how to dynamicly genorate the background rectangles like in the example


Solution

  • You should look into alpha blending for drawing the bubbles. Assuming the reflections on them are static, all you need is a simple image. (If you aren't sure what the image should be like, look at a black wall in the game. The white parts you see should be what the red, green, blue AND alpha channels of the image look like.)

    The numbers are just another set of alpha-blended images drawn on top (or below) the bubbles. The above goes for them too.