rendering 2d alpha

Blitz3D Forums/Blitz3D Programming/rendering 2d alpha

D4NM4N(Posted 2006) [#1]
is there an easy way of loadimaging a 32bit alpha png and rendering it onto a new image containing a background?

When i use drawimage the alpha channel is creating rainbow patterns. Loads ok as a texture tho'


Beaker(Posted 2006) [#2]
You would have to either read the alpha data yourself, or draw a Textured quad.

Blitz 2D functions don't support alpha at all.


D4NM4N(Posted 2006) [#3]
awwwww :(

hehe ill just have to shell to a max app to do it
(its only for image compilation so doesnt need 2 be quick)


Dreamora(Posted 2006) [#4]
Won't change anything. After rendering, alpha data is lost as backbuffer does not contain any alpha information.

Or do you just mean overblend? (color mixing)

in this case you can simply use Sprites and position / scale them correctly and grab from backbuffer.