Da Vinci's Living Codex: Three Machines Rebuilt from Ink
Leonardo's ornithopter, self-propelled cart and aerial screw, drawn in ink on a notebook leaf and rebuilt in timber in the browser. Geometry, paper, ink lines, leather cover and even the quill are generated in code — the page loads no image, model or audio files. Includes a draggable sketch-to-timber divider and a cinematic mode.
Prompt
The author has not published the full prompt. Summary or source link below.
Reproduction guide
How to reproduce
- Play before reading code: drag the brass rider at the bottom of the live demo to sweep between ink sketch and timber model — this dual-state render is the soul of the piece.
- Run locally: a standard Vite/Three.js project;
npm install && npm run devafter cloning. - Key techniques: one mechanical geometry expressed through two materials (an ink shader for hatching and paper grain, a timber shader for wood and leather); the divider is a uniform-driven clip line; append
#nohint=1to hide the handwritten prompt overlays. - Steal the testability:
window.__seek(t)jumps the cinematic timeline,window.__codexexposes live state — worth copying whenever you build process-visualisation pieces.