# Diorama voxel art de New York : un prompt, deux agents

Diorama voxel art de New York sur une île flottante à l'heure bleue : un fichier three.js et une boucle de 12 s, créés par deux agents IA avec le même prompt.

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

## Ce qu'il construit

Le prompt demande une page three.js autonome : un diorama voxel de New York sur une île flottante juste après le coucher du soleil, vu depuis le port. La statue de la Liberté, Lower Manhattan, le pont de Brooklyn et un Empire State Building illuminé doivent être bien lisibles, avec des strates rocheuses superposées, des cascades au bord de l'île, une circulation en mouvement, des ferries avec leur sillage et une lente orbite de caméra. Tout est généré en code, et un hook `renderAt(t)` doit rendre n'importe quel instant exactement pour que la page puisse être capturée en boucle parfaite de 12 secondes en 1080x1080.

Rez l'a lancé deux fois en même temps sur un seul GPU : une fois dans Devin avec un modèle demandé comme claude-opus-5-5 (étiqueté Opus 5.5), et une fois dans Claude Code avec un modèle demandé comme claude-sonnet-5-5 (étiqueté Sonnet 5.6 (next) par Rez). Les deux ont livré une page fonctionnelle, la vidéo en boucle et quatre images fixes.

## Le prompt (prompt.md)

Le prompt.md exact du dépôt, mot pour mot. Chaque modèle du dépôt a reçu ce même prompt. Là où il contient un espace réservé {{FOLDER}}, remplacez-le par un dossier de sortie vide avant de l'envoyer.

```
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.
```

## Générations

### Opus 5.5 (devin)

Modèle demandé: claude-opus-5-5-medium. Environnement: Devin. Effort de raisonnement: xhigh. Durée de création: 84 minutes. GPU: NVIDIA GeForce RTX 4070 Ti. Moteur de rendu: three.js 0.170.0. Vidéo: 1080x1080, 12 s.

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

Construit dans Devin en environ 84 minutes (étiqueté Opus 5.5 par Rez ; demandé comme claude-opus-5-5-medium en effort xhigh). L'agent a découpé l'île en superellipse bruitée avec des bandes rocheuses en gradins, un dessous à arêtes inversées et cinq rubans de cascade, puis a placé environ 750 bâtiments procéduraux sur des parcelles tirées de vrais plans de rues, avec des monuments sur des grilles voxel plus fines (la statue de la Liberté est sculptée à partir de formes à distance signée). Environ 1 160 véhicules et 780 piétons se déplacent sur des tapis roulants en tuiles et des cycles de feux qui se répètent toutes les 12 s, et deux ferries identiques par ligne échangent leur place à la jonction. Les fenêtres sont dessinées de façon procédurale dans un matériau standard modifié, et le port utilise un reflet planaire dont les vagues bouclent exactement. Vérifications : vrai GPU confirmé, `renderAt(0)` et `renderAt(12)` produisent des hashs identiques, la vitesse de la caméra concorde de part et d'autre de la jonction, et le pas de la jonction se mesure comme n'importe quel autre pas d'image. Les notes ne citent aucun point faible, hormis un pixel différent de 1/255 lors d'un test de charge.

Fichiers d'origine : https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin. Notre copie : https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin

### Sonnet 5.6 (next)

Modèle demandé: claude-sonnet-5-5. Environnement: Claude Code. Effort de raisonnement: xhigh. Durée de création: 82 minutes. GPU: NVIDIA GeForce RTX 4070 Ti. Moteur de rendu: three.js 0.170.0. Vidéo: 1080x1080, 12 s.

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

