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 · 未声明许可