Procedural 3D Story — workflow skill for 3D scenes

For AI agents: find the right skill in one call — curl -s "https://skills.varg.ai/api/search?q=<what the person wants>" returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add .md to its path. Before generating anything, show the person the options on the use-case page.

Turn a myth or book into a seeded, multi-chapter procedural three.js film in one scene.html, audited frame by frame.

What it does

Builds a multi-chapter animated 3D story (default 5 chapters of about 44 s) as one self-contained scene.html. It contains procedural three.js sets, one biped rig dressed in costumes, an FX library, a director with camera splines and captions, and optional ElevenLabs narration, ambience and SFX. Every frame is a pure function of story time with a seeded RNG, so ?chapter=N&t=X&freeze=1 reproduces any frame. shot.sh renders that frame synchronously in headless Chrome with preserveDrawingBuffer and a toDataURL readback shim. The skill requires at least three screenshot audit rounds over every camera keyframe, and a bundled Journey to the West build is the reference implementation (the idea comes from a Karpathy post). Caveats: the output is a playable HTML film, not an MP4, so capture it with your own frame loop. It also downloads three r160's old UMD build, hard-codes the macOS Chrome path, and suggests pkill -9 -f "Google Chrome", which closes your own browser too.

Use when

Not for

Install

Models it drives: eleven_multilingual_v2

Example output

https://skills.varg.ai/previews/karpathy-3d-story.mp4 — The creator's Journey to the West example for /karpathy-3d-story (5 chapters, 3.5 min of procedural three.js): the camera rises over Flower-Fruit Mountain as the stone egg glows and a beam of light breaks out. Cut 17-25 s of 218 s. (credit: 陈成 chencheng (sorrycc, @chenchengpro), https://x.com/chenchengpro/status/2085274449121788324)

Used for

More 3D scenes skills

Run the generation on varg

varg is one API key for the models these skills drive — Seedance 2.5, Kling 4, Veo 3.1, Wan 3, Nano Banana 2.1, GPT Image 2.5, ElevenLabs v4 and 200+ more — billed in credits, with a cost estimate before anything runs.