code-path-traced-film
БесплатноЗапускает вложенные скриптыНе проверенMake a short animated film in which everything is code the agent writes, including the renderer: a path tracer in one WebGL2 shader (no Blender, no three.js…
от vargai290 установок в других каталогахОб этом скилле
A film where the renderer is code too
Coding models make video by writing programs. Most of those programs drive someone else's renderer (Blender, three.js). This skill goes one step down: the agent writes the path tracer itself, then tells a story with it. The claim a viewer can check is simple and strong: no 3D software, no models, no textures, no video model, no music model. The starter is a finished film made this way in one session.
- Film:
scripts/smallest-star/renders "The Smallest Star", a 70 s fable about a firefly and a lost mouse (watch it). All 1,560 frames at 1280x720 took 1 h 46 min on a MacBook Pro M4 Pro; the whole session, from a one-line prompt to the encoded film, took under three hours (2026-11-10). - Live page:
scripts/smallest-star/live/bundles the same renderer into one HTML file. Viewers drag the camera and watch the picture converge on their own GPU (28 ms a sample at 960x540 on the same laptop). Post the link with the film: it is the proof.
Ask first
Put these to the person before building. Each one changes hours of work.
- Story. Their own (a moral in one line is enough) or one the agent writes. Two characters and three places is the ceiling for one session.
- Length. 30, 60 or 90 s. Render time grows with length: the 60 s film took about two hours of GPU at 1280x720 on one laptop. Offer 30 s when they want it today.
- Look. The starter is a night diorama: clay characters, indigo sky, one warm light. A day scene needs a new sky and light balance (one more hour). Keep one dominant light source that is also a character or a story object; path tracing is at its best when the light is the story.
- Delivery. 16:9 film only, or film plus the live page.
The order of work
- Write the fable, then the shot list on a bar grid. Pick a tempo whose bars divide into frames
(72 bpm in 3/4 gives 2.5 s bars = 60 frames at 24 fps). Every shot starts on a bar line. Put shots, moods,
captions and sound cues in one
timeline.json. Picture, score and assembly all read this file. - Start the score now, in parallel.
audio/score.pyis pure numpy: music box, pad, bass, crickets, wing buzz, footfalls, a hand-written reverb and a BS.1770 loudness meter. It readstimeline.json, so it follows every later change. Hand it to a second agent with the brief inreferences/score-brief.md. - Lay out the world as data (
src/world.js): where the path runs, pond, house, props. The same file emits GLSL constants and JS helpers, so the shader and the animation never disagree. - Model characters as distance fields, a dozen primitives each, joined with smooth unions. Give each a
pose vector (head pitch, ears, squash, tail) driven from JS. Look at them under a bright studio light
first (
--dev dev_mouse:0.2), not in the dark scene. - Write every shot as a function of time (
src/shots.js): camera, both characters, lights, exposure. Motion blur is free: the renderer asks for the state at a different time for every sample. - Render the whole film as a contact sheet before polishing anything: 33 stills at 480x270, 8 samples, 13 s. Fix blocking and framing here. Repeat after every change; it is cheap.
- Look pass. Night only reads when the visible sky is far darker than the sky that lights the scene:
keep two gains. Numbers that worked are in
references/look.md. - Motion strips. Render every second frame of the fast moments at 384x216 and read them as a strip. Put footfalls on the beat by shifting the hop phase so the landing, not the take-off, falls on the cue.
- Time one frame per shot at final settings, then start the long render in the background with
resume (
render.tsskips frames that exist). Do not editsrc/while it runs: a retry would pick up the new code mid-film. - Making-of passes, assembly, encode.
--modes 2,1writes normals and albedo from one render; one sample per pixel with no denoise shows the raw light.post/compose.pyscales, adds captions and pipes frames to ffmpeg with the score. - Build the live page (
live/build.py) and test that its canvas really draws before publishing.
What makes the renderer fast enough
These three changes took a 720p frame from 13-23 s to about 4 s at 16 samples, and stopped the GPU from dropping the WebGL context.
- The ground is a heightfield, not a distance field. Step by
height / (slope bound - ray slope)with a local slope bound. A grazing ray over flat ground takes 5 steps instead of 120. - Objects are marched only inside their bounding hull. Intersect the ray with a few boxes and spheres first; most rays never touch the object march. Inside a bound, return the bound's distance until close.
- Grass is analytic. One blade is a parabolic ribbon: a ray meets it by solving one quadratic. Bla
Установить code-path-traced-film в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bun:*)Bash(python3:*)Bash(ffmpeg:*)Bash(ffprobe:*)ReadWriteEditFAQ
Что делает скилл code-path-traced-film?
Make a short animated film in which everything is code the agent writes, including the renderer: a path tracer in one WebGL2 shader (no Blender, no three.js, no meshes, no textures), characters and props as signed distance fields, a meadow of analytic curved grass blades, moon, firefly and window lights with soft shadows, depth of field and motion blur, a variance-guided denoiser, a score synthesized in numpy from the same timeline, captions and an encode. Includes the complete tested film "The Smallest Star" (70 s, 11 shots, two characters) as a starter, a live page that runs the same renderer in the browser, and the speed-ups and traps found while making it. Use when someone asks for a film, short or music piece "made entirely in code", "write your own renderer / ray tracer / path tracer and make a film with it", a storybook or clay-diorama 3D short without Blender, a "no assets, no video model" showcase of what a coding model can do, or a remake of The Smallest Star with another story. Not for a Blender film (blender-code-film), a three.js explainer (code-3d-explainer), recording a browser game (code-game-trailer), 2D motion graphics (kinetic-type-art, hyperframes) or AI-generated footage (varg-ai).
Как установить скилл code-path-traced-film?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-path-traced-film запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic