This content has been marked as final. Show 6 replies
Congrats, very cool. Glad that you got it working.
A couple things if people hit the same snags:
1) Pixel Bender pixel centers are at half pixel values. For example, the upper leftmost pixel is not at (0,0), it is at (0.5, 0.5)
2) You have to assume that every pixel runs at the same time (because they might). You can't base the value of one pixel in the output image on another value in the output image. That won't work. If you need to do something like that, you'd need to arrange your pixel bender filters as multiple passes on the same image.
I'm trying to use Tinic's disassembler/assembler to make it work with AS3 per his PixelBender as SoundMixer tutorial, but it won't disassmble, and gives a rather ambiguous error message:
(itof) invalid source register type
I know that Tinic created those assembler's/disassembler's to help with debugging pixelBender kernels. Perhaps he has a say in what is causing this particular kernel to not be decompile-able? Here's the updated Kernel:
I figured out via the disassembler that the exporter does NOT like type conversions being inline. the line:
float freq = float (frequency) / float (44100.0);
was causing the problem, because frequency was created as type int. So, although it was compiling, it was not exporting for Flash correctly. Converting the frequency parameter to type float corrected the problem, and the pbj is now able to be disassembled.
FYI, you can't take Tinic's assember/disassembler as the gospel, even he says that in his blog post. That is not the code used by the player nor the Toolkit. Modifying your code to work with that code is no gaurantee.
Kevin, what's the ETA on single channel Pixel inputs/outputs for PixelBender within Flash?