vibe3d
← Back to works

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.

The ornithopter: ink sketch and timber model split by the divider
Image: author-published artwork

Prompt

The author has not published the full prompt. Summary or source link below.

Reproduction guide

How to reproduce

  1. 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.
  2. Run locally: a standard Vite/Three.js project; npm install && npm run dev after cloning.
  3. 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=1 to hide the handwritten prompt overlays.
  4. Steal the testability: window.__seek(t) jumps the cinematic timeline, window.__codex exposes live state — worth copying whenever you build process-visualisation pieces.