ai21.net
言語

極地ゼリー氷山のジオラマ比較

極地ゼリー氷山のジオラマ比較 — 1

プロンプト

Build "Iceberg Jelly" — the next piece in my "Material Studies" series of jelly dioramas: a single self-contained HTML file using WebGPU (WGSL), no external libraries, English UI.

THE SCENE
A square block of jelly (5.2 × 5.2 units) standing on a pale, cool-grey paper studio backdrop with a soft floor shadow. Inside it, a polar bay:
- At the back left, a glacier flows down a valley between jagged mountains and ends in an ice cliff standing in deep water. The cliff has vertical runnels and blue bands. The glacier surface has chevron crevasses along its margins, transverse crevasses and seracs near the front, and grey lateral moraines. Its tongue is flanked by moraine banks, so only its front stands in the water.
- Mountains: a peaky left range and a spur on the right of the glacier, with a snowy ridge along the back. Dark volcanic rock with orange lichen, and snow in ragged patches on flatter and higher ground (not everywhere).
- At the back right, a low peninsula with an Adélie penguin rookery: an organic, irregular patch of round pebbles stained pink with krill, with pebble-ring nests. Behind it, a small research station (red and yellow huts on stilts, fuel drums, a radio mast with guy wires, a flag, a turning anemometer, a snowmobile) and a timber quay.
- A ragged skerry of two low rocks off to the front right, where Weddell seals haul out.
- The sea floor is grey gravel with shells, sponges, sea stars and swaying anemones, visible through the clear jelly front face.
- The cut faces of the block show candy-coloured strata, dark basalt columns under the land, and layered blue glacier ice with a dirty basal layer under the glacier.

PHYSICS
- Shallow-water simulation on a ~168² grid for the bay: waves, wakes, foam, refraction, caustics on the floor, light shafts, and absorption that depends on the flavour.
- Every piece of ice is a rigid body: tabular, dome, pinnacle and wedge bergs, growlers, pancake floes, and glacier slabs. Each is a star-shaped faceted mesh (superellipsoid plus lobes plus two octaves of noise), a lattice of mass points for buoyancy and drag, and contact spheres for ground, walls, each other and the ship. Settle stable poses at load so nothing capsizes at the start.
- Calving: three slabs stand along the cliff. About once a minute (or on demand) one breaks off with a crack, a puff of ice dust, a splash, spray and a wave, then capsizes until it finds a stable way up. The glacier slowly pushes a new slab out. Old slabs melt away.
- The displaced water is handed back to the waves without feedback: wakes only when a piece moves fast, splashes when it plunges in. Slow drift makes no waves.
- The jelly block itself wobbles, shears and squashes, and can be tipped by dragging its side.

LIFE
- An icebreaker, "Polaris" (red hull with a spoon bow, white superstructure, yellow funnel with smoke, a turning radar, a helideck), lies at the quay. Now and then (or on demand) she casts off, shoulders round the bay through the pack, pushing floes and bergs aside, and comes back alongside. A status line shows Alongside / Casting off / Under way / Breaking ice / Coming alongside, with a countdown or progress.
- 22 Adélie penguins: blue-black backs, white shirt fronts, white eye rings, pink feet. They stand on nests and look about, have the odd ecstatic display, waddle or toboggan to the beach, dive in, "fly" underwater with beating flippers, porpoise, leap out onto floes and bergs, and slide off when a floe tips. They chase silverfish and thrown fish.
- 3 Weddell seals (spotted grey) haul out on the skerry and floes, lift their heads, and go for swims.
- An orca (proper eye patch and grey saddle) patrols deep water, surfaces to blow and dives. Penguins keep clear of it.
- Schools of silverfish; gentle snowfall.

