Once again, I've discovered my error, just after posting. The toolkit cannot RUN any kernels with more than two inputs, but it can export them for use in flash. I was using F5 to test-compile, but of course it tries to run it as well.
It's a toolkit limitation. I did it just to simplify the interface. Pixel Bender supports up to four inputs. It isn't that hard for me to add that support into the toolkit, so if that is a feature that y'all want, let me know and I can add it.
Hi Kevin Goldsmith,
so please could you change the limitation up to four supported inputs?
Best, Angelo Friedel
Thanks to Taylor for bringing this up. Please Kevin, I am in desparate need for this!
Watch for the next Pixel Bender Toolkit release
On his 2008 blog, Tinic Uro mentioned that "Flash Player 10 has a pretty bad bug which makes it not work when float4 types are used for output. What you are left with is using pure Pixel Bender assembly code for now which allows you to use a float2 output type."
He, as well as some other sites, have said that one must use an assembler for creating shaders with multiple inputs/outputs. It is strange because I did just that from within the PB Toolkit - using the 12-channel sound mixer PB code from http://flash.mediabox.fr/index.php?showtopic=94758 - , and it compiled without a hitch. Yeah, I got the same "This version of Adobe Pixel Bender Toolkit does not support kernels with more than 2 inputs", but I just ignored it and the shader worked fine in Flash! If it worked for me, then why are people recommending using command line assemblers?
What is going on? Have all these bugs been worked out yet? It just seems like stuff is all over the place and many blogs have not been updated with recent info. regarding Pixel Bender bugs/capabilities.
Thanks for any help/advice!
I believe the issue has been resolved in the player. Tinic's post is quite old.
Thanks Kevin! I just wanted to make sure I wasn`t crazy