Andy Li's Blog

10/12/2009

Chroma key and thresholding in Flash (Pixel Bender), revised

Filed under: Uncategorized — Tags: , , — Andy @ 6:12 pm

yellowFiltered

>>Demo<< (Click to toggle filter)

source (Flex project including pbk)

I have been very busy since the last few weeks… so the chroma key filter was put aside for a long time until today :)

I have used conditional compile in the filter to avoid having if-else in the runtime, hopefully can increase performance… Anyone volunteer to measure it and post the different?

3 Comments »

  1. [...] This post was mentioned on Twitter by Adobe Pixel Bender, Andy Li. Andy Li said: New blog post: Chroma key and thresholding in Flash (Pixel Bender), revised http://bit.ly/5mu0kC [...]

    Pingback by Tweets that mention Chroma key and thresholding in Flash (Pixel Bender), revised | Andy Li's Blog -- Topsy.com — 11/12/2009 @ 2:14 am

  2. Make sure if you want to use this filter in Flash to install a new version ( 1.5 ) of PixelBender.
    I tried to export it for Flash with version 1.0.352475 ( included with CS4 ) and the filter gave a strange output ( not in the pixel bender environment itself ).

    With version 1.5 the filter works correctly in Flash as well.

    Comment by Kasper Kamperman — 20/01/2010 @ 5:25 am

  3. [...] Here I have a PB kernel that works with any color. Try it! [...]

    Pingback by FLARtoolkit trick: use a colored marker | Andy Li's Blog — 28/01/2010 @ 3:34 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

CAPTCHA Image CAPTCHA Audio
Refresh Image

Powered by WordPress