PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

What is Alpha Blending ?

Ian Ferguson · 18 Aug 2001, 01:49 UTC
I read the earlier thread discussing the best way to do Alpha blending. My question is much more basic. What is Alpha Blending? I get the impression from reading various posts that it's a way of smoothing the edges of sprites being placed on a background or something like that.

Ian
Moose or Chuck · 18 Aug 2001, 08:41 UTC
Alpha blending is used to make a part of a sprite or image transparent, like making smoke translucent, or glass completely transparent. There are many ways of doing this, some more complicated than others, but most of the time (in simpler games) it just replaces one RGB value in a sprite with transparency.
Ian Ferguson · 21 Aug 2001, 05:24 UTC
Thanks, It's just a new name for an old operation. In my assembler days ( loved Motorola hated Intel ) it was a straight forward pick a color to be the transparent one ( never used masks myself ). I've seen some discussions which made it appear to be a much more advanced than in the VGA 256 color days.

Ian
I think you misunderstood. It isn't the same as masking.

An alpha channel allows each pixel to have a different transparency value than it's neighbor.

Masking simply makes that entire set of pixels 100% transparent, whereas the alpha channel can create many varying degrees of transparency within the same image.

This allows for effects like smoke, fire and water to look more realistic.

Chris Edwards · 21 Aug 2001, 13:08 UTC
yeah.. and PNG has alpha blending support... DAMN microsoft doesn't support it though :(.

In my assembler days ( loved Motorola hated Intel )...


I agree :) I loved programming on the z80 chip. Very straightforward and it worked well with TASM ;)