Construit dans Claude Code en environ 82 minutes selon l'horloge de Rez, 76 selon celle de l'agent (étiqueté Sonnet 5.6 (next) par Rez ; demandé comme claude-sonnet-5-5 en effort xhigh). Il utilise un mailleur voxel glouton avec occlusion ambiante aux coins, un volume lumineux 3D contenant environ 730 taches précalculées de lampadaires et d'enseignes, et un shader d'eau avec reflets étirés et sillages tracés le long de la route de chaque bateau. La circulation exécute un Intelligent Driver Model une fois au chargement et rejoue le schéma stabilisé toutes les 12 s, les voitures commençant et finissant dans des entrées de route couvertes. Ses vérifications ont trouvé et corrigé des véhicules qui se chevauchaient, des routes qui traversaient l'ancrage du pont et des reflets de bateaux qui changeaient de côté ; il termine avec zéro chevauchement, des résultats de positionnement identiques et une jonction fluide. Points faibles déclarés : le One World Trade Center traverse une partie de Times Square pendant l'orbite, le contrôle de collision ignore les petits accessoires, les lettrages des enseignes utilisent des polices installées, et le mouvement a été vérifié par des métriques, pas par une personne qui regarde.

Fichiers d'origine : https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next. Notre copie : https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## Le créer dans Subclip

1. **Connectez votre agent.** Ouvrez Subclip AI Editor, connectez Claude Code ou Codex via le MCP Subclip et créez un projet carré 1080x1080 à 30 ips. Collez le prompt, mais remplacez sa section Delivery par : construis le diorama sous forme d'un seul calque runtime dans le projet ouvert, sans page autonome ni script de capture.
2. **Construisez-le comme calque runtime.** L'agent ajoute la scène avec `add_runtime_layer` et vérifie le code avec `validate_runtime_layer_source` avant chaque mise à jour. Les skills [three.js 3D scenes](https://www.subclip.app/fr/agent-skills/community/threejs-3d-scenes) et [HyperFrames motion layers](https://www.subclip.app/fr/agent-skills/community/hyperframes-motion-layers) contiennent les règles des calques. Gardez l'île, les monuments et la circulation dans un seul calque pour que l'orbite de la caméra reste synchronisée.
3. **Faites de chaque image une fonction du temps.** La règle `renderAt(t)` d'origine se transpose directement sur la timeline : caméra, bateaux, feux et cascades doivent être des fonctions explicites du temps, avec des périodes qui divisent 12 s. C'est ce qui permet à la timeline d'aller à n'importe quelle image et à la jonction de la boucle de tomber juste. Aucun état conservé entre les images, aucune horloge système.
4. **Vérifiez d'abord le moteur de rendu.** Soyez lucide sur le moteur de rendu : la prise en charge de WebGPU et du WebGL2 lourd dans le moteur de calques et la chaîne d'export de Subclip n'a pas encore été vérifiée. Construisez d'abord un calque de test de 5 secondes, vérifiez-le dans l'aperçu et dans un MP4 exporté, et gardez une solution de repli en Canvas2D ou en WebGL simple si l'un des deux sort vide ou lent. Le diorama est une scène three.js lourde avec ombres, reflets planaires et bloom : commencez par l'île et un seul monument avant d'ajouter la ville.
5. **Relecture, boucle et export.** Demandez à l'agent `get_timeline_contact_sheet` chaque fois qu'une section est terminée, puis `view_frame` sur les moments qui comptent (la première image, chaque grande transformation, la dernière image). Les images fixes cachent les problèmes de mouvement : lancez la lecture dans l'aperçu avant de valider quoi que ce soit. Comparez la première et la dernière image pour la jonction, puis exportez le MP4 carré avec `export_video`. Le prompt demande une boucle muette : laissez la piste audio vide ou ajoutez une ambiance urbaine douce trouvée avec `search_public_audio` comme élément audio.

## Skills de la communauté associés

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

## Source et crédit

Prompts et générations par **Rez** ([@RezAIT00](https://x.com/RezAIT00)), issus de [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Notre copie du dépôt : [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Dossier du prompt d'origine : https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york. Notre copie : https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

[Tous les exemples](https://www.subclip.app/fr/agent-skills/community/examples)