Create new Pixelbender filters when running

Anyone know if it is possible to create PixelBender filters when running?
I want to be able to load any kernel of .pbj during execution to create a new filter.
I think that the problem is with the embed tag. There is no way that I know how to dynamically generate the path of the CBC to the embed tag, it must be hard-coded.

The following example is from the documentation from Adobe on the Shader. You can easily switch the PBJ you wanted to load it into the application. Once loaded, you can then apply or use it as an instance that has been incorporated.

http://help.Adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WSB5D89F6A-065F-4b18-A163-D421 90DB7ABE.html

var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener (Event.COMPLETE, onLoadComplete);
Loader.Load (new URLRequest ("myShader.pbj"));

var shader: Shader;

function onLoadComplete(event:Event):void {}
Create a new shader and set the data loaded as its bytecode
Shader = new Shader();
shader.byteCode = loader.data;

You can also pass the bytecode to the Shader() constructor like this:
Shader = new Shader (loader.data);

do something with the shader
}

Tags: Pixel Bender

Similar Questions

Maybe you are looking for

  • How to disable the restrictions for deleting call logs

    Y at - he on an option to put the restriction to delete call log history journal calls or stops history in I cloud.

  • FCP on Ebay at very little cost.  What gives?

    There are many offers FCP on Ebay, and Ebay has a fairly reliable way of feedback in order to eliminate fraudsters. Many FCP offer have made positive.  One person said that his only real would not qualify for support.  It looks fishy, but $90 vs. $30

  • Energy distribution

    I would like to list all the alternatives to put several accessories, directly from the camera. Right now I'm trying to find a way to put the mount Prolock Optitek and the RedRock Micro Focus from the exit of the AXS - R5 wireless, is it possible to

  • Digitization and adaptation of impedance of the signal source entries

    I'm trying to measure the voltage difference and the time between the two entrances of a USB-5132 digitizer. The switching interval that I try to capture is ~ 150uS and I intend to acquire ~ 25K samples (50MS/s for 500, although it is an overdose of

  • Cannot change Subvi

    Hello I'm trying to change an existing program of LV. There a few SubVIs that cannot be changed. However, there is no possibility of using a probe or an execution Higlighting. So I'm stuck unbale to view the stream, nor able to add indicators to see