# 体素艺术纽约微缩景观：一个提示词，两个智能体

蓝调时刻漂浮岛屿上的体素艺术纽约微缩景观：一个 three.js 文件加一段 12 秒循环动画，由两个 AI 智能体根据同一个提示词制作。

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

## 它能做出什么

这个提示词要求做一个独立的 three.js 页面：日落刚过时漂浮岛屿上的纽约市体素微缩景观，从港口方向观看。自由女神像、下曼哈顿、布鲁克林大桥和亮灯的帝国大厦都要清晰可辨，还要有层层叠叠的岩层、从岛缘倾泻而下的瀑布、流动的车流、拖着尾迹的渡轮，以及缓慢环绕的镜头。一切都用代码生成，并且要有一个 `renderAt(t)` 钩子精确渲染任意时刻，这样页面就能被捕获为一段 1080x1080 的无缝 12 秒循环。

Rez 在同一块 GPU 上同时运行了两次：一次在 Devin 中，指定模型为 claude-opus-5-5（标注为 Opus 5.5）；一次在 Claude Code 中，指定模型为 claude-sonnet-5-5（Rez 标注为 Sonnet 5.6 (next)）。两次都交付了可运行的页面、循环视频和四张静帧。

## 提示词（prompt.md）

仓库中的 prompt.md 原文，一字未改。仓库里的每个模型拿到的都是同一个提示词。遇到 {{FOLDER}} 占位符时，发送前把它替换成一个空的输出文件夹。

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

## 生成结果

### Opus 5.5 (devin)

指定模型: claude-opus-5-5-medium. 运行环境: Devin. 推理强度: xhigh. 制作用时: 84 分钟. GPU: NVIDIA GeForce RTX 4070 Ti. 渲染器: three.js 0.170.0. 视频: 1080x1080, 12 s.

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

在 Devin 中用约 84 分钟制作（Rez 标注为 Opus 5.5；指定模型为 claude-opus-5-5-medium，推理强度 xhigh）。智能体把岛屿切成带噪声的超椭圆，带阶梯状岩层、倒置的脊状底面和五条瀑布带，然后在取自真实街道规划的地块上放置约 750 栋程序化建筑，地标使用更精细的体素网格（自由女神像由有符号距离形状雕刻而成）。约 1,160 辆车和 780 个行人在平铺的传送带和每 12 秒重复一次的信号周期上移动，每条航线有两艘相同的渡轮，在接缝处互换位置。窗户在修改过的标准材质中程序化绘制，港口使用波浪完全循环的平面反射。检查项：确认使用真实 GPU，`renderAt(0)` 和 `renderAt(12)` 生成相同的哈希值，镜头速度在接缝两侧一致，接缝处的帧间变化与其他任意帧间变化相当。笔记中没有列出弱点，只提到压力测试中有一个像素相差 1/255。

原始文件：https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/opus-5.5-devin

### Sonnet 5.6 (next)

指定模型: claude-sonnet-5-5. 运行环境: Claude Code. 推理强度: xhigh. 制作用时: 82 分钟. GPU: NVIDIA GeForce RTX 4070 Ti. 渲染器: three.js 0.170.0. 视频: 1080x1080, 12 s.

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

在 Claude Code 中制作，按 Rez 的计时约 82 分钟，按智能体的计时 76 分钟（Rez 标注为 Sonnet 5.6 (next)；指定模型为 claude-sonnet-5-5，推理强度 xhigh）。它使用带角点环境光遮蔽的贪心体素网格生成器，一个容纳约 730 个预烘焙路灯和广告牌光斑的 3D 光照体积，以及一个带拖尾反射和沿每艘船航线描绘尾迹的水面着色器。车流在加载时运行一次智能驾驶模型（Intelligent Driver Model），然后每 12 秒重放稳定后的模式，车辆在有遮盖的道路入口内出现和消失。它的检查发现并修复了车辆相互重叠、道路穿过大桥锚碇以及船只倒影左右跳变的问题；最终零重叠，跳转结果一致，接缝平滑。自述弱点：环绕过程中世界贸易中心一号楼会穿过时代广场的一部分，碰撞检测会漏掉小型道具，招牌文字使用的是系统已安装的字体，运动效果是靠指标检查的，没有人亲眼看过。

原始文件：https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york/generations/sonnet-5.6-next

## 在 Subclip 中制作

1. **连接你的智能体.** 打开 Subclip AI Editor，通过 Subclip MCP 连接 Claude Code 或 Codex，新建一个 1080x1080、30 fps 的方形项目。粘贴提示词，但把其中的 Delivery 一节替换为：在当前打开的项目中把微缩景观做成一个运行时图层，不做独立页面，也不要捕获脚本。
2. **把它做成运行时图层.** 智能体用 `add_runtime_layer` 添加场景，每次更新前用 `validate_runtime_layer_source` 检查代码。[three.js 3D scenes](https://www.subclip.app/zh/agent-skills/community/threejs-3d-scenes) 和 [HyperFrames motion layers](https://www.subclip.app/zh/agent-skills/community/hyperframes-motion-layers) 技能包含图层规则。把岛屿、地标和车流放在同一个图层里，让环绕镜头保持同步。
3. **让每一帧都是时间的函数.** 原版的 `renderAt(t)` 规则可以直接对应到时间线上：镜头、船只、信号灯和瀑布都必须是时间的闭式函数，周期能整除 12 秒。正因如此，时间线才能拖到任意一帧，循环的接缝也能对上。帧与帧之间不保留状态，也不使用系统时钟。
4. **先检查渲染器.** 对渲染器要实事求是：Subclip 的图层渲染器和导出流程对 WebGPU 和重度 WebGL2 的支持尚未验证。先做一个 5 秒的测试图层，在预览和导出的 MP4 中都检查一遍，如果其中任何一个出现黑屏或卡顿，准备好 Canvas2D 或普通 WebGL 的备用方案。这个微缩景观是一个带阴影、平面反射和辉光的重度 three.js 场景，所以先从岛屿和一个地标做起，再加入城市。
5. **审片、循环和导出.** 每完成一个段落，就让智能体调用 `get_timeline_contact_sheet`，再对关键时刻（第一帧、每次大的变换、最后一帧）调用 `view_frame`。静帧看不出运动问题，所以批准之前要在预览里按播放看一遍。比较第一帧和最后一帧检查接缝，然后用 `export_video` 导出方形 MP4。提示词要求无声循环，所以音轨留空，或者用 `search_public_audio` 找一段轻柔的城市环境音作为音频项加入。

## 相关社区技能

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

## 来源与署名

提示词和生成结果作者：**Rez**（[@RezAIT00](https://x.com/RezAIT00)），来自 [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos)。我们的仓库副本：[github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos)。

原始提示词文件夹：https://github.com/RezAIT00/agent-demos/tree/main/prompts/new-york。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/new-york

[全部示例](https://www.subclip.app/zh/agent-skills/community/examples)