pixel-bender

Pixel bender White to Transparent

When I run the following pixel bender code: input image4 src; output float4 dst; // How close of a match you want parameter float threshold < minValue: 0.0; maxValue: 1.0; defaultValue: 0.4; >; // Color you are matching against. parameter float3 color < defaultValue: float3(1.0, 1.0, 1.0); >; void evaluatePixel() { ...

bicubic sampling example using pixel bender?

I am new to pixel bender and wondering if anyone knows how bicubic [down]-sampling would be implemented using adobe's pixel bender? Here is an example of how Bilinear [down]-sampling can be implemented. ...

Comparsion between Pixel Bender(in Flash) and Pixel Shaders(in Silverlight)

Can someone explain the different between Pixel Bender in Flash and Pixel Shader(HLSL) in Silverlight in terms of programming flexibility and run-time performance? ...

How to stretch out the movie clip after applying some Pixel Bender filter? (Flash)

How to stretch out the movie clip to twice its width and height after applying some Pixel Bender filter? I have some object with video on it (for ex 512 by 512) I apply a Pixel Bender Filter on it. Now I want to stretch the result (for ex to 1024 by 1024). How to stretch it? So my point is 1) Render the result of effect 2) Stretc...

Action Script3 / Pixel Bender Compound Blur effect ?

I need Action Script3 / Pixel Bender blur filter with mapping capability’s. We have such image, we want to apply such blur map to get such result Its also known as Compound Blur effect. Has anyone seen it done with AS3/ Pixel Bender? Does Anyone know where to download such effect with source? ...

Simple Pixel Bender Blur?

Hi there, I am using the following code to create a dynamic reflection of an image: { input image4 src; output pixel4 dst; parameter float imageheight < minValue: 0.0; maxValue : 1000.0; defaultValue :300.0; >; parameter float fadeheight < minValue : 0.0; maxValue: 1000.0; defaultValue: 50.0; >; parameter fl...

Tweening Pixel Bender Filter Using Number Value With Basic Tween Class in Actionscript 3.0

i'm studying Pixel Bender. i have a filter who's parameter i want to tween. as far as i know, in order to tween a pixel bender parameter, i need to tween a number object and assign the tweening number object as the array value for the shader data. i was convinced the following would work, but it seems that Number class doesn't have a ...

Understanding Actionscript Garbage Collection

in an attempt to see and hopefully understand actionscript's garbage collector, i've set up a sample project that loop-tweens the value of a pixel bender parameter on stage. my first concern was the amount of memory that was being used at launch (~26 MB). while i like to believe i'm cautious about memory by removing event listeners and...

Pixel Bender Chroma Keying code for flex3 / as3

Hello Stackoverflowers, Does anybody know where i can find a good chroma keying pixel bender code example. Or does anybody know how to write such a code in pixel bender. Or a create pixel bender tutorial to create a chroma keying filter. Does anybody know how to get it in flex 3. every help is welcome. ...

Pixel bender shaders with multiple outputs in flash?

According to the pixel bender specs a shader can have one or more outputs. The pixel bender toolkit, whose "export to flash" option tends to be preety strict about the flash specific do's and dont's, would even compile such a shader without complaints. However actionscript's shader related classes seem to be geared toward single output ...

Flash/As3 and Pixel-Bender: Realtime manipulation of video sound?

Hi! Using Pixel-Bender, it's possible to manipulate audio with effects, mixing channels etc. (http://www.kaourantin.net/2008/10/audio-mixing-with-pixel-bender.html). Could this technique somehow be applied to a video sound track? Jonas ...

using PixelBender to double the size of a bitmap

I have a performance question about pixel bender. I want to enlarge many BitmapData (double their size into new BitmapData). I was doing this with as3, but wanted to use pixel bender to get better performance. On my machine, I get better performance out of pixel bender demonstrations then as3. To my surprise (or bad coding / understa...

AS3: How to access pixel data efficiently?

I'm working a game. The game requires entities to analyse an image and head towards pixels with specific properties (high red channel, etc.) I've looked into Pixel Bender, but this only seems useful for writing new colors to the image. At the moment, even at a low resolution (200x200) just one entity scanning the image slows to 1-2 Fra...

Are Pixel Benders Filters runing inside flash rendered by AS3 VM or by some special VM?

By now all my projects created for pixel bender run slower than ported into C and than thru alchymy to AS3. So If Adobe uses for PBJ filters some special VM I can hope that one day my PBJ filters will owerrun same filters ported thru alchymy... Am I wright? Are Pixel Benders Filters runing inside flash rendered by AS3 VM or by some spec...

help converting this as3 code to pixel bender code

Hi, I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numb...

Anyone Know of a company that sells pixel bender filters?

Anyone Know of a company that sells pixel bender filters? ...

Save ByteArray generated by Pixel Bender

I am building a Flash Application which will allow a user to mix two mp3 files and send the mixed result to our server. Using Pixel Bender I am already able to create a mix: public class Mixer { [Embed(source="mix.pbj", mimeType="application/octet-stream")] protected var NewFilter:Class; private var shader:Shader; private v...

Color Matrix VS PixelBender

Whats the difference between these two? They seem to both do the same thing not to mention both applied to the bitmap through applyFilter(). ...

Programatically Mixdown of audio tracks (no playback)

Hi, I've found some excellent demos of how to mix together sound objects together for live playback. See the working example bellow... But can it be done programatically without any playback so I can just output the mixed file? Also I'll be adding some volume change info along the way so it'll need to be added in small chunks like how ...

How to use Pixel Bender within an FP9 wrapper file

Hi, We create Flash games which are embedded within third party wrapper SWF files, which are exported for FP9. If I create an FP10 SWF which uses Pixel Bender classes (Shader, ShaderData), when I run them in an FP9 wrapper within an FP10 player, an error is thrown VerifyError: Error #1014: Class flash.display::Shader could not be foun...