gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Sprite Alpha Blending

#3235 - Shu - Thu Feb 20, 2003 9:09 pm

Does anyone can give me an example to do alpha blending with sprites? Please, provide me with the necessary steps.
I'm trying to do it, but they are all black...

Thanks,

Shu

#3238 - Saikou - Thu Feb 20, 2003 10:29 pm

This might help, it's a small program I made when I was trying to figure out how to do alpha blending too.
The project file is for devkit advance, but you should be able to copy and paste to any compiler.
Also, all the stuff relating to alpha blending is in main.c
http://www.saikou.co.uk/files/Alpha.zip

Hope it helps :)

#3269 - Shu - Fri Feb 21, 2003 1:47 pm

Hi Saikou,

Thank you for your usefull example. I was confusing registers REG_COLEV and REG_COLEY.
Now I will program some FadeIn/FadeOut routines!

Regards!

Shu