# Opus Creates: 프롬프트 하나로 만든 WebGPU 데모 영화

Opus Creates, 프롬프트 하나로 만든 WebGPU 데모 영화: 입력한 코드 한 줄마다 바다가 대성당, 새 떼, 도시, 은하로 변하는 55초 원테이크 영상.

Canonical URL: https://www.subclip.app/ko/agent-skills/community/examples/opus-creates-webgpu-film

Rez(@RezAIT00) 님의 X 게시물, 2026-11-26: https://x.com/RezAIT00/status/2125766502985224495 (Subclip이 보관한 영상 사본: https://subclipweb.subclip.app/agent-skills/community/examples/opus-creates-webgpu-film/opus-5.5-claude-code.mp4?v=3)

CF(@cfenghub) 님의 X 게시물, 2026-11-26: https://x.com/cfenghub/status/2125792113656746197 (Subclip이 보관한 영상 사본: https://subclipweb.subclip.app/agent-skills/community/examples/opus-creates-webgpu-film/opus-5.5-claude-code.mp4?v=3)

## 무엇을 만드나요

이 프롬프트는 에이전트에게 자기 자신에 관한 영화를 요구합니다: 끊김 없는 55초 카메라 무브 속에서 에이전트가 짧은 실제 코드를 입력하면 세계가 그대로 따릅니다. 검은 거울 같은 바다가 폭풍으로 폭발하고, 배럴 웨이브가 얼어붙어 스테인드글라스 대성당이 되고, 장미창이 산산이 부서져 유리 새 떼가 되고, 바다에서 도시가 솟아오르고, 중력이 뒤집히고, 불빛이 은하가 되었다가, 모든 것이 다시 깜박이는 커서로 접혀 "I'm Opus. What should we make?"를 입력합니다. 입력한 코드는 실제로 실행되고, 화면은 그 코드가 설정한 값만 읽습니다.

규칙은 엄격합니다: WebGPU와 WGSL로 처음부터 직접 쓴 렌더러, 코드로 합성한 음악과 사운드 디자인, 파일 없음, 라이브러리 없음, 생성형 모델 없음. 완성된 영화는 Claude Code에서 claude-opus-5-5 모델을 xhigh 강도로 요청해 약 152분 만에 나왔습니다.

## 프롬프트 (prompt.md)

저장소의 prompt.md를 한 글자도 바꾸지 않고 그대로 실었습니다. 저장소의 모든 모델이 이 프롬프트를 똑같이 받았습니다. {{FOLDER}} 자리표시자가 있으면 보내기 전에 빈 출력 폴더로 바꾸세요.