UI (same layout as the rest of the series)
Masthead "Material Studies / Iceberg Jelly." with a one-line description. A "WebGPU · Live" status pill. A glass control panel on the right that turns into a bottom sheet on mobile:
- Buttons: Calve (shows "Wait…" while no slab is ready), Cast off / Full ahead, Throw fish, Horn (Space).
- A water-energy meter; tallies for Calved, Capsized, Fed; the ship status line.
- Flavours: Glacier mint, Blue raspberry, Blackberry. Each changes the water's absorption, its tint and the strata.
- Sliders: Firmness, Wave damping, Snowfall.
- Reset, Pause, Sound on/off, View.
- A "How to play" footer.
Interaction: pick up and throw floes and bergs; drag across the water to make waves; drag the ground or the side of the block to tip it; drag empty space or right-drag to orbit; scroll or pinch to zoom.

Web Audio sounds: calving crack and rumble, splashes, a capsizing groan, ice knocking on the hull, a deep two-reed ship's horn, penguin plops, and wind that rises with the snowfall.

Show a fallback screen when WebGPU is unavailable. Respect prefers-reduced-motion. No network requests.

QUALITY BAR
Low-poly faceted ice with chalky snowy tops, glassy blue underwater parts, blue bands, sparkles and translucency. Soft shadows. Cool polar light. Performance around 60 fps on a laptop. Test headlessly: no NaNs over long soaks, a calm start, calving plus capsize, a full ship round trip, feeding, picking up ice, the mobile sheet, and no console errors.
Deliver the HTML file and publish it as an artifact.

日本語訳

「Iceberg Jelly」を制作する — 私の「Material Studies」ゼリージオラマシリーズの次の作品:WebGPU(WGSL)を使った単一の自己完結型 HTML ファイルで、外部ライブラリなし、UI は英語。

シーン
淡く冷たいグレーの紙のスタジオ背景の上に、柔らかな床の影を落として立つ正方形のゼリーの塊(5.2 × 5.2 ユニット)。その内部に極地の入り江:
- 奥の左側では、氷河がぎざぎざの山々の間の谷を流れ下り、深い水の中に立つ氷の崖で終わる。崖には縦方向の溝と青い縞がある。氷河の表面には、縁に沿ってシェブロン状のクレバス、前面付近に横断方向のクレバスとセラック、そして灰色の側堆石がある。その舌状部は堆石の土手に挟まれているため、前面だけが水の中に立っている。
- 山々:左側は峰の多い山脈、氷河の右側には支脈があり、奥に沿って雪の稜線が走る。オレンジ色の地衣類が付いた暗い火山岩で、雪はより平らな場所とより高い場所に不揃いなまだら状にある(どこにでもではない)。
- 奥の右側には、アデリーペンギンの繁殖地がある低い半島:クリルでピンク色に染まった丸い小石の、有機的で不規則なパッチで、小石の輪でできた巣がある。その背後には小さな研究基地(高床の赤と黄色の小屋、燃料ドラム、支線付きの無線マスト、旗、回転する風速計、スノーモービル)と木製の岸壁。
- 手前右側の沖には、2 つの低い岩からなる不揃いな小島があり、そこでウェッデルアザラシが上陸する。
- 海底は灰色の砂利で、貝殻、カイメン、ヒトデ、揺れるイソギンチャクがあり、透明なゼリーの前面越しに見える。
- ブロックの切断面には、キャンディ色の地層、陸地の下の暗い玄武岩の柱、そして氷河の下の汚れた基底層を伴う層状の青い氷河氷が現れる。

物理
- 入り江のための約 168² グリッド上の浅水シミュレーション:波、航跡、泡、屈折、床のコースティクス、光の筋、そしてフレーバーに依存する吸収。
- 氷の破片はすべて剛体:卓状、ドーム状、尖塔状、くさび形の氷山、グロウラー、パンケーキアイス、そして氷河の板。それぞれは星形のファセットメッシュ(超楕円体+ローブ+2 オクターブのノイズ)、浮力と抗力のための質点格子、そして地面、壁、互い、船との接触球で構成される。読み込み時に安定した姿勢に落ち着かせ、開始時に何も転覆しないようにする。
- 分離:崖に沿って 3 枚の板が立っている。約 1 分に 1 回(または要求時)、1 枚がひび割れ音、氷の粉のひと吹き、水しぶき、飛沫、波とともに折れ離れ、安定した上向きの姿勢を見つけるまで転覆する。氷河はゆっくりと新しい板を押し出す。古い板は溶けて消える。
- 押しのけられた水はフィードバックなしで波に戻される:航跡は破片が速く動いたときだけ、水しぶきは水に飛び込んだときだけ。ゆっくりした漂流は波を立てない。
- ゼリーの塊自体も揺れ、せん断し、押しつぶされ、側面をドラッグすると傾けられる。

