Communitygithub.com

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

What is low-poly?

low-poly is a Claude Code agent skill that makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/low-poly

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

PS1 / Retro Low-Poly 3D (low-poly)

┌──────────────────────┐
│  [ SHIBUYA ]         │  pixel-font station sign (your names)
│  <EBISU  HARAJUKU>   │
│        ▟▙            │  a cream low-poly dog, sitting
│ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬   │  yellow tactile strip
│  for almost 10 years │  small yellow caption, thin black outline
│ ═╪══╪══╪══╪══╪══╪═   │  the train passes here; snow after it
└──────────────────────┘

Setup Check

SKILL_DIR is the directory containing this SKILL.md file (check the path in <skills>).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<directory containing this SKILL.md>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/vendor/gsap.min.js" ] && [ -d "$KIT/node_modules/three" ] || bash "$KIT/setup.sh"

Requires ffmpeg, node (18+), python3 (3.9+), and WebGL via headless Chrome.

Steps

  1. Craft the story copy. Two short captions: a setup while the dog waits, and an emotional turn after the train clears (e.g. "he waited every day" / "for almost 10 years"). Lowercase, no trailing periods, <= ~26 chars each. Double-check historical facts.
  2. Write the spec. Create <name>.lowpoly.json using the schema below.
  3. Validate & quick snapshot.
    python3 "$SKILL_DIR/build.py" <name>.lowpoly.json --check
    python3 "$SKILL_DIR/build.py" <name>.lowpoly.json --snap 3.0
    
    Inspect the snapshot PNG with read_file before running the full 3D render.
  4. Render. Run:
    python3 "$SKILL_DIR/build.py" <name>.lowpoly.json
    
    Takes ~1.5 minutes (WebGL in headless Chrome).
  5. Visual QA (Required). Inspect <name>.lowpoly.sheet.jpg with read_file:
    • Station sign is legible and unclipped.
    • Dog and yellow captions stay cleanly inside the red Instagram safe-area box.
  6. Hand over. Return clickable links to the .mp4 and .sheet.jpg.

Spec Schema

{
  "lines": ["he waited every day", "for almost 10 years"],
  "sign": "SHIBUYA",
  "prev": "EBISU",
  "next": "HARAJUKU",
  "snow": true
}
  • lines: 1 or 2 short strings (<= ~26 chars). Line 1 shows at 0.3 s; line 2 at 2.6 s just before the train clears.
  • sign, prev, next: ASCII letters, digits, spaces, dots, and dashes only (sign <= 20 chars, prev/next <= 9 chars).
  • snow: true transitions spring petals into falling snow after the train passes (time passing); false keeps spring.
  • hold (optional): Extra seconds at the end.
  • out (optional): Custom output .mp4 path.

Timeline: dog waits (0–1.2 s), train obscures him (1.2–2.67 s), reveal (2.67 s), head turn (3.45–3.95 s).

Custom Retro Scene (Advanced)

Copy "$SKILL_DIR/template.html" next to the spec, set "template": "my-scene.html", and swap the models while keeping the PS1 aesthetic rules:

  • Render at 360x640 and upscale 3x with nearest-neighbour filtering.
  • Keep vertex-snapping shader wobble and colour dithering.
  • Generate procedural 16–64 px textures with NearestFilter and simple primitives (boxes, cones, cylinders).
  • Wide lens close to subject + small yellow outlined captions in the lower third.

Taste Rules

  • Works best for true, bittersweet, or eerie miniature stories (animals, history, strange facts).
  • Inspired by retro "low poly shorts"; not affiliated with any channel.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills