Ponies & Light



What to do with 16384 boxes?

This sketch uses the GPU to calculate & accumulate spring functions, and renders 16384 flat-shaded boxes in 60fps with ample headroom. I believe this to be a crude reaction-diffusion system. Rendering takes advantage of modern graphics hardware’s instanced rendering capabilities.

This video shows how the sytem can get caught in some sort of stable feedback-loops. The gray squares show the FBOs which I use to calculate force and length for each spring attached to a box, based on their neighbours.

Note that the source code for this sketch is available in the Code section of this site.


Unit 3, 410 Hackney Road,
E2 7AP London, UK