# Voxel-Art-Diorama von New York: ein Prompt, zwei Agenten

Voxel-Art-Diorama von New York auf einer schwebenden Insel zur blauen Stunde: eine three.js-Datei und ein 12-Sekunden-Loop, gebaut von zwei KI-Agenten.

Canonical URL: https://www.subclip.app/de/agent-skills/community/examples/new-york-voxel-diorama

## Was dabei entsteht

Der Prompt verlangt eine einzige, eigenständige three.js-Seite: ein Voxel-Diorama von New York City auf einer schwebenden Insel kurz nach Sonnenuntergang, vom Hafen aus gesehen. Freiheitsstatue, Lower Manhattan, Brooklyn Bridge und ein beleuchtetes Empire State Building müssen klar erkennbar sein, dazu geschichtete Gesteinsschichten, Wasserfälle über den Inselrand, fließender Verkehr, Fähren mit Kielwasser und eine langsame Kamerafahrt im Kreis. Alles wird in Code erzeugt, und ein Hook `renderAt(t)` muss jeden Moment exakt rendern, damit sich die Seite als nahtloser 12-Sekunden-Loop in 1080x1080 aufnehmen lässt.

Rez hat ihn zweimal gleichzeitig auf einer GPU laufen lassen: einmal in Devin mit einem als claude-opus-5-5 angefragten Modell (als Opus 5.5 bezeichnet) und einmal in Claude Code mit einem als claude-sonnet-5-5 angefragten Modell (von Rez als Sonnet 5.6 (next) bezeichnet). Beide lieferten eine funktionierende Seite, das Loop-Video und vier Standbilder.

## Der Prompt (prompt.md)

Die exakte prompt.md aus dem Repository, Wort für Wort. Jedes Modell im Repository hat genau diesen Prompt bekommen. Wo der Platzhalter {{FOLDER}} steht, ersetze ihn vor dem Senden durch einen leeren Ausgabeordner.

```
Create a single self-contained HTML file using three.js that renders an ultra-detailed voxel diorama of New York City on a floating island at blue hour. The first frame looks in from New York Harbor. The Statue of Liberty leads the eye toward Lower Manhattan, the Brooklyn Bridge cuts across the East River, and the lit Empire State Building anchors Midtown farther back. Build enough depth between these silhouettes that all four read clearly as the camera moves.

## Island and composition

- Shape Manhattan into a long, tapered peninsula with a recognizable southern tip. Run the Hudson along its western shore and the East River along its eastern shore. Let them meet in a broad wedge of harbor in the foreground. Put a compact Brooklyn waterfront on the far side of the East River and Liberty Island out in the harbor. Compress distances while preserving those relationships.
- Cut the island into layered voxel strata of grey schist, weathered brown soil, and pale fractured stone. Add stepped ledges, slivers of roots below Central Park, dark pier pilings below the streets, and a jagged underside. Let the harbor spill over the front in broad ribbons, with thinner falls along the sides and mist beneath the lip. Keep the channels wide enough for moving boats and their wakes.
- Let the density change from the tight streets and piers of Lower Manhattan to Midtown's taller street grid, then open into Central Park. Scatter water towers, fire escapes, rooftop vents and lit windows across the surrounding mid-rise blocks. Leave gaps and lower roofs around the landmark silhouettes.

## Landmarks

- **Empire State Building and Chrysler Building.** Model the Empire State Building with a limestone shaft, vertical window bands, stepped Art Deco shoulders, a lit crown, and a slim mast. Give the Chrysler Building enough separation to show its silver crown, stacked triangular windows, and narrow spire.
- **One World Trade Center.** Use a square base, tapered triangular glass faces, and a slender antenna. Give it room above the clustered Financial District towers so its silhouette stays legible.
- **Brooklyn Bridge.** Build two stone towers with paired, open Gothic arches, a roadway and raised promenade, looping suspension cables, vertical hangers, and diagonal stays. Show the deck and cables against the open water. On the Brooklyn bank, put brick warehouses, a cobbled DUMBO street, and a waterfront park at the bridge approach.
- **Statue of Liberty.** Render the oxidized copper figure in stepped voxels with a seven-ray crown, sculpted robe, tablet, and a raised torch. Set it on a stone pedestal within Fort Wood's star-shaped walls. Angle the figure and camera so the face, torch arm, and tablet are readable at island scale.
- **Times Square and Central Park.** Carve out Broadway's diagonal through the grid with the red steps, colored billboard panels, a pedestrian plaza, and yellow taxis at its edges. Give Central Park an elongated footprint, layered fall foliage, curving paths, a lake, and the pale arch of Bow Bridge.

## Street and harbor life

- Move yellow cabs and city buses along the avenues, stop and release traffic at signals, and animate tiny pedestrians on the Brooklyn Bridge promenade, in Times Square, and along park paths. Add rooftop steam, gently changing billboard graphics, and enough movement on side streets to feel like a lived-in city.
- Run an orange Staten Island Ferry past Liberty Island and a smaller water taxi below the Brooklyn Bridge. Give each a bow wave, a V-shaped wake, and warm cabin lights reflected on the water. Move gulls above the piers and animate chop, waterfall spray, and mist. Hide route resets behind piers, buildings, or the edge of the primary view.

## Camera and lighting

- Set the scene just after sunset. Use a deep blue sky with a band of peach at the horizon, cool stone and water, warm apartment windows, and amber bridge lights. Let colored reflections break up across the harbor. Use soft shadows, ambient occlusion, ACES tone mapping, restrained bloom, and clean antialiasing. Preserve detail in the dark cliff faces and the bridge's stonework.
- Make a seamless 12-second loop at 30 fps with visible movement from frame one. Use a slow raised orbit that sweeps across roughly 40 degrees total and returns with a subtle push-in and pullback. Keep the Statue of Liberty, tallest spires, East River span, and rock underside comfortably inside the square frame throughout. Match camera position and velocity across the seam and keep traffic, ferries, and effects moving continuously through it.

## Delivery

Work only inside `{{FOLDER}}` (create it if missing), apart from tool installs and caches. If you need a local HTTP server, use a random high port (4xxxx).

1. `new-york.html` is the single self-contained file. The only external dependency allowed is three.js (core plus `examples/jsm` addons) from an exact pinned version on jsDelivr or unpkg via an import map. Generate all models, textures, lighting and lettering in code. Opened normally, the page plays the loop live. With `?render=1`, expose `window.renderAt(t)` with time in seconds. It must pose the whole scene and render exactly one frame independent of the wall clock or previously rendered frames. `renderAt(12)` must produce the same image as `renderAt(0)`.
2. `new-york.mp4` is rendered from that same file at 1080x1080, 30 fps, and exactly 12.0 seconds (360 frames). Encode H.264 High, yuv420p, CRF 18 or lower, and `-movflags +faststart`. The video is silent and contains no added titles, overlays, or UI.
   - Capture frames at `t = frame / 30` for frame indices 0 through 359. Drive the machine's Chrome or Edge with locally installed `playwright-core` or `puppeteer-core`, call `renderAt` for each frame, and pipe the frames into ffmpeg.
   - Verify the WebGL renderer uses the real GPU with `WEBGL_debug_renderer_info`. If Chrome falls back to SwiftShader on Windows, try `--use-angle=d3d11 --enable-gpu --ignore-gpu-blocklist` or run headed.
   - Capture at a higher resolution and downscale for crisp edges. Verify the output with `ffprobe`.
3. `stills/` contains 3-4 PNG frames extracted from the finished video.
4. `NOTES.md` records what you built, key techniques, the exact render command, and total build time.

Inspect renders during the build. Check that the Brooklyn Bridge arches and cables read against the water, Liberty's torch stays clear of the skyline, and the Midtown crowns remain distinct through the orbit. Fix visible z-fighting, clipping, aliasing and motion discontinuities. Verify that seeking to a time twice gives the same image and that the endpoint matches the opening frame. Watch the encoded loop across its seam and review frames from the start, every three seconds and the end.

In your final reply, provide the absolute paths to `new-york.html` and `new-york.mp4`, the `ffprobe` resolution, fps, frame count, duration and file size, and a 3-5 line summary.
```

