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,不引入任何外部庫,界面爲英文。

場景
一塊方形果凍(5.2 × 5.2 單位)立在一張淡雅的冷灰色紙質影棚背景前,地面上有柔和的投影。果凍內部是一個極地海灣:
- 在左後方,一條冰川沿着嶙峋山巒之間的山谷流下,末端是一道矗立在深水中的冰崖。冰崖上有垂直的溝槽和藍色條帶。冰川表面沿着邊緣有人字形裂隙,前端附近有橫向裂隙和冰塔,還有灰色的側磧。它的冰舌兩側是冰磧壟,因此只有前端立在水裏。
- 山脈:左側是一列尖峯山脈,冰川右側有一道山嘴,後方有一道積雪的山脊橫貫。深色火山巖上長着橙色地衣,較平坦和較高處有零星的斑駁積雪(並非到處都有)。
- 在右後方,一個低矮半島上有一處阿德利企鵝繁殖地:一片自然、不規則的圓形卵石斑塊,被磷蝦染成粉色,上面有卵石圍成的巢。在它後方,有一個小型科考站(架在樁上的紅黃小屋、燃料桶、帶拉索的無線電桅杆、一面旗幟、一臺旋轉的風速計、一輛雪地摩托)和一座木製碼頭。
- 右前方稍遠處有一處由兩塊低矮巖石構成的嶙峋小島,韋德爾氏海豹在那裏上岸。
- 海牀是灰色礫石,散落着貝殼、海綿、海星和搖曳的海葵,透過透明果凍的正面可以看見。
- 方塊切開的截面顯示出糖果色的地層、陸地下方的深色玄武巖柱,以及層狀的藍色冰川冰,冰川下方還有一層骯髒的底部冰層。

物理
- 海灣採用約 168² 網格的淺水模擬:波浪、尾跡、泡沫、折射、海底焦散、光柱,以及取決於口味的吸收。
- 每一塊冰都是剛體:桌狀、穹頂狀、尖峯狀和楔形冰山、碎冰山、餅狀浮冰以及冰川板。每一塊都是一個星形多面體網格(超橢球體加瓣狀起伏,再加兩個八度的噪聲)、一套用於浮力和阻力的質點格構,以及用於與地面、側壁、彼此和船隻接觸的接觸球。加載時先讓它們沉降到穩定姿態,以免開始時任何東西翻倒。
- 崩解:三道冰板沿着冰崖排列。大約每分鐘一次(或按需),其中一道會伴隨一聲脆響斷裂,揚起一陣冰塵,濺起水花、水霧和一道波浪,然後翻倒,直到找到穩定的朝上姿態。冰川會緩慢推出新的冰板。舊的冰板則會融化消失。
- 被排開的水會交還給波浪,但不形成反饋迴路:只有冰塊快速移動時才產生尾跡,落入水中時才濺起水花。緩慢漂移不產生波浪。
- 果凍方塊本身會晃動、剪切和擠壓,拖動其側面可以使其傾斜。

生命
- 一艘破冰船“Polaris”(紅色船體、勺形船艏、白色上層建築、冒煙的黃色煙囪、旋轉的雷達、一個直升機甲板)停靠在碼頭。不時地(或按需),它解纜離港,用船頭頂開浮冰羣繞過海灣,把浮冰和冰山推到一邊,然後回到碼頭靠泊。狀態行會顯示 Alongside / Casting off / Under way / Breaking ice / Coming alongside,並帶有倒計時或進度。
- 22 只阿德利企鵝:藍黑色背部、白色胸腹、白色眼圈、粉色腳。它們站在巢上四處張望,偶爾做一次狂喜展示,搖搖擺擺地走或趴在冰上滑行到海灘,潛入水中,在水下拍打鰭肢“飛翔”,躍出水面呈弧線前進,跳上浮冰和冰山,並在浮冰傾斜時滑落。它們會追逐銀魚和扔出的魚。
- 3 只韋德爾氏海豹(帶斑點的灰色)爬上小島和浮冰,抬起頭,然後下水遊泳。
- 一頭虎鯨(正確的眼斑和灰色鞍斑)巡遊深水區,浮上水面噴氣後下潛。企鵝會避開它。
- 成羣的銀魚;輕柔的降雪。

界面(佈局與系列其餘作品相同)
頁眉標題“Material Studies / Iceberg Jelly.”,配一行描述。一個“WebGPU · Live”狀態膠囊標籤。右側一塊玻璃質感的控製麪板,在移動端會變成底部抽屜:
- 按鈕:Calve(沒有冰板就緒時顯示“Wait…”)、Cast off / Full ahead、Throw fish、Horn(空格鍵)。
- 一個水體能量儀表;Calved、Capsized、Fed 的計數;船隻狀態行。
- 口味:Glacier mint、Blue raspberry、Blackberry。每一種都會改變水的吸收、水的色調和地層。
- 滑塊:Firmness、Wave damping、Snowfall。
- Reset、Pause、Sound on/off、View。
- 一個“How to play”頁腳。
交互:拾起並拋出浮冰和冰山;在水面上拖動以製造波浪;拖動地面或方塊側面使其傾斜;拖動空白處或右鍵拖動以環繞觀察;滾動或雙指捏合來縮放。

Web Audio 音效:冰崩的脆響與隆隆聲、水花聲、翻倒時的呻吟聲、冰塊撞擊船體的聲音、低沉的雙簧片船笛、企鵝的撲通聲,以及隨降雪增強的風聲。

當 WebGPU 不可用時顯示回退界面。遵循 prefers-reduced-motion。不發任何網絡請求。

質量標準
低多邊形多面體冰塊,頂部是粉筆質感的積雪,水下部分是玻璃般的藍色,帶藍色條帶、閃光和半透明感。柔和的陰影。冷色極地光線。在筆記本電腦上約 60 fps 的性能。進行無頭測試:長時間持續運行不出現 NaN、開場平靜、崩解加翻倒、完整的船隻往返、餵食、拾起冰塊、移動端底部抽屜,並且沒有控制臺錯誤。
交付該 HTML 文件,並將其發佈爲 artifact。

溯源

原作者
vib3coded
發佈日期
2026-10-14(由推文 ID 反解)
原始出處
查看原帖 ↗
收錄來源
zhuyansen/awesome-opus-5.5-video · 2110517313413796092 · 未聲明授權