Alpha Blending

Blitz3D Forums/Blitz3D Beginners Area/Alpha Blending

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..

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.

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

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.

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..

How about just making additional sprites and switch between them depending on the mode the character is in?