The video for NONZERO is out.
No AI image or video generation went into it. Every frame is drawn by Python code that I built with Claude.
What it does
A band plays on a mountaintop: a singer, a drummer and a violinist. Each one is an invisible 3D rig made of simple shapes like capsules, ellipsoids and cylinders. The engine traces each rig’s outline and draws it as shaky white pencil lines on black. The lines “boil” (redraw slightly differently every frame), overshoot their ends and pick up paper grain, so the whole thing looks hand-drawn.
How it moves
The song drives everything. The track is split into stems: vocals, drums, violin and the rest. Code then pulls out beats, individual drum hits, chugging guitar rhythm, violin notes, vocal bursts and the lyric timing down to individual sounds. From that:
- The drummer hits on the actual drum hits.
- The violinist bows on the actual notes.
- The singer’s mouth follows the phonemes. Expressions come from the lyrics: a “!” gives angry brows, and “AMEN” gives squeezed > < eyes and a lean toward the camera.
- Long hair trails behind movement and drags instead of bouncing like a spring.
The camera
A virtual camera picks its own shots, and there are hard-coded rules for good cinematography: orbit direction alternates, no shot type repeats within three shots, and close-ups of the singer come from the side away from his mic hand. A few must-have shots are fixed by hand. Snow follows the camera as it flies. The title is a 3D logo built out of pencil lines, and the camera flies through it.
The render
Everything is rendered on my desktop (i9-12900K) and split across CPU cores. Each 1080p frame takes about 1.3 seconds per core, so the full 5-minute video takes about 18 minutes on 12 cores. The final 4K version needs about 2 GB of RAM per worker. 8 workers fit in 32 GB; 14 ran out of memory.
All the parts can be reused (the pencil renderer, the 3D rigs, the song analysis, the camera director and the parallel renderer), so the next video starts from a working engine, not from scratch.
Leave a Reply