Fun with Pixel Bender.
Code to be posted soon, as well as interactive Flash 10 swf (if I can ever figure that out).
![]() | home | art | events | music | rack extensions | downloads | pixel blog |
Fun with Pixel Bender.
Code to be posted soon, as well as interactive Flash 10 swf (if I can ever figure that out).
That’s always how it is, I’m trying to do something, but then a new jig or tool is needed along the way.
Just lately I’m finally “remastering” some ancient (80’s) video of my own. Captured it off VHS video in 2004, been sitting on my hard disk since then. Tragically, the capture introduced some awful drift between audio and video. I probably used iMovie for a 30 minute capture, just like they say not to.
Why am I using AE for this? Because I haven’t upgraded the stupid final cut pro to the stupid expensive intel version, because I stupidly missed the $50 upgrade special window.
And as long as I’m complaining: How come AE doesn’t have some fine-numeric control for time-bumping the layers?? Ok. So it goes.
But meanwhile, I need some fine-control to shift the layers left and right.
I’m thinking, should I write a script for this? But something tickles my memory. A yes, this is just the sort of thing that can be found on Jeff Almasol’s most excellent redefinery blog and scripts collection. Many useful scripts there; solid work-a-day workflow helpers. Also, exquisitely coded. Excellent style, thrilling examples, and so forth.
Happily, redefinery’s rd:scooter was just the tool to nudge things back into place!
After nudging around my 30 minute audio and video layers, I wanted to snip out just the 2 minutes for the particular song-section. But the in- and out-points were far off to the left and right of my dinky 3 minute comp. So I wrote a script panel for this last bit:
I tried to keep it nice and narrow, to fit in easily with the other built-in palettes. It’s ugly, but then it worked so I stopped coding & used it. Click here or on the picture to get it from my scripts collection.
Ah yes, there’s a bug in After Effects CS3’s scripting that I came across. If you set layer.inPoint = t;
it also sets the outpoint! My workaround was like so:
// bug? setting in seems to corrupt out. save and fix. var outPoint = layer.outPoint; layer.inPoint = myComp.time; layer.outPoint = outPoint;
This workaround should be safe even after they fix the scripting bug. (Not sure where to report Adobe bugs…)
And lastly, some excerpts from the product of this endeavor: Vintage 1986-era animation loops done with Macromind’s Videoworks
Check it out. 30 seconds of techno-stalgia.
This blog usually isn’t for industry commentary and such, but you know, when Adobe starts moving the pixels around in new ways I do get excited.
Adobe’s “Pixel Bender” framework — which facilitates fast, cross-platform, single-frame image-processing filters — will be available in Flash and After Effects, and presumably other imaging apps as well. (It should be useful in Photoshop and Illustrator and Premiere.)
Adobe developer Tinic Uro reveals some important differences between Flash 10’s support, and After Effects’.
In particular, on Flash, a Pixel Bender filter runs on the host CPU, not the graphics card! But not to worry, they’re still mighty fast; they’re compiled to native Intel code on the fly. Ah, right, yes, they’ll be slooow on PPC Macintoshes. So it goes.
On After Effects, however, they’ll run on the GPU.
Couple of relevant links:
Adobe Flash 10 beta download
Adobe Pixel Bender Toolkit download
Mr Doob, some guy with a lot of cool Pixel Bender examples (found via AEPortal, thanks!)
Pixelero’s cool examples, too (also via aeportal)
Cool! I’d like to try it out inside of Picnik.com (Pixel Bender effects are in beta).