```
Make a mind-blowing 55-second film about yourself, made entirely in code, for posting on X as a showcase. It is one unbroken shot in which you type short lines of real code and the world obeys: each Enter transforms everything on screen into what the line says, mid-flight, with no cuts. It must win on sheer spectacle (scale, light, speed, destruction, transformation, music) so that a stranger scrolling past stops in the first second, stays to the end, and refuses to believe it is all code. Build it yourself and start no subagents.

## The film

One continuous camera move, 1920x1080 at 60 fps, exactly 55.0 seconds. Every world is made from the one before it: the same sea surface, the same shards, the same lights. The score runs at 120 BPM and every Enter lands on a beat (1, 5, 9, 11, 14, 19, 27, 35 and 43 s). The cursor ignites into the sun in the first second, and in the last seconds everything collapses back into one point, which turns out to be the cursor. Type these lines exactly, at these times:

| Time | Typed | What happens |
|---|---|---|
| 0.0-1.0 | `sea.wind = 38` (typed 0.10-0.80, Enter 1.00) | A black mirror sea. The line types itself, reflected upside down in the water. The cursor sits where the sun will rise. |
| 1.0-2.4 | | **Enter.** The cursor ignites into the sun. A 300 m crown of water and a white column detonate close to camera (about 420 m away) and the sky unrolls outward from the sun. A 100 m ring wall of backlit green water races at the camera. The camera climbs its face, crests through the spray and dives. |
| 2.4-5.0 | `wave.height = 54` (typed 4.05-4.65) | A storm sea between waterspouts, flown 5-10 m over real crests in clean low-sun colour. The spouts read as translucent ropes of water. |
| 5.0-9.0 | `water = glass` (typed 8.30-8.78) | **Enter at 5.** The sea on the right stands up 110 m and curls over the camera into a barrel (curl radius = height / 2). The camera rides inside the tube toward the eye, with the sun behind the emerald wall. |
| 9.0-12.9 | `sky.hour = 6`, then a live edit to `sky.hour = 18` (typed 10.28-10.58; the 6 is deleted at 10.68; 1 and 8 typed at 10.78 and 10.88) | **Enter at 9.** Time stops. A crystallisation front runs down the tube and the barrel becomes a stained-glass cathedral grown from the same surface: ribs growing along it, a mirror floor, a rose window ahead. The camera skims the floor, climbs the vault and banks. **Enter at 11:** a whole day passes in 1.4 s, coloured shafts sweep the nave, and the sun sets through the rose window. |
| 12.9-14.0 | `shards.fly()` (typed 13.25-13.62) | At 12.935 s, one 16th before the beat, the camera smashes through the rose window. The glass hangs in slow motion, glinting and translucent, while the plain stone pieces drop away. |
| 14.0-19.0 | `city.floors = 160` (typed 18.22-18.78) | **Enter at 14.** Every glass shard unfolds into an articulated stained-glass bird (about 6,000 of them). The murmuration wheels over the sunset sea as night falls and the birds begin to burn. |
| 19.0-27.0 | `gravity = 9.8`, then a live edit to `gravity = -9.8` (typed 25.40-25.80; the cursor walks back three places at 26.10-26.30, the minus goes in at 26.52, the cursor returns at 26.72) | **Enter at 19.** The burning flock dives into the sea, and where each bird hits, a tower rises: about 2,600 of them, water heaping and pouring off them, windows lighting floor by floor as they clear the surface. Night flight down the main avenue. |
| 27.0-35.0 | `time.scale = 1e15` (typed 33.45-34.10) | **Enter at 27.** Gravity flips. Every window's light lets go and falls upward, the sea rains upward, and the towers tumble into the sky. The lights converge into a river spiralling up to one point. |
| 35.0-43.0 | `collapse()` (typed 41.90-42.30) | **Enter at 35.** The river of lights becomes stars, and the camera climbs out of it and pulls back as about a million stars wheel into a spiral galaxy. |
| 43.0-45.0 | | **Enter at 43.** Everything spirals into a single point. |
| 45.0-45.93 | | One point of light on black, in true digital silence (zero samples). |
| 45.95-55.0 | `I'm Opus.` / `What should we make?` (typed 47.05-49.85) | The point is the cursor. It slides into place (46.55-46.95), types the two lines centred inside title-safe margins, and keeps blinking for 5 s. |

**The code is real.** Keep every line in a `PROGRAM` list in the source and execute it with `new Function` against a `world` object. The picture must read only the values that execution produces: `sea.wind` sets the ocean spectrum, `wave.height` the barrel's curl radius, `sky.hour` the sun's azimuth and elevation, `city.floors` the tower heights, the typed `gravity` drives the flip, and `time.scale` the galaxy's rotation. Add a check that throws if the program didn't run. The finale lines are only typed, not executed, and the score's key clicks are generated from the same strings.

## How to build each world