生命
- 岸壁には砕氷船「Polaris」(赤い船体にスプーン型の船首、白い上部構造、煙を吐く黄色い煙突、回転するレーダー、ヘリデッキ)が停泊している。時々(または要求時)、船は解纜し、氷群の中を入り江の周りへ押し進み、浮氷や氷山を脇へ押しのけて、再び舷を並べて戻ってくる。ステータス行には Alongside / Casting off / Under way / Breaking ice / Coming alongside がカウントダウンまたは進捗とともに表示される。
- アデリーペンギン 22 羽:青黒い背中、白いシャツのような前面、白い眼環、ピンクの足。巣の上に立って周りを見回し、時折エクスタティック・ディスプレイを行い、よちよち歩きか腹ばい滑りで浜へ行き、飛び込み、ひれを羽ばたかせて水中を「飛び」、イルカのように泳ぎ、浮氷や氷山へ飛び上がり、浮氷が傾くと滑り落ちる。彼らはシルバーフィッシュや投げられた魚を追いかける。
- ウェッデルアザラシ 3 頭(斑点のある灰色)が小島や浮氷に上陸し、頭を持ち上げ、泳ぎに出かける。
- 1 頭のシャチ(正しい眼斑と灰色の鞍状斑)が深い水域を巡回し、浮上して潮を吹き、潜る。ペンギンたちはシャチを避ける。
- シルバーフィッシュの群れ;穏やかな降雪。

UI(シリーズの他の作品と同じレイアウト)
マストヘッド「Material Studies / Iceberg Jelly.」と 1 行の説明。「WebGPU · Live」のステータスピル。右側のガラス製コントロールパネルは、モバイルではボトムシートになる:
- ボタン:Calve(板の準備ができていない間は「Wait…」を表示)、Cast off / Full ahead、Throw fish、Horn(Space)。
- 水のエネルギー計;Calved、Capsized、Fed の集計;船のステータス行。
- フレーバー:Glacier mint、Blue raspberry、Blackberry。それぞれが水の吸収、色合い、地層を変える。
- スライダー:Firmness、Wave damping、Snowfall。
- Reset、Pause、Sound on/off、View。
- 「How to play」のフッター。
操作:浮氷や氷山をつかんで投げる;水面をドラッグして波を立てる;地面またはブロックの側面をドラッグして傾ける;何もない空間をドラッグするか右ドラッグで周回;スクロールまたはピンチでズーム。

Web Audio のサウンド:分離のひび割れ音と轟き、水しぶき、転覆するときのうなり、船体に氷が当たる音、深い 2 枚リードの船の汽笛、ペンギンが水に飛び込む音、そして降雪とともに強まる風。

WebGPU が利用できないときはフォールバック画面を表示する。prefers-reduced-motion を尊重する。ネットワークリクエストは行わない。

品質基準
チョークのような雪の頂部、ガラスのような青い水中部分、青い縞、きらめき、半透明を持つローポリのファセット氷。柔らかな影。冷たい極地の光。ノート PC で約 60 fps のパフォーマンス。ヘッドレスでテストする:長時間のソークで NaN が出ないこと、静かな開始、分離と転覆、船の往復全体、給餌、氷の持ち上げ、モバイルのシート、コンソールエラーがないこと。
HTML ファイルを納品し、アーティファクトとして公開する。

出典

原作者
vib3coded
公開日
2026-10-14(由推文 ID 反解)
原典
元の投稿を見る ↗
収録元
zhuyansen/awesome-opus-5.5-video · 2110517313413796092 · ライセンス未表明