## Generierungen

### Opus 5.5 (devin)

Angefragtes Modell: claude-opus-5-5-medium. Harness: Devin. Reasoning-Aufwand: xhigh. Bauzeit: 84 Minuten. GPU: NVIDIA GeForce RTX 4070 Ti. Renderer: three.js 0.170.0. Video: 1080x1080, 12 s.

Video: https://subclipweb.subclip.app/agent-skills/community/examples/new-york-voxel-diorama/opus-5.5-devin.mp4?v=3

In Devin in etwa 84 Minuten gebaut (von Rez als Opus 5.5 bezeichnet; angefragt als claude-opus-5-5-medium bei xhigh-Aufwand). Der Agent schnitt die Insel als verrauschte Superellipse mit gestuften Gesteinsbändern, einer umgedrehten, gerippten Unterseite und fünf Wasserfallbändern zu und platzierte dann etwa 750 prozedurale Gebäude auf Grundstücken aus echten Stadtplänen, mit Wahrzeichen auf feineren Voxelrastern (die Freiheitsstatue ist aus Signed-Distance-Formen modelliert). Etwa 1.160 Fahrzeuge und 780 Fußgänger bewegen sich auf gekachelten Förderbändern und Ampelzyklen, die sich alle 12 s wiederholen, und zwei identische Fähren pro Route tauschen an der Naht die Plätze. Fenster werden prozedural in einem gepatchten Standardmaterial gezeichnet, und der Hafen nutzt eine planare Spiegelung, deren Wellen exakt loopen. Prüfungen: echte GPU bestätigt, `renderAt(0)` und `renderAt(12)` ergeben identische Hashes, die Kamerageschwindigkeit passt über die Naht hinweg, und der Schritt an der Naht misst sich wie jeder andere Frame-Schritt. Die Notizen nennen keine Schwächen außer einem Pixel, das in einem Stresstest um 1/255 abwich.

Originaldateien: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin. Unsere Kopie: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin

### Sonnet 5.6 (next)

