Here is a little WebGL experiment I wrote in the form of a fun particle simulation. Individual pixels from a photo are rendered as separate GL points. The particle physics are done on the GPU using a shader. Somewhat directly inspired by a little app that a friend of mine wrote years ago. But this one is done solely in Javascript/WebGL in a browser rather than in native code.
See my Experiment on ChromeExperiments.com
Might be interesting to use this technique to arrange the particles to form other images, as I did (with larger blocks) here:
http://www.krazydad.com/blog/2008/09/jelly-belly-mosaic/
It’d be great to use requestAnimationFrame for this, so it doesn’t eat up cycles when it’s in a background tab.
Nice tip… Thanks [Code updated 02/12/2012]
Paul’s article on requestAnimationFrame