# Voxel art New York diorama: one prompt, two agents

Voxel art New York diorama on a floating island at blue hour: one three.js file and a 12 second loop, built by two AI agents from the same prompt.

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

## What it builds

The prompt asks for one self-contained three.js page: a voxel diorama of New York City on a floating island just after sunset, seen from the harbor. The Statue of Liberty, Lower Manhattan, the Brooklyn Bridge and a lit Empire State Building have to read clearly, with layered rock strata, waterfalls over the island lip, moving traffic, ferries with wakes and a slow camera orbit. Everything is generated in code, and a `renderAt(t)` hook must render any moment exactly so the page can be captured as a seamless 12 second loop at 1080x1080.

Rez ran it twice at the same time on one GPU: once in Devin with a model requested as claude-opus-5-5 (labeled Opus 5.5), and once in Claude Code with a model requested as claude-sonnet-5-5 (labeled Sonnet 5.6 (next) by Rez). Both delivered a working page, the loop video and four stills.

## The prompt (prompt.md)

The exact prompt.md from the repository, word for word. Every model in the repository got this same prompt. Where it has a {{FOLDER}} placeholder, replace it with an empty output folder before you send it.

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

## Generations

### Opus 5.5 (devin)

Model requested: claude-opus-5-5-medium. Harness: Devin. Reasoning effort: xhigh. Build time: 84 minutes. 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

Built in Devin in about 84 minutes (labeled Opus 5.5 by Rez; requested as claude-opus-5-5-medium at xhigh effort). The agent cut the island as a noisy superellipse with stepped rock bands, an inverted ridged underside and five waterfall ribbons, then placed about 750 procedural buildings on lots taken from real street plans, with landmarks on finer voxel grids (the Statue of Liberty is sculpted from signed-distance shapes). About 1,160 vehicles and 780 pedestrians move on tiled conveyors and signal cycles that repeat every 12 s, and two identical ferries per route swap places at the seam. Windows are drawn procedurally in a patched standard material, and the harbor uses a planar reflection whose waves loop exactly. Checks: real GPU confirmed, `renderAt(0)` and `renderAt(12)` produce identical hashes, camera velocity matches across the seam, and the seam step measures like any other frame step. The notes do not list weak spots beyond one pixel differing by 1/255 in a stress test.

Original files: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin. Our copy: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin

### Sonnet 5.6 (next)

Model requested: claude-sonnet-5-5. Harness: Claude Code. Reasoning effort: xhigh. Build time: 82 minutes. 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

Built in Claude Code in about 82 minutes by Rez's clock, 76 by the agent's (labeled Sonnet 5.6 (next) by Rez; requested as claude-sonnet-5-5 at xhigh effort). It uses a greedy voxel mesher with corner ambient occlusion, a 3D light volume holding about 730 baked lamp and billboard splats, and a water shader with smeared reflections and wakes traced along each boat's route. Traffic runs an Intelligent Driver Model once at load and replays the settled pattern every 12 s, with cars starting and ending inside covered road portals. Its checks found and fixed vehicles overlapping each other, roads running through the bridge anchorage and boat reflections jumping sides; it ends with zero overlaps, identical seek results and a smooth seam. Stated weak spots: One World Trade Center crosses part of Times Square during the orbit, the collision sweep skips small props, sign lettering uses installed fonts, and motion was checked by metrics, not by a person watching.

Original files: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next. Our copy: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## Make it in Subclip

1. **Connect your agent.** Open the Subclip AI Editor, connect Claude Code or Codex over the Subclip MCP and create a square 1080x1080 project at 30 fps. Paste the prompt, but replace its Delivery section with: build the diorama as one runtime layer in the open project, no standalone page and no capture script.
2. **Build it as a runtime layer.** The agent adds the scene with `add_runtime_layer` and checks the code with `validate_runtime_layer_source` before each update. The [three.js 3D scenes](https://www.subclip.app/agent-skills/community/threejs-3d-scenes) and [HyperFrames motion layers](https://www.subclip.app/agent-skills/community/hyperframes-motion-layers) skills hold the layer rules. Keep the island, landmarks and traffic in one layer so the camera orbit stays in sync.
3. **Make every frame a function of time.** The original `renderAt(t)` rule maps straight onto the timeline: camera, boats, signals and waterfalls must be closed-form functions of time with periods that divide 12 s. That is what lets the timeline scrub to any frame and lets the loop seam match. No state carried between frames, no wall clock.
4. **Check the renderer first.** Be honest about the renderer: support for WebGPU and for heavy WebGL2 inside Subclip's layer renderer and export path has not been verified yet. Build a 5 second test layer first, check it in the preview and in an exported MP4, and keep a Canvas2D or plain WebGL fallback ready if either one comes out blank or slow. The diorama is a heavy three.js scene with shadows, planar reflections and bloom, so start with the island and one landmark before adding the city.
5. **Review, loop and export.** Ask the agent for `get_timeline_contact_sheet` every time a section is done, then `view_frame` on the moments that matter (the first frame, every big transformation, the last frame). Stills hide motion problems, so press play in the preview before you approve anything. Compare the first and last frame for the seam, then export the square MP4 with `export_video`. The prompt asks for a silent loop, so leave the audio track empty or add a soft city bed from `search_public_audio` as an audio item.

## Related community skills

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

## Source and credit

Prompts and generations by **Rez** ([@RezAIT00](https://x.com/RezAIT00)), from [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos). Our copy of the repository: [github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos).

Original prompt folder: https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york. Our copy: https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

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