# A Planet Learns to Walk — `clay-planet@1.0.0`

A thumbprinted terracotta planet grows two little boots and waddles across a pastel clay studio, in stop motion at 12 poses a second. Loops.

A terracotta planet with raised green continents, a rolled cloud and a worried little face grows two ochre boots, finds its balance and waddles across a pastel clay studio. The movement is stepped at 12 poses a second like real stop motion, and the surface carries fingerprint arcs, tool marks and hand-pressed brows. It ends back where it began, so the 8 seconds loop. The film has no settings.

- Kind: background; status: published; digest sha256:7a11000711ffbe2c014061513d454a5476a557278c79e57e596b9e26877e9039
- Role: Shader film (three.js): Handmade clay stop motion, a finished 8-second portrait film with no settings.
- Implementation: three; entry `src/clay-planet.js`
- Files: https://aipixelwizard.com/registry/clay-planet/1.0.0/<path> (`LICENSE`, `asset.json`, `demo.js`, `index.html`, `src/clay-planet.js`)
- Manifest JSON: https://aipixelwizard.com/api/v1/visuals/clay-planet/versions/1.0.0
- Runnable demo: https://aipixelwizard.com/registry/clay-planet/1.0.0/index.html (open over http; it imports sibling packages by relative path)
- Dependencies (exact): `three@0.185.1` (source) — Renderer and a full-screen shader material.; `apw-runtime@1.0.0` (demo) — Demo harness.

## Exports
- `createClayPlanet() => { scene, camera, setSize(width, height), update(time), dispose() }` — The film as one full-screen shader; render its scene with its camera straight to the canvas.

## Composition
- Inputs: The time in seconds, 0 to 8. The film has no other settings.
- Outputs: An opaque full-frame picture, already in display colours: render it straight to the canvas.
- Coordinates: Composed for a 4:5 portrait frame and measured by the frame height: in a wider frame the picture stays centred at full height and its background fills the sides; in a narrower one, such as 9:16, the sides are cropped.
- Lighting: Soft, even studio light with a gentle shadow on the pastel table.
- Timing: The planet grows its boots, finds its balance and waddles across the frame; the motion is stepped at 12 poses a second, like stop motion.
- Works with: —
- The continents, clouds, fingerprints and tool marks are procedural surface detail, not image files.
- The stepping is deliberate: it is what makes the clay feel handmade.
- Every pixel is a function of the time alone, so frames can be rendered in any order.

## Output and loop
- 1080×1350, 30 fps, 8 s, procedural
- Seamless loop: yes — Every part of the film is a function of the time modulo its length, and every motion completes whole cycles, so the last frame meets the first.
- Verified 2026-10-10 in Chrome 154.0.8037.97 headless on Linux 7.0.0-38-generic (x64), Node 22.14.0 (WebGL 2 via SwiftShader (software)); deterministic: yes; loop check: Frame 0 vs end state (progress 1): mean |Δ| 0.0000, max |Δ| 0 of 255.

## Use it
New project: Create a WebGLRenderer on a canvas (no antialiasing), call createClayPlanet() once and film.setSize(width, height); then for each frame call film.update(timeInSeconds) and renderer.render(film.scene, film.camera).

Existing project: Copy src/clay-planet.js, which needs only three. Render film.scene with film.camera into your own canvas or render target; the output is opaque and already in display colours, so use no tone mapping or colour conversion.

Reuse ideas:
- Kids' intro: the planet is on its feet from about 1.5 s and keeps walking to the end.
- Looping mascot: it ends back where it started, so it can repeat for any length.
- Earth Day or geography clip: a friendly Earth that needs no voice-over to read.

## Limitations
- The film is finished: it has no settings. To change colours or timing, edit the shader.
- It is composed for a 4:5 portrait frame.
- Its length is fixed at 8 seconds; repeat the loop to fill a longer clip.

## License
MIT. Copyright (c) 2026 AI Pixel Wizard. Released under the MIT License. See LICENSE in this folder.

Provenance: From the owner's collection Twenty Impossible Worlds: the original GLSL ES 3.00 shader of the film “A Planet Learns to Walk”, created with ChatGPT / Codex and used as published, wrapped for AI Pixel Wizard as a three.js full-screen shader in October 2026. The collection's synthesised soundtrack is not part of this ingredient.

