Flash source | 4 Pixel Bender project
Pixel Bender is huge and is going to be even bigger once Flash player 10 , 4 tutorials about Pixel Bender
1.Pixel Bender levels example
Pixel Bender is huge and is going to be even bigger once Flash player 10 officially is out (and spreads a bit so that we can start using it in commercial projects). I just love it when Adobe constantly lower the restrictions on creativity ![]()
A lot of the examples we see online for Pixel Bender (previously codenamed Hydra) are crazy visual effects. While they’re amazing for certain visual effects (mostly due to the processing speed), finding real life use is harder. I’ve had the need for a similar-to-photoshop levels filter multiple times, if nothing else for preprocessing a bitmap for further analysis. Turns out creating something like this with Pixel Bender is really simple and even better; it’s blazing fast.
2.Flash 10, Part 4 of testing drawTriangles, Old-school Tunnels
(SmokingPixels in 2D and source. yes, probably nothing you haven’t already seen in all the particle-demos around the net, just that the 3D-effect adds so much to it)
Sources for class ‘Tunnel’ and TunnelDemo. As a principle it’s a cone and we’re taking a look inside of it, bended by adding a polynome to x,y-coords. As a 3D model it’s a relatively simple with no actual need for sorting the faces in z-direction, so it runs pretty fast and smoothly - I think.
Edit - September 2nd: Tunnel.as updated with usage of PerspectiveProjection and Utils3D.projectVectors - although the maths for projection in the earlier version were as simple as x2 = x*radius/z; y2 = y*radius/z; .
3.Pixel Bender TV Scanline Filter
After seeing all of the cool stuff people have been doing with Pixel Bender, I finally decided to spend a little time and start learning how to build them myself.
The learning curve isn’t too difficult, although you do have to learn some new concepts, and deal with some limitations (at least when creating filters for Flash). The most difficult part for me thus far, is just understanding color and pixel math and manipulation (something I need to read up on more).
Anyways, below if one of my first filters. I wanted to post it as it is a pretty simple example, while still potentially being useful. Basically, it creates a TV scanline effect by making every other row of pixels black.
4.Flash Player 10: Pixel Bender Realtime Color Keying
4.Creating Re-distributable ActionScript Libraries of Pixel Bender Filters
ast week I wrote a number of blog posts showing how to work with Pixel Bender filters in Flash, Flex and ActionScript. In particular, I wrote about how to embed pixel bender filters within a SWF and how to encapsulate custom Pixel Bender filters in an ActionScript 3 class. For this post, I am going to take the next step, and show how to create re-distributable SWC libraries of custom Pixel Bender filters that can be used in Flash Player 10 based projects (including Flex Builder, MXMLC and Flash Professional).



Comments (0)
Trackbacks - Pingbacks (0)