Skip to main content
françois leroy
Inspiring
August 15, 2012
Answered

Pixel Bender to Native Plugin

  • August 15, 2012
  • 1 reply
  • 3558 views

Hi!

I'm quite used to expressions, scripting, and pixel bender, but I don't know about programming (yet...).

I have a bunch of pixel bender plugins that I'd like to be native Plugins. And I don't really know how to start...

I figured out how to set my parameters and controls, compile into .aex.

But I still don't understand how to get my pixels coordinates, transform them (with a matrix or simple operations) and then render them...

for example, in pixel bender, I would have:

float2x2 myMatrix = some matrix value...

float2 pos = outCoord();

pos = pos*myMatrix;

dst = sampleLinear(src,pos);

can I do it, for example, in the skeleton file?

I saw the "put your interesting code here"... but don't know how to write that code!

If anyone can tell me, just on that example, it would be great!!

Thanx

PS: or is there somewhere an example of something similar to the Geometry effect?

This topic has been closed for replies.
Correct answer shachar carmi

i'm not too familiar with pixel bender, but from what i can gather you want to push values into arbitrary pixels.

it can be done with the c++ api, but more easily you could pull values.

take a look at the "shifter" sample.

it iterates through the output samples, and pulls input values from other locations.

if you can to see how to push values to random pixels , checkout the "CCU" sample project.

it shows how to access a buffer pixel directly in RAM.

you can't however, push subpixel values to 4 adjacent pixels.

not that it's impossible, i just don't know of any suite that does that.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
August 16, 2012

i'm not too familiar with pixel bender, but from what i can gather you want to push values into arbitrary pixels.

it can be done with the c++ api, but more easily you could pull values.

take a look at the "shifter" sample.

it iterates through the output samples, and pulls input values from other locations.

if you can to see how to push values to random pixels , checkout the "CCU" sample project.

it shows how to access a buffer pixel directly in RAM.

you can't however, push subpixel values to 4 adjacent pixels.

not that it's impossible, i just don't know of any suite that does that.

françois leroy
Inspiring
December 8, 2012

Hi!

I tried to dig into the SDK for a while now, and i think the GLator is the best base for me, as it is GPU accelerated.

But i have a few questions:

How do you switch the context from/to openGL and to/from AE?

Do you have a concrete example on how to do a black and white ramp from left to right?

For sure, rgb*colorDepth = x_coordinates/width, but how do you acces coordinates?

I saw examples on how to do it by rows/columns, but i think accessing coordinates directly is more efficient for what i need.

Any help will be highly appreciated! :-)

Cheers,

Francois

Community Expert
December 8, 2012

i think this thread has some info on that:

http://forums.adobe.com/message/4674493

look for the messages by gutsblow.