Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Source Code] Post Processing
#14
(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.

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.
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.
~Member of the NTSD team~
[Image: sigk.png]
http://ntsd.open-board.com/
Reply
Thanks given by:


Messages In This Thread
[Source Code] Post Processing - by Boop - 06-06-2009, 08:56 AM
RE: Post Processing : Testers Needed - by Ramond - 06-06-2009, 09:07 AM
RE: Post Processing : Testers Needed - by Ascor - 06-06-2009, 10:36 AM
RE: Post Processing : Testers Needed - by Boop - 06-06-2009, 12:05 PM
RE: [Source Code] Post Processing - by Boop - 06-07-2009, 09:35 AM
RE: [Source Code] Post Processing - by Zazz1 - 06-09-2009, 06:54 AM
RE: [Source Code] Post Processing - by Boop - 06-09-2009, 04:32 PM
RE: [Source Code] Post Processing - by Zazz1 - 06-10-2009, 05:53 AM
RE: [Source Code] Post Processing - by Reaper - 06-10-2009, 12:35 PM
RE: [Source Code] Post Processing - by Ramond - 06-10-2009, 12:54 PM
RE: [Source Code] Post Processing - by Zazz1 - 06-11-2009, 06:12 AM
RE: [Source Code] Post Processing - by Boop - 06-11-2009, 06:29 AM
RE: [Source Code] Post Processing - by Azriel - 06-11-2009, 11:51 AM
RE: [Source Code] Post Processing - by Boop - 06-12-2009, 12:41 PM
RE: [Source Code] Post Processing - by Boop - 06-20-2009, 11:24 AM
RE: [Source Code] Post Processing - by Zazz1 - 06-22-2009, 06:26 AM
RE: [Source Code] Post Processing - by Boop - 06-23-2009, 02:31 PM



Users browsing this thread: 2 Guest(s)