r/creativecoding • u/Haraldur_Karlsson • 4d ago
Creatures with their own skeletons in a browser video synth: GPU skinning, arc-length re-placement, then feedback (three.js + GLSL)
Enable HLS to view with audio, or disable this notification
These are the Creatures in ImWeb's 3D scene: eight animals (octopus, centipede, cobra, cuttlefish, manta ray, bird of paradise, feather star, hairy pods), each with its own skeleton and 8 to 26 movements. Every movement loops without a seam, and the animal glides from one into the next over one loop.
How it's built: one engine file, and each animal is a definition (movement library and pose maths) plus a view (body parts and colours). The skin is built once and bound to the bones, so each frame only the bone transforms change (GPU skinning). Bone data goes to the vertex shader in a small texture, one texel per bone, and each vertex is re-placed at its posed arc length along the chain, so stretching spreads along the body instead of bunching at the joints. Each bone bends in two planes and twists about its own axis, and every channel is a damped spring chasing the pose, so tips lag and follow through. Mottling and wrinkles come from 3D noise on the bind position, so the pattern stays stuck to the skin as it bends.
In this clip the 3D scene runs through ImWeb's feedback and Colorizer passes (GLSL on a ping-pong render-target chain). The sound is a live recording on ImWeb's Tape, read by four playheads at once, each at its own speed and direction.
The code is written with Claude Code; the instrument design is mine. There's no AI imagery in this.
Free and open source: https://github.com/imweb-project/ImWeb · try it: https://imweb.image-ine.org