Angefragtes Modell: claude-sonnet-5-5. Harness: Claude Code. Reasoning-Aufwand: xhigh. Bauzeit: 82 Minuten. GPU: NVIDIA GeForce RTX 4070 Ti. Renderer: three.js 0.170.0. Video: 1080x1080, 12 s.

Video: https://subclipweb.subclip.app/agent-skills/community/examples/new-york-voxel-diorama/sonnet-5.6-next.mp4?v=3

In Claude Code gebaut, laut Rez in etwa 82 Minuten, laut Agent in 76 (von Rez als Sonnet 5.6 (next) bezeichnet; angefragt als claude-sonnet-5-5 bei xhigh-Aufwand). Es nutzt einen Greedy-Voxel-Mesher mit Ecken-Ambient-Occlusion, ein 3D-Lichtvolumen mit etwa 730 vorberechneten Lampen- und Werbetafel-Splats und einen Wasser-Shader mit verwischten Spiegelungen und Kielwellen entlang der Route jedes Boots. Der Verkehr läuft beim Laden einmal durch ein Intelligent Driver Model und spielt das eingeschwungene Muster alle 12 s erneut ab, wobei Autos in überdachten Straßenportalen starten und enden. Seine Prüfungen fanden und behoben Fahrzeuge, die sich überlappten, Straßen, die durch die Brückenverankerung führten, und Bootsspiegelungen, die die Seite wechselten; am Ende stehen null Überlappungen, identische Seek-Ergebnisse und eine glatte Naht. Genannte Schwächen: Das One World Trade Center schiebt sich während der Kamerafahrt über einen Teil des Times Square, die Kollisionsprüfung überspringt kleine Requisiten, die Schilderbeschriftung nutzt installierte Schriften, und die Bewegung wurde über Messwerte geprüft, nicht von einem Menschen angeschaut.

Originaldateien: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next. Unsere Kopie: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## In Subclip erstellen

1. **Deinen Agenten verbinden.** Öffne den Subclip AI Editor, verbinde Claude Code oder Codex über das Subclip MCP und erstelle ein quadratisches Projekt in 1080x1080 mit 30 fps. Füge den Prompt ein, ersetze aber seinen Abschnitt Delivery durch: Baue das Diorama als eine Runtime-Ebene im geöffneten Projekt, ohne eigenständige Seite und ohne Aufnahme-Skript.
2. **Als Runtime-Ebene bauen.** Der Agent fügt die Szene mit `add_runtime_layer` hinzu und prüft den Code vor jedem Update mit `validate_runtime_layer_source`. Die Skills [three.js-3D-Szenen](https://www.subclip.app/de/agent-skills/community/threejs-3d-scenes) und [HyperFrames Motion Layers](https://www.subclip.app/de/agent-skills/community/hyperframes-motion-layers) enthalten die Regeln für Ebenen. Halte Insel, Wahrzeichen und Verkehr in einer Ebene, damit die Kamerafahrt synchron bleibt.
3. **Jeden Frame zur Funktion der Zeit machen.** Die ursprüngliche Regel `renderAt(t)` lässt sich direkt auf die Timeline übertragen: Kamera, Boote, Ampeln und Wasserfälle müssen geschlossene Funktionen der Zeit sein, mit Perioden, die 12 s teilen. Nur so kann die Timeline zu jedem Frame springen und die Loop-Naht passt. Kein Zustand, der von Frame zu Frame mitgenommen wird, keine Systemuhr.
4. **Zuerst den Renderer prüfen.** Sei ehrlich beim Renderer: Ob WebGPU und aufwendiges WebGL2 im Ebenen-Renderer und Exportpfad von Subclip funktionieren, ist noch nicht geprüft. Baue zuerst eine 5 Sekunden lange Testebene, prüfe sie in der Vorschau und in einem exportierten MP4 und halte einen Canvas2D- oder einfachen WebGL-Fallback bereit, falls eins davon leer oder langsam herauskommt. Das Diorama ist eine schwere three.js-Szene mit Schatten, planaren Spiegelungen und Bloom, also fang mit der Insel und einem Wahrzeichen an, bevor du die Stadt ergänzt.
5. **Prüfen, loopen und exportieren.** Lass den Agenten nach jedem fertigen Abschnitt `get_timeline_contact_sheet` aufrufen und dann `view_frame` für die wichtigen Momente (der erste Frame, jede große Verwandlung, der letzte Frame). Standbilder verbergen Bewegungsfehler, also drück in der Vorschau auf Play, bevor du etwas freigibst. Vergleiche den ersten und den letzten Frame wegen der Naht und exportiere dann das quadratische MP4 mit `export_video`. Der Prompt verlangt einen stummen Loop, also lass die Audiospur leer oder lege eine leise Stadtatmo aus `search_public_audio` als Audio-Item an.

## Passende Community-Skills

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

## Quelle und Credits

Prompts und Generierungen von **Rez** ([@RezAIT00](https://x.com/RezAIT00)), aus [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Unsere Kopie des Repositorys: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Original-Promptordner: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york. Unsere Kopie: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

[Alle Beispiele](https://www.subclip.app/de/agent-skills/community/examples)