果冻章鱼软体互动玩具
- 播放
- 5,935
- 点赞
- 136
- 评论
- 22
- 收藏
- 48
创作者用单文件 three.js 页面制作了一个果冻章鱼互动作品,包含物理效果、喂食、喷墨、变色、声音和响应式控制。
完整提示词3,176 字符
Build a single-file interactive three.js (WebGL 2) page "Octopus Jelly": a big, chunky soft-body octopus cast in clear jelly, sitting on a table and filling the frame. Generate everything in code from a signed distance field: a round head with two eyes on raised turrets, a big soft mantle leaning back behind it, a siphon on its side, and eight thick tapering arms, each a tube along its own 3D curve — down from the head onto the table, out across it with a gentle wave, and on three of them the last third curled up and back on itself — joined to the head under a webbed skirt (use a grid of arm segments to keep the field fast). Under every arm, two staggered rows of pale sugar suckers (cups with a darker rim and a dark pit) that show through the clear jelly and on the curled tips; glossy golden eyes with dark bar-shaped pupils; trapped bubbles. Shader-drawn skin that stretches with the jelly: soft raised papillae and a mottle of darker chromatophore spots, paler on the underside of the arms. Simulation: a snapped hex lattice of tetrahedra solved with XPBD on a fixed 60 Hz step with substeps, volume preservation, floor contact; curled arm ends set firmer so they hold their curl. Every arm is a muscle: its centre line is rebuilt each step from its rest segments turned by heading and lift accumulated along the arm (a wave travelling out toward the tip, a slow side-to-side sweep, a tip curl), every node keeps its offset in the arm's frame, and the jelly follows the new rest shape; the mantle breathes. Grab and stretch the jelly anywhere, twist with a second finger or the wheel; orbit by dragging the background. Interactions: the pupils turn to follow the pointer (or a crab, or the camera). Feed tosses gummy crabs (round body, two claws, six legs) onto the table near the arm tips; they scuttle sideways until an arm catches one, curls, and passes it along to the mouth, after which it shows inside the mantle. Ink squirts a cloud of soft dark billowing puffs from the siphon while the octopus goes pale; Flash sends a wave of darkening chromatophores out from the head along every arm. Four colourways: Coral (default), Blue Ring (golden jelly with glowing blue rings), Violet, Sea Glass. All sounds synthesised live with Web Audio after the first touch: a squish on grab, suckers popping on release, a rush of water and bubbles for ink, a shimmer for the flash, a tick when a crab lands, a pop when it is caught, a gulp when it is eaten. Rendering: key-light shadow map and top-down contact shading, back-face thickness for Beer–Lambert absorption and refraction so thin arm tips glow, studio reflections, Khronos PBR Neutral tone mapping, light warm-grey backdrop. Minimal editorial layout: large italic serif heading "Octopus Jelly." with kicker "Material Studies / No. 074", a right-hand panel with colour swatches, Firmness and Internal damping sliders, Feed / Ink / Flash / Reset buttons, ¼ speed, Show mesh and Sound toggles and Pause, live readouts for Mass, Arm span and crabs Eaten, a handling hint and an expandable "Inside the experiment" note. English UI, responsive for desktop and mobile, with a clear fallback message without WebGL 2.
出处:作者在原帖下的回复。提示词保留原文语言,未做改写。
作者提到的工具
Three.js
原帖:https://x.com/vib3coded/status/2121757715881963715
全部作品数据开源在 GitHub · awesome-opus-5.5-video。
模型归属以作者自述为准,本站未独立复现。播放量为 2026-11-19 的快照。作品版权归原作者,修改署名或下架请在 X 私信 @GoSailGlobal。