Alpha Blending

Blitz3D Forums/Blitz3D Beginners Area/Alpha Blending

FBEpyon(Posted 2003) [#1]
Hello,

Im tryin to find out if anyone here has a good way to do 2D alpha blending.?

Im tryin to make a Zelda Fangame with Blitz and I want to add a real lightin system and have image overlapin like the rain effect in Zelda3 LTTP for the snes..

If someone could help me please..


Rob Farley(Posted 2003) [#2]
2D doesn't do alpha, however, if you've got blitz3d you can create a 2D game and add 3d alpha sprites on the top.


Sunteam Software(Posted 2003) [#3]
Here is some routines I did:

http://www.blitzbasic.com/codearcs/codearcs.php?code=343

Also look in the Graphics section for some other routines which will probably help:

http://www.blitzbasic.com/codearcs/codearcs.php?cat=1


Bremer(Posted 2003) [#4]
If its not a ton of graphics that you want to do alpha on, you could use read-/writepixel to read the screen and blend the colors of the image in. For smaller sized graphics this can be done realtime.


FBEpyon(Posted 2003) [#5]
Im tryin to do a color change... Like when say in Super Metroid when samus charges here weapon she glows red.. thats what I need..


Bremer(Posted 2003) [#6]
How about just making additional sprites and switch between them depending on the mode the character is in?