# Voxel art de Nueva York en diorama: un prompt, dos agentes

Diorama voxel art de Nueva York en una isla flotante a la hora azul: un archivo three.js y un bucle de 12 segundos, creado por dos agentes de IA y un prompt.

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

## Qué crea

El prompt pide una única página three.js autónoma: un diorama vóxel de Nueva York sobre una isla flotante justo después de la puesta de sol, visto desde el puerto. La Estatua de la Libertad, el Bajo Manhattan, el puente de Brooklyn y un Empire State Building iluminado tienen que reconocerse con claridad, con estratos de roca en capas, cascadas por el borde de la isla, tráfico en movimiento, ferris con estela y una órbita lenta de la cámara. Todo se genera en código, y un hook `renderAt(t)` debe renderizar cualquier instante exactamente para que la página se pueda capturar como un bucle perfecto de 12 segundos a 1080x1080.

Rez lo ejecutó dos veces a la vez en una sola GPU: una en Devin con un modelo solicitado como claude-opus-5-5 (etiquetado como Opus 5.5) y otra en Claude Code con un modelo solicitado como claude-sonnet-5-5 (etiquetado como Sonnet 5.6 (next) por Rez). Ambos entregaron una página funcional, el vídeo en bucle y cuatro imágenes fijas.

## El prompt (prompt.md)

El prompt.md exacto del repositorio, palabra por palabra. Todos los modelos del repositorio recibieron este mismo prompt. Donde aparece el marcador {{FOLDER}}, sustitúyelo por una carpeta de salida vacía antes de enviarlo.

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

## Generaciones

### Opus 5.5 (devin)

Modelo solicitado: claude-opus-5-5-medium. Entorno: Devin. Esfuerzo de razonamiento: xhigh. Tiempo de creación: 84 minutos. GPU: NVIDIA GeForce RTX 4070 Ti. Renderizador: three.js 0.170.0. Vídeo: 1080x1080, 12 s.

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

Creado en Devin en unos 84 minutos (etiquetado como Opus 5.5 por Rez; solicitado como claude-opus-5-5-medium con esfuerzo xhigh). El agente recortó la isla como una superelipse con ruido, con franjas de roca escalonadas, una base invertida con crestas y cinco cintas de cascada, y después colocó unos 750 edificios procedurales en parcelas tomadas de planos de calles reales, con los monumentos en rejillas vóxel más finas (la Estatua de la Libertad está esculpida con formas de distancia con signo). Unos 1.160 vehículos y 780 peatones se mueven sobre cintas en mosaico y ciclos de semáforos que se repiten cada 12 s, y dos ferris idénticos por ruta intercambian sus posiciones en la unión. Las ventanas se dibujan de forma procedural en un material estándar modificado, y el puerto usa un reflejo planar cuyas olas forman un bucle exacto. Comprobaciones: GPU real confirmada, `renderAt(0)` y `renderAt(12)` producen hashes idénticos, la velocidad de la cámara coincide en la unión y el salto en la unión mide lo mismo que cualquier otro paso entre fotogramas. Las notas no recogen puntos débiles, más allá de un píxel que difiere en 1/255 en una prueba de estrés.

Archivos originales: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin. Nuestra copia: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin

### Sonnet 5.6 (next)

Modelo solicitado: claude-sonnet-5-5. Entorno: Claude Code. Esfuerzo de razonamiento: xhigh. Tiempo de creación: 82 minutos. GPU: NVIDIA GeForce RTX 4070 Ti. Renderizador: three.js 0.170.0. Vídeo: 1080x1080, 12 s.

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

Creado en Claude Code en unos 82 minutos según el reloj de Rez, 76 según el del agente (etiquetado como Sonnet 5.6 (next) por Rez; solicitado como claude-sonnet-5-5 con esfuerzo xhigh). Usa un mallador vóxel voraz con oclusión ambiental en las esquinas, un volumen de luz 3D con unas 730 manchas precalculadas de farolas y carteles, y un shader de agua con reflejos difuminados y estelas trazadas a lo largo de la ruta de cada barco. El tráfico ejecuta un Intelligent Driver Model una vez al cargar y repite el patrón estabilizado cada 12 s, con coches que empiezan y terminan dentro de portales de carretera cubiertos. Sus comprobaciones detectaron y corrigieron vehículos superpuestos, carreteras que atravesaban el anclaje del puente y reflejos de barcos que saltaban de lado; termina con cero superposiciones, resultados idénticos al saltar a cualquier instante y una unión suave. Puntos débiles declarados: el One World Trade Center cruza parte de Times Square durante la órbita, el barrido de colisiones se salta los objetos pequeños, el texto de los carteles usa fuentes instaladas y el movimiento se comprobó con métricas, no con una persona mirándolo.

Archivos originales: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next. Nuestra copia: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## Créalo en Subclip

1. **Conecta tu agente.** Abre Subclip AI Editor, conecta Claude Code o Codex mediante el MCP de Subclip y crea un proyecto cuadrado de 1080x1080 a 30 fps. Pega el prompt, pero sustituye su sección Delivery por: crea el diorama como una sola capa runtime en el proyecto abierto, sin página independiente y sin script de captura.
2. **Créalo como capa runtime.** El agente añade la escena con `add_runtime_layer` y comprueba el código con `validate_runtime_layer_source` antes de cada actualización. Las skills [three.js 3D scenes](https://www.subclip.app/es/agent-skills/community/threejs-3d-scenes) y [HyperFrames motion layers](https://www.subclip.app/es/agent-skills/community/hyperframes-motion-layers) recogen las reglas de las capas. Mantén la isla, los monumentos y el tráfico en una sola capa para que la órbita de la cámara siga sincronizada.
3. **Haz que cada fotograma sea una función del tiempo.** La regla original de `renderAt(t)` encaja directamente en la línea de tiempo: la cámara, los barcos, los semáforos y las cascadas deben ser funciones cerradas del tiempo con periodos que dividan 12 s. Eso es lo que permite que la línea de tiempo salte a cualquier fotograma y que la unión del bucle coincida. Nada de estado arrastrado entre fotogramas ni de reloj del sistema.
4. **Comprueba primero el renderizador.** Sé sincero con el renderizador: todavía no se ha verificado el soporte de WebGPU ni de WebGL2 pesado en el renderizador de capas y la exportación de Subclip. Crea primero una capa de prueba de 5 segundos, revísala en la vista previa y en un MP4 exportado, y ten preparada una alternativa en Canvas2D o WebGL simple por si alguna sale en blanco o va lenta. El diorama es una escena three.js pesada con sombras, reflejos planares y bloom, así que empieza por la isla y un monumento antes de añadir la ciudad.
5. **Revisión, bucle y exportación.** Pide al agente `get_timeline_contact_sheet` cada vez que termine una sección, y después `view_frame` en los momentos clave (el primer fotograma, cada gran transformación, el último fotograma). Los fotogramas fijos ocultan los problemas de movimiento, así que dale a reproducir en la vista previa antes de aprobar nada. Compara el primer y el último fotograma para revisar la unión y luego exporta el MP4 cuadrado con `export_video`. El prompt pide un bucle sin sonido, así que deja vacía la pista de audio o añade un ambiente suave de ciudad de `search_public_audio` como elemento de audio.

## Skills de la comunidad relacionadas

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

## Fuente y créditos

Prompts y generaciones de **Rez** ([@RezAIT00](https://x.com/RezAIT00)), de [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Nuestra copia del repositorio: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Carpeta original del prompt: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york. Nuestra copia: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

[Todos los ejemplos](https://www.subclip.app/es/agent-skills/community/examples)