News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

draw modes for sprites using AFX image?

Started by stevmjon, May 28, 2010, 03:07:40 AM

Previous topic - Next topic

stevmjon

i tried different draw modes using a sprite with an AFX image, and get odd results.

is draw mode 2+xxxx only good for sprites using FX images?

using pb v1.64L

 stevmjon
It's easy to start a program, but harder to finish it...

I think that means i am getting old and get side tracked too easy.

kevin


    Sprites (in fact almost everything in 1.64) use a set of stage based rendering algorithms.   

    There's three basic stages,  1) fetching,  2) modification and 3) output.   

   All pixel data passes through the stages 1, to 3.   AFX are conceptually a little different, as they have alpha channel, so during output they fetch the  alpha level from the pixel data, rather than from any render method.   

   Since Alpha level is part of the pixel, you can change the level with anything that modifies the pixel data in stage #2.   Such as SpriteTint, colour addition, masking etc modes.