DaniJ
Senior Member

Posts: 1740
Registered: 08-03 |
Well if you consider that the flash is basically a mask already except that areas of no change are the same as the other it should be possible to produce a mask from them. Iterate over the flash psprite pixel data, comparing the color and alpha to that in the normal psprite data. If equal there is no difference so the resultant alpha is zero.
Would work, no?
EDIT: Fixed algorithm proposal and removed misleading sentence which alluded to a GL blending method at the drawing stage, which may not be necessary.
Last edited by DaniJ on 03-30-10 at 16:40
|