- **Renderer:** write your own WebGPU renderer in WGSL and JavaScript, with no libraries. Render 32 jittered sub-frames per output frame for motion blur, anti-aliasing, soft shadows, converged volumetrics and stochastic glass transparency.
- **Sea:** a multi-cascade FFT ocean, evaluated analytically at time t, with a JONSWAP spectrum set by `sea.wind`. The sea, the barrel and the nave are one heading-integrated cross-section that morphs between stages, so the transformation is physical and continuous, never a crossfade, wipe, whiteout, fog cover or hidden cut.
- **Detonation:** a parametric crown sheet that tears into fingers, a white column, about 140,000 ballistic droplets thrown off the crown rim, and plume sprites. The camera's climb comes from the same wall-height function the GPU uses, evaluated on the CPU, so it really crests the wall. Limit the slope of the climb and smooth the camera over the crest, so the pitch never snaps.
- **Text on black:** draw the reflection of the typed line into the water's real planar-reflection pass, correctly inverted and rippled, never as a separate mirrored copy.
- **Cathedral:** ribs and tracery as instanced tubes in the surface's own coordinates. Stained glass is procedural and casts a coloured transmittance shadow map, so the sun throws coloured god rays across the nave.
- **Birds:** each bird is a 22-triangle rig with body, tail and two-jointed wings (flap, glide, tuck) that banks into turns. The flock is a deterministic boids simulation (separation, alignment, cohesion, swirl, dive) baked from code at 60 Hz, starting from the shards' slow-motion positions. Each bird's flat silhouette lies inside its shard and unfolds out of it. They must read as birds, never as confetti.
- **City:** a hashed tower grid with several facade styles (punched windows, ribbon windows, fins), dark floors among the lit ones, night haze and a starfield. Towers rise in order from where the flock hits the water.
- **Gravity, lights, galaxy:** the flip is a closed-form ½-g-t² with the typed g. One shared point field carries city windows, then the rising lights, then a logarithmic spiral galaxy, then a single point. Depth-test the stars and dim them where they're dense near the camera, so the handover never becomes a full-frame whiteout.
- **Lettering:** your own stroke letterforms, baked to an SDF atlas. No system or web fonts.

## Look and sound

- Pause on any frame and it should look like a frame from a big-budget film: a clear focal point, depth, atmosphere, and real light (sun and sky, shadows, reflections, refraction, volumetrics, emissive light that actually lights things). Change the palette, light and time of day with each world, and escalate the scale every time. Avoid flat graphics, neon grids, plain particle clouds, node graphs and glowing brains.
- The camera is a stunt pilot: near misses, flying through and under things, banking, weight and motion blur. Every move has a destination, and motion must be readable once on a phone.
- On-screen type is sparse and large enough for a phone, with good contrast against bright scenes.
- Synthesize a cinematic score in code at 120 BPM: braams, sub hits, taiko, a D-minor ostinato over the storm, organ and formant choir in the cathedral, bells that follow the sun, a 16th-note city pulse, a reverse cymbal and rising sub glissando for the gravity flip, the biggest hit at the galaxy in a long hall, a reversed-choir suck into the collapse, then true silence and key clicks alone at the end. Add full sound design: water, the wall's roar, spray, crystallising glass, a 700-grain shatter, wings, cascades. Master at −14 LUFS integrated with true peak at or below −1 dBTP.

## Rules

- Everything is code you write: picture, geometry, textures, motion, lettering, music and sound. No image, video, audio, font or 3D model files, no generative image, video, music or speech models, no text-to-speech and no network requests. Original work only: no existing characters, scenes, logos or brand marks.
- Deterministic: the film is a pure function of time with seeded randomness. Expose `window.renderAt(tSeconds)` and `window.DURATION` for frame-exact capture. Simulations such as the flock are baked from code at page load. A frame rendered on its own must match the same frame rendered in sequence, so no buffer may be read before it has been drawn for that frame: gate every pass and every read of it with the same function.
- Render budget: design for at most about 1 second per final 1080p frame, so that a full re-render takes under an hour.
- No strobing: at most three full-frame flashes in any second.
- Work only inside `{{FOLDER}}` (create it if missing), apart from tool installs and caches. Leave no background processes running at the end.

## Process and checks

You can't watch video, so compensate. Judge motion from consecutive-frame strips (12 or more frames 1/30 s apart), 2 fps contact sheets of the whole cut, screen-space speed plots and frame-difference metrics, and view stills full-size and at phone size. Pick random frames, not flattering ones.

