# ボクセルアートのニューヨーク: 1つのプロンプト、2つのエージェント

ブルーアワーの浮島に浮かぶボクセルアートのニューヨーク。three.jsの1ファイルと12秒のループ映像を、2つのAIエージェントが同じプロンプトから制作しました。

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

## このプロンプトで作れるもの

このプロンプトは、単体で完結する1つのthree.jsページを求めます: 日没直後の浮島に載ったニューヨーク市のボクセルのジオラマを、港から眺めたものです。自由の女神、ロウアー マンハッタン、ブルックリン橋、ライトアップされたエンパイア ステート ビルがはっきり分かることが条件で、層をなす岩の地層、島の縁から流れ落ちる滝、走る車、航跡を残すフェリー、ゆっくり周回するカメラも求めます。すべてコードで生成し、`renderAt(t)`フックで任意の瞬間を正確にレンダリングできるようにして、1080x1080の継ぎ目のない12秒ループとしてページを書き出せるようにします。

Rezはこれを1台のGPU上で同時に2回実行しました: 1回はDevinでclaude-opus-5-5を指定(Opus 5.5と表記)、もう1回はClaude Codeでclaude-sonnet-5-5を指定(RezはSonnet 5.6 (next)と表記)。どちらも動くページ、ループ動画、4枚の静止画を納品しました。

## プロンプト(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の推論レベルで指定)。エージェントは島を、段状の岩の帯、上下を反転させた尾根状の底面、5本の滝のリボンを持つノイズ入りの超楕円として切り出し、実際の街路図から取った区画に約750棟のプロシージャルな建物を配置しました。ランドマークはより細かいボクセルグリッドで作られています(自由の女神は符号付き距離関数の形状から彫り出しています)。約1,160台の車と780人の歩行者が、12秒ごとに繰り返すタイル状のコンベアと信号サイクル上を動き、各航路では同一のフェリー2隻が継ぎ目で入れ替わります。窓は改変した標準マテリアル内でプロシージャルに描かれ、港には波がぴったりループする平面反射を使っています。検証: 実GPUでの動作を確認、`renderAt(0)`と`renderAt(12)`が同一のハッシュを出力、カメラ速度が継ぎ目をまたいで一致、継ぎ目のフレーム間差分も他のフレーム間と同程度。メモには、負荷テストで1ピクセルが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を1回だけ実行し、落ち着いたパターンを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セクションは「開いているプロジェクト内でジオラマを1つのランタイムレイヤーとして作る。単体のページもキャプチャ用スクリプトも作らない」に置き換えます。
2. **ランタイムレイヤーとして作る.** エージェントは`add_runtime_layer`でシーンを追加し、更新のたびに`validate_runtime_layer_source`でコードを確認します。レイヤーのルールは[three.js 3Dシーン](https://www.subclip.app/ja/agent-skills/community/threejs-3d-scenes)と[HyperFramesモーションレイヤー](https://www.subclip.app/ja/agent-skills/community/hyperframes-motion-layers)のスキルにあります。カメラの周回がずれないよう、島、ランドマーク、交通は1つのレイヤーにまとめましょう。
3. **すべてのフレームを時間の関数にする.** オリジナルの`renderAt(t)`のルールは、そのままタイムラインに対応します: カメラ、船、信号、滝は、周期が12秒を割り切る、時間の閉じた式でなければなりません。だからこそタイムラインはどのフレームにも移動でき、ループの継ぎ目も一致します。フレーム間で状態を持ち越さず、実時間の時計も使いません。
4. **まずレンダラーを確認する.** レンダラーについては正直にお伝えします: Subclipのレイヤーレンダラーと書き出し処理で、WebGPUや重いWebGL2が動くかはまだ検証できていません。まず5秒のテストレイヤーを作り、プレビューと書き出したMP4の両方で確認し、どちらかが真っ黒になったり遅かったりした場合に備えて、Canvas2Dか素のWebGLの代替案を用意しておきましょう。このジオラマは影、平面反射、ブルームを備えた重いthree.jsシーンなので、都市を加える前に島と1つのランドマークから始めてください。
5. **レビュー、ループ確認、書き出し.** セクションが1つ終わるたびにエージェントに`get_timeline_contact_sheet`を依頼し、重要な瞬間(最初のフレーム、大きな変化のすべて、最後のフレーム)で`view_frame`を使わせます。静止画では動きの問題が見えないので、承認する前にプレビューで再生してください。最初と最後のフレームを比べて継ぎ目を確認し、`export_video`で正方形のMP4を書き出します。プロンプトは無音のループを求めているので、オーディオトラックは空のままにするか、`search_public_audio`で見つけた控えめな街の環境音をオーディオアイテムとして加えましょう。

## 関連するコミュニティスキル

- https://www.subclip.app/ja/agent-skills/community/threejs-3d-scenes
- https://www.subclip.app/ja/agent-skills/community/hyperframes-motion-layers
- https://www.subclip.app/ja/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/ja/agent-skills/community/examples)