Interactive WebGL Jelly Physics Demo with Embeddable SourceInteractive WebGL Jelly Physics Demo with Embeddable Source
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I made a jelly for my LAB.
Pull it, let go, throw it up in the air. It wobbles, spins, squashes and lands differently every time. Pick a flavor, change the mold, tune how soft it is and how long it keeps shaking.
There are no animations behind it, just physics. Every vertex is a particle, and the body keeps trying to get back to its shape (shape matching, the same family of techniques used in games). The material is real glass-like transmission in three.js, so you can see the back edges through the cube and the shadow takes the color of the flavor.
The part I care about most: there’s a “Copy code” button. You get one HTML snippet with the whole engine and your current settings. Paste it into any page and the jelly runs there, no install and no build step. MIT licensed, so use it in your own projects.
Play with it and grab the code: philipebastos.com/lab/jelly-studies
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started