Posts Tagged ‘Player 10’

Apr 30, 2010

Blend modes with Pixel Bender – an update…

I posted this blend mode stuff a long time ago, but the interface was awful and it slipped most people by.

So, I've packaged all the code up into a handy SWC and made a better example application for you to play with.

Here's the test page, and here's the SWC. As well as clicking on the source images to load new ones, you can save your blended creations by clicking on the output window.

(more...)

Jan 13, 2010

JPEGlitch update…

Just a quick update on some new features and improvements to my JPEG glitching code for AS3.

Check out a little demo of newly added 'decode glitching' here and see some test images saved from the Flash, here.

It should work with most JPEGs -  I've implemented and tested parsing for progressive/baseline/optimised etc. But if you find one that won't load, let me know and I'll see if I can add support for it.

This is still a work in progress, so all the user control of glitching and the source code will come at a later date.

Enjoy.

Nov 19, 2009

JPEGlitch

glitchGrab5

I've been experimenting with glitched JPEG encoding in Flash and have created a version of Thibault Imbert's optimised JPEG encoder that gives control over various glitch parameters.

JPEGlitch Example

A simple test suite that lets you control parameters, experiment with the JPEGlitch class, and load/save images locally. This example uses the minimalcomps ui component library from bit-101.

JPEGlitchRhythm for HYPE

I also made a rhythm for the HYPE framework using the JPEGlitch encoder.

This example is an audio visualiser based on a HYPE sound analyser example and plays 2 short tunes endlessly. The rhythm encodes and re-encodes a bitmap, adding the freshly rendered oscillator canvas on top each time.

This is also my entry to the HYPE 'Friday 13th' competition.

All source

Feed your code-eyes :)

Update 14/01/10 - JPEGlitch get's an honorable mention in the HYPE competition :)

(more...)

Oct 30, 2009

Something in the air…

Yes, it's close to that time of year again. So here comes the snow...

This requires Flash Player 9.0.124 or greater get it here

The example above (mouse-over to activate) is a Flash 9 example with 1000 blurry snow particles continually falling on random paths. There is also a slightly tweaked version targeting Flash Player 10 (no noticeable performance gains here I'm afraid, just replaced a few Arrays with strictly typed Vectors), and an AS2, Flash 8 version.

The AS2 version can't handle as much snowfall, but the 300 particle example in the source download gives (me) the same processor load as 1000 particles in the AS3 versions (~30% on an old 2GHz pentium, and ~2% on a 2.83GHz Core2Quad)

For speed, I've implemented a linked-list for the particles and there are no transformations on them in motion, except for x/y translation. I'm also pre-drawing and blurring each particle bitmap when the class initialises, then re-cycling them when they leave the snow bounds.

The compiled size of the Snow class is about 4KB for the AS3 versions, and 5KB for the AS2. I've embedded the winter trees image in the examples, so the end file sizes are about 36KB larger than they would be with just the snow.

Feel free to use the code as you want, any feedback or details of how and where you've used it would be great :)

Snow (includes all source files and the example above)

Sep 20, 2009

Away3D

There have been a fair few updates recently at Away3D - a real-time 3D engine for Flash.

Most recently, a lovely new collection of Pixel Bender shaders for the Flash Player 10 version of the engine - be sure to check out the demos on their site.

Not only that, but there's the scene design and export tool - PreFab, an Air app for "creating top quality 3D content in Away3D". A must try.

Then, not too long ago, Away3D lite was released, a streamlined version of Away3D (25K) for Flash Player 10. Perfect for high-performance, small footprint projects.

As you've probably worked out you, can find out more on the Away3D site.

Mar 30, 2009

FlashPlayer 10 audio fun

spectrumFlow

After seeing these experiments over at everyday flash, I felt compelled to make something using the fp10 version of as3dmod.

(more...)