1. Write `TREATMENT.md` first: every beat, its transformation, camera, light, sound and how it will be built.
2. Prove the hardest stretch first: build the opening through the cathedral (0-13 s) at final quality with final sound, critique it, and rebuild what fails before extending the same engine to the rest of the film.
3. Do at least three full critique-and-rebuild passes on the whole cut as a bored X viewer: is the first second irresistible, is any stretch weaker than the cathedral, does any frame look like a WebGL demo, does the ending land. Rebuild what fails rather than polishing it.
4. Audit every frame-to-frame jump in mean brightness and every short bright or dark excursion that returns within a few frames. For each, decide whether it is intended (the sun igniting, the rose-window smash) or a bug (a stale buffer, a camera snap, light switching off in one frame), and fix the bugs at the root.
5. Count flashes, measure loudness, and check the 0.93 s silence is true digital zero. Say plainly what you could not judge, including that you can't hear the sound.

## Delivery

1. `index.html`: the single self-contained page, built from your sources. Opened normally, it plays a live preview, and `renderAt` / `DURATION` render any frame exactly.
2. `opus55_creates.mp4`: rendered frame by frame from that page by driving the machine's Chrome or Edge headlessly. H.264 High, yuv420p, crf 16, AAC 320k at 48 kHz, `-movflags +faststart`, exactly 3,300 frames.
3. `opus55_creates_x.mp4`: the same cut for X, at most 60 MB.
4. `soundtrack.wav`, `contact_sheet.png` (2 fps) and `thumbnail.png` (the best frame).
5. `NOTES.md`: the shot list with timestamps, the exact code typed and when, how each world and the score are built, every check you ran with its numbers, honest weak spots, and start and end times.

