Alpha blended rectangle

Blitz3D Forums/Blitz3D Programming/Alpha blended rectangle

ozak(Posted 2005) [#1]
Can I use alpha blending together with the 2D Rect command? I can't seem to find anything about it.

Thanks in advance

Ozak


Neochrome(Posted 2005) [#2]
not directly with 2d rect

are you trying to make a status bar for a 3d game?


ozak(Posted 2005) [#3]
A transparent background for menu text actually, so yes :)


Rhyolite(Posted 2005) [#4]
As Neomancer was suggesting, you can not apply transparency to 2D objects, only to 3D objects. To achieve your desired effect, create a 3D quad (or use a sprite, but a quad is better) with your desired texture/color then apply EntityAlpha to it.

There are several GUI libaries available which use 3D commands. Check out the toolbox page.

Rhy :)