06-10-2009, 05:53 AM
(06-09-2009, 04:32 PM)Lord Silva Wrote: @Zazz , what do you mean transparencies? If you mean pngs with alpha blending, not really. If you mean taking the characters and fading them in and out, then not really.I mean transparencies as in like, say I want to make my character semi-transparent, like a ghost. Or an energy ball that has flames coming out of it, and the flames are semi-transparent. I dunno, something like that.
You get an array of pixels, after lf2 has finished drawing on the screen. Hence the title "post processing", meaning you process the pixels after lf2 is finished with it.
If you mean writing a huge water mark saying "Silva Rules" in the middle of the screen, which is transparent, then there shouldn't be any problem. Alpha blending is quite easy. I think it works something like:
pixel = [(source*alpha) + dest*(255-alpha)]/256
Source = the orginal pixel which was there.
dest = the pixel you want to put there.
alpha = the transparency value.
Might be wrong, you should probably google it if you want to implement it.

Chat

![[Image: sigk.png]](http://img189.imageshack.us/img189/2662/sigk.png)