Verify with `ffprobe`, a full decode of both MP4s, loudness and the flash count. In your final reply, give the absolute paths, duration, elapsed time, seconds per frame, and the honest weak spots.
```

## 생성 결과

### Opus 5.5 (Claude Code)

요청한 모델: claude-opus-5-5. 하네스: Claude Code. 추론 강도: xhigh. 제작 시간: 152분. GPU: NVIDIA GeForce RTX 5090. 렌더러: custom WebGPU, written by the agent, no libraries. 영상: 1920x1080, 55 s.

영상: https://subclipweb.subclip.app/agent-skills/community/examples/opus-creates-webgpu-film/opus-5.5-claude-code.mp4?v=3

콘택트 시트: https://subclipweb.subclip.app/agent-skills/community/examples/opus-creates-webgpu-film/opus-5.5-claude-code-contact-sheet.jpg

Claude Code에서 약 152분 동안 세 단계(오프닝 검증, 전체 영화, 수정 패스)로 만들었고, 공유 RTX 5090에서 claude-opus-5-5를 xhigh 강도로 요청했습니다. 렌더러는 라이브러리 없이 약 2,500줄의 JavaScript와 WGSL로 이루어져 있습니다: FFT 바다, 물방울 14만 개가 튀는 300m 크라운 폭발, 같은 파도 표면을 따라 자라나는 대성당, 미리 구운 boids 군집이 움직이는 삼각형 22개짜리 새로 펼쳐지는 파편 6,144개, 탑 2,640개, 별 110만 개의 은하. 입력한 코드는 한 줄씩 실행되고 엔진은 그 결과만 읽습니다. 점검: 전체 디코딩, -14.1 LUFS, 0.93초의 완전한 디지털 무음, 초당 최대 한 번의 번쩍임, 그리고 카메라 튐과 오래된 반사 버퍼를 찾아 고친 루마 점검. 스스로 밝힌 약점: 소리를 들어 보거나 영상을 본 적이 없고, 오프닝의 고리 모양 벽이 일부 바위처럼 보이며, 도시 통로가 반복적이고, 가장 가까운 새들이 리본처럼 번집니다.

원본 파일: https://github.com/RezAIT00/agent-demos/tree/main/prompts/creates-everything/generations/opus-5.5-claude-code. Subclip 사본: https://github.com/subclip-app/agent-demos/tree/main/prompts/creates-everything/generations/opus-5.5-claude-code

## Subclip에서 만들기

1. **비트 표부터 시작.** Subclip MCP로 Claude Code나 Codex를 Subclip AI Editor에 연결하고 1920x1080, 60fps, 길이 55초 프로젝트를 만드세요. 프롬프트의 입력 줄과 Enter 시점 표는 그대로 두세요: 그것이 곧 타임라인이 됩니다. 에이전트에게 트리트먼트를 먼저 쓰게 하고 승인을 기다리게 하세요.
2. **무엇보다 먼저 WebGPU 테스트.** 렌더러에 대해서는 솔직히 말씀드립니다: Subclip 레이어 렌더러와 내보내기 경로에서 WebGPU와 무거운 WebGL2 지원은 아직 검증되지 않았습니다. 먼저 5초짜리 테스트 레이어를 만들어 미리보기와 내보낸 MP4에서 확인하고, 둘 중 하나라도 빈 화면이 나오거나 느리면 쓸 Canvas2D나 일반 WebGL 대안을 준비해 두세요. 이 프롬프트는 프레임당 서브프레임 32개를 쓰는 커스텀 WebGPU 패스 렌더러에 기대고 있어서, 이 테스트가 전체 계획을 좌우합니다. 실패하면 같은 세계를 WebGL2나 Canvas2D로, 목표를 낮춰 요청하고 브리프에 그 사실을 적으세요.
3. **세계마다 레이어 하나, 시계는 하나.** 각 세계를 `add_runtime_layer`로 런타임 레이어로 만들고 `validate_runtime_layer_source`로 검증하세요. 모든 레이어가 같은 시간 값을 읽어야 레이어 사이 변환이 끊기지 않습니다. 레이어 규약은 [HyperFrames 모션 레이어](https://www.subclip.app/ko/agent-skills/community/hyperframes-motion-layers) 스킬에 있습니다. 모든 프레임은 시드를 고정한 난수를 쓰는 시간의 순수 함수여야 한다는 프롬프트 규칙을 지키세요: 타임라인은 자유롭게 이동하므로 어떤 것도 이전 프레임에 의존하면 안 됩니다.
4. **사운드: 프롬프트 요구대로 합성.** 이 프롬프트는 음악과 사운드 디자인을 코드로 합성하라고 요구합니다. 에이전트에게 오디오 파일로 렌더링하게 한 뒤, 120 BPM 비트 그리드에 맞춰 타임라인에 오디오 아이템으로 놓으세요. 프롬프트가 -14 LUFS를 요구하므로 내보낸 뒤 음량을 확인하세요.
5. **지루해하는 시청자처럼 검토하고 내보내기.** 구간 하나가 끝날 때마다 에이전트에게 `get_timeline_contact_sheet`를 요청하고, 중요한 순간(첫 프레임, 큰 변환마다, 마지막 프레임)은 `view_frame`으로 보게 하세요. 스틸만으로는 움직임 문제가 보이지 않으니 승인 전에 꼭 미리보기에서 재생해 보세요. 프롬프트 자체의 점검 항목도 그대로 적용됩니다: 한 프레임짜리 밝기 튐과 번쩍임을 찾아내세요. 그다음 `export_video`로 MP4를 내보내세요.

## 관련 커뮤니티 스킬

- https://www.subclip.app/ko/agent-skills/community/hyperframes-motion-layers
- https://www.subclip.app/ko/agent-skills/community/threejs-3d-scenes
- https://www.subclip.app/ko/agent-skills/community/motion-polish

## 출처와 크레딧

프롬프트와 생성 결과: **Rez** ([@RezAIT00](https://x.com/RezAIT00)), 출처 [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Subclip이 보관한 저장소 사본: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos). 이 영화는 **CF** ([@cfenghub](https://x.com/cfenghub))가 X의 [이 게시물](https://x.com/cfenghub/status/2125792113656746197)에서 공유했고, 프롬프트는 답글에 있습니다.

원본 프롬프트 폴더: https://github.com/RezAIT00/agent-demos/tree/main/prompts/creates-everything. Subclip 사본: https://github.com/subclip-app/agent-demos/tree/main/prompts/creates-everything

[모든 예제](https://www.subclip.app/ko/agent-skills/community/examples)