# Diorama de Nova York em voxel art: um prompt, dois agentes

Diorama de Nova York em voxel art numa ilha flutuante na hora azul: um arquivo three.js e um loop de 12 segundos, feitos por dois agentes de IA.

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

## O que ele cria

O prompt pede uma única página three.js autocontida: um diorama em voxel de Nova York numa ilha flutuante logo depois do pôr do sol, visto do porto. A Estátua da Liberdade, Lower Manhattan, a Ponte do Brooklyn e um Empire State Building iluminado precisam ser reconhecíveis, com camadas de rocha estratificada, cachoeiras caindo da borda da ilha, trânsito em movimento, balsas com rastro na água e uma órbita lenta de câmera. Tudo é gerado em código, e um hook `renderAt(t)` precisa renderizar qualquer instante com exatidão para que a página possa ser capturada como um loop perfeito de 12 segundos em 1080x1080.

Rez rodou o prompt duas vezes ao mesmo tempo numa só GPU: uma no Devin com um modelo solicitado como claude-opus-5-5 (rotulado Opus 5.5) e outra no Claude Code com um modelo solicitado como claude-sonnet-5-5 (rotulado Sonnet 5.6 (next) por Rez). Os dois entregaram uma página funcionando, o vídeo em loop e quatro stills.

## O prompt (prompt.md)

O prompt.md exato do repositório, palavra por palavra. Todos os modelos do repositório receberam este mesmo prompt. Onde houver o placeholder {{FOLDER}}, troque por uma pasta de saída vazia antes de enviar.

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

## Gerações

### Opus 5.5 (devin)

Modelo solicitado: claude-opus-5-5-medium. Ambiente do agente: Devin. Esforço de raciocínio: xhigh. Tempo de criação: 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

Criado no Devin em cerca de 84 minutos (rotulado Opus 5.5 por Rez; solicitado como claude-opus-5-5-medium com esforço xhigh). O agente recortou a ilha como uma superelipse com ruído, com faixas de rocha em degraus, uma parte de baixo invertida com cristas e cinco fitas de cachoeira, e depois colocou cerca de 750 prédios procedurais em lotes tirados de plantas de ruas reais, com os marcos em grades voxel mais finas (a Estátua da Liberdade é esculpida a partir de formas de distância com sinal). Cerca de 1.160 veículos e 780 pedestres se movem em esteiras repetidas e ciclos de semáforo que se repetem a cada 12 s, e duas balsas idênticas por rota trocam de lugar na emenda. As janelas são desenhadas de forma procedural num material padrão modificado, e o porto usa um reflexo planar cujas ondas fecham o loop com exatidão. Verificações: GPU real confirmada, `renderAt(0)` e `renderAt(12)` geram hashes idênticos, a velocidade da câmera bate dos dois lados da emenda e o passo na emenda mede igual a qualquer outro passo entre frames. As anotações não listam pontos fracos além de um pixel que difere em 1/255 num teste de estresse.

Arquivos originais: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin. Nossa cópia: 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. Ambiente do agente: Claude Code. Esforço de raciocínio: xhigh. Tempo de criação: 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

Criado no Claude Code em cerca de 82 minutos pelo relógio de Rez, 76 pelo do agente (rotulado Sonnet 5.6 (next) por Rez; solicitado como claude-sonnet-5-5 com esforço xhigh). Ele usa um mesher voxel guloso com oclusão ambiente nos cantos, um volume de luz 3D com cerca de 730 splats pré-calculados de postes e outdoors, e um shader de água com reflexos borrados e rastros traçados ao longo da rota de cada barco. O trânsito roda um Intelligent Driver Model uma vez no carregamento e repete o padrão estabilizado a cada 12 s, com os carros começando e terminando dentro de entradas cobertas de vias. As verificações encontraram e corrigiram veículos sobrepostos, vias atravessando a ancoragem da ponte e reflexos de barcos trocando de lado; no fim há zero sobreposições, resultados idênticos ao buscar um instante e uma emenda suave. Pontos fracos declarados: o One World Trade Center cruza parte da Times Square durante a órbita, a varredura de colisão ignora objetos pequenos, os letreiros usam fontes instaladas e o movimento foi conferido por métricas, não por uma pessoa assistindo.

Arquivos originais: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next. Nossa cópia: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## Faça no Subclip

1. **Conecte seu agente.** Abra o Subclip AI Editor, conecte o Claude Code ou o Codex pelo Subclip MCP e crie um projeto quadrado de 1080x1080 a 30 fps. Cole o prompt, mas troque a seção Delivery por: crie o diorama como uma única camada de runtime no projeto aberto, sem página separada e sem script de captura.
2. **Crie como camada de runtime.** O agente adiciona a cena com `add_runtime_layer` e confere o código com `validate_runtime_layer_source` antes de cada atualização. As skills [cenas 3D em three.js](https://www.subclip.app/pt/agent-skills/community/threejs-3d-scenes) e [HyperFrames motion layers](https://www.subclip.app/pt/agent-skills/community/hyperframes-motion-layers) trazem as regras das camadas. Mantenha a ilha, os marcos e o trânsito numa só camada para que a órbita da câmera fique sincronizada.
3. **Faça cada frame ser uma função do tempo.** A regra original do `renderAt(t)` se encaixa direto na timeline: câmera, barcos, semáforos e cachoeiras precisam ser funções do tempo em forma fechada, com períodos que dividem 12 s. É isso que deixa a timeline ir para qualquer frame e faz a emenda do loop bater. Nada de estado guardado entre frames, nada de relógio do sistema.
4. **Confira o renderizador primeiro.** Seja honesto sobre o renderizador: o suporte a WebGPU e a WebGL2 pesado dentro do renderizador de camadas e do caminho de exportação do Subclip ainda não foi verificado. Crie primeiro uma camada de teste de 5 segundos, confira no preview e num MP4 exportado, e deixe um fallback em Canvas2D ou WebGL simples pronto caso um dos dois saia em branco ou lento. O diorama é uma cena three.js pesada, com sombras, reflexos planares e bloom, então comece pela ilha e por um marco antes de adicionar a cidade.
5. **Revise, feche o loop e exporte.** Peça ao agente um `get_timeline_contact_sheet` sempre que uma seção ficar pronta e depois `view_frame` nos momentos importantes (o primeiro frame, cada grande transformação, o último frame). Stills escondem problemas de movimento, então dê play no preview antes de aprovar qualquer coisa. Compare o primeiro e o último frame para checar a emenda e depois exporte o MP4 quadrado com `export_video`. O prompt pede um loop sem som, então deixe a faixa de áudio vazia ou adicione um fundo suave de cidade de `search_public_audio` como item de áudio.

## Skills da comunidade relacionadas

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

## Fonte e créditos

Prompts e gerações de **Rez** ([@RezAIT00](https://x.com/RezAIT00)), de [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Nossa cópia do repositório: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Pasta original do prompt: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york. Nossa cópia: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

[Todos os exemplos](https://www.subclip.app/pt/agent-skills/community/examples)