[I hope this is the right forum]
I just had this thought:
Many alpha-related issues happen not only because of the technical aspect (the implementation, etc.), but also because developers often bump into the most common issue with alpha blending, namely DECIDING "how should my alpha sprite be blended? Should the transparent channel replace the underlying color, or blend into it, or add, etc.?".
If my memory is correct, this has been partially addressed in Calin's blending plugin, but still this alpha-blending paradigm (pardon my French) is not obvious for the beginner.So I was thinking: Why not do like most painting programs do?
If you look closely, in most of them the "brush" tool comes with an option to choose the blending mode: "add colors, replace colors, etc.". There is an explicit button/menu for that.
Maybe we could do the same thing in AGS? Add a simple attribute to each sprite that defines how it's going to blend. And the game developer could choose that at import time with a simple tick-box
. something like "Tick this if you want the alpha-channel to replace the colors instead of merge" (<-- bad English, but you get the point).I know it doesn't sound like a priority
, but I have the feeling that the alpha-blending issue is on the verge of being fixed by some of the developers around. They are currently fiddling with the source. They sound really pissed off by the alpha bug. They're going to do it (you can't stop them, they're crazy
So it sounds like the right time to suggest this. Two stones with one bird, y'know.
What do you think?
(this is a complex example with one billion blend-modes, but one would be enough for AGS)