ai21.net
语言

软糖章鱼物理效果对比

演示视频

软糖章鱼物理效果对比 — 1

提示词

Create “Octo Jelly” - a beautiful, interactive 3D gummy octopus that users can grab, stretch, and squish directly in their browser. Deliver a complete single-file HTML experience using genuine WebGPU.
ART DIRECTION
Make the octopus look like a premium translucent gummy candy: a rounded head, eight curled tentacles, small suction cups, and a cute, understated face.
Use a warm off-white background, soft studio lighting, and a subtle ground shadow. Keep the scene elegant and uncluttered, with the octopus large and centered.
GEOMETRY AND MATERIAL

* Generate all geometry procedurally. No external models or image files.
* Connect all eight tentacles smoothly to the body, without visible gaps or floating parts.
* Add rounded suction cups that stay attached as the tentacles deform.
* Use glossy, translucent jelly with thickness-dependent color absorption, refraction, soft internal light scattering, and delicate rim highlights.
* Thick areas should have richer color; thin tentacle tips should transmit more light.
* Avoid opaque plastic, blown-out highlights, and visible mesh seams.

SOFT-BODY PHYSICS
Use a stable mass-spring or position-based dynamics system with elastic constraints and approximate volume preservation.

* The head should feel soft but substantial.
* Tentacles should be more flexible than the head, especially near their tips.
* Allow users to grab the head or any tentacle at the clicked location.
* Pulling should deform the nearby geometry first, then elastically pull the rest of the body.
* On release, the octopus should wobble and gradually settle into its original shape.
* Tentacles should react independently, with slightly delayed motion.
* Include gravity, floor collisions, friction, and damping.
* Prevent tentacles from passing through the floor.
* Clamp extreme stretching and use fixed simulation steps so strong pulls do not break the model.
* Do not fake softness by scaling or rotating the entire octopus.

INTERACTION

* Left-click or touch the octopus to grab and stretch it.
* Right-drag or drag empty space to gently orbit the camera.
* Support a limited zoom range.
* Keep camera gestures separate from object dragging.
* Add “Give it a nudge,” “Reset,” “Pause,” and “Reset view” buttons.
* Include Firmness and Internal damping sliders.
* Add “¼ speed” and “Show mesh” toggles.
* Provide three color presets: Coral, Lagoon, and Grape. Change the material colors without resetting the simulation.

INTERFACE
Use a minimal editorial layout:

* Top left: small “MATERIAL STUDIES” label.
* Large italic serif heading: “Octo Jelly.”
* Caption: “Eight arms. A little wobble. A very soft creature.”
* Top right: a WebGPU status indicator.
* Right side: a compact “THE SPECIMEN” control panel.
* Bottom left: “Grab a tentacle. Pull gently. Let go.”

Use clean sans-serif text for controls, thin borders, and generous whitespace. Avoid heavy panels or decorative UI effects.
PERFORMANCE AND QUALITY

* Use real WebGPU rendering, not a 2D canvas imitation or prerecorded animation.
* Reuse geometry and buffers; do not rebuild meshes during dragging.
* Keep suction cups, eyes, and other details attached to the deforming body.
* Handle transparency without flickering, disappearing surfaces, or harsh black edges.
* Support desktop and mobile layouts.
* Show a clear fallback message if WebGPU is unavailable.
* Test repeated grabs, strong pulls, releases, floor collisions, palette changes, pause, and reset.

The result should feel like a little living gummy toy - glossy, squishy, expressive, and satisfying to stretch. Deliver the full working HTML, not a mockup or a code fragment.

中文译文

创建“Octo Jelly”——一只漂亮、可交互的 3D 软糖章鱼,用户可以直接在浏览器中抓取、拉伸和挤压它。使用真正的 WebGPU 交付完整的单文件 HTML 体验。
艺术指导
让章鱼看起来像一颗高级的半透明软糖:圆润的头部、八条卷曲的触手、小小的吸盘,以及一张可爱而低调的脸。
使用温暖的米白色背景、柔和的摄影棚灯光和淡淡的地面阴影。保持场景优雅、不杂乱,章鱼要大且居中。
几何与材质

* 程序化生成所有几何体。不使用外部模型或图像文件。
* 将全部八条触手平滑地连接到身体,没有可见缝隙或悬浮部件。
* 添加圆润的吸盘,在触手变形时保持附着。
* 使用有光泽的半透明果冻材质,具备随厚度变化的颜色吸收、折射、柔和的内部光散射和细腻的边缘高光。
* 较厚的区域颜色应更浓郁;较细的触手尖端应透出更多光。
* 避免不透明塑料感、过曝的高光和可见的网格接缝。

软体物理
使用稳定的质点-弹簧或基于位置的动力学系统,具备弹性约束和近似体积保持。

* 头部应感觉柔软但有分量。
* 触手应比头部更灵活,尤其是在靠近尖端的位置。
* 允许用户在点击的位置抓取头部或任意一条触手。
* 拉动时应先使附近的几何体变形,再弹性地牵动身体其余部分。
* 松开后,章鱼应晃动并逐渐恢复到原来的形状。
* 触手应各自独立反应,动作略有延迟。
* 包含重力、地面碰撞、摩擦和阻尼。
* 防止触手穿过地面。
* 钳制极端拉伸,并使用固定模拟步长,使强力拉扯不会破坏模型。
* 不要通过缩放或旋转整只章鱼来伪造柔软感。

交互

* 左键点击或触摸章鱼即可抓取并拉伸它。
* 右键拖动或拖动空白处可轻轻环绕旋转相机。
* 支持有限的缩放范围。
* 保持相机手势与对象拖拽相互分离。
* 添加“Give it a nudge”“Reset”“Pause”和“Reset view”按钮。
* 包含 Firmness 和 Internal damping 滑块。
* 添加“¼ speed”和“Show mesh”开关。
* 提供三种颜色预设:Coral、Lagoon 和 Grape。更改材质颜色时不重置模拟。

界面
使用极简的编辑式布局:

* 左上角:小号“MATERIAL STUDIES”标签。
* 大号斜体衬线标题:“Octo Jelly.”
* 说明文字:“Eight arms. A little wobble. A very soft creature.”
* 右上角:WebGPU 状态指示器。
* 右侧:紧凑的“THE SPECIMEN”控制面板。
* 左下角:“Grab a tentacle. Pull gently. Let go.”

控件使用简洁的无衬线文字、细边框和充足留白。避免厚重面板或装饰性 UI 效果。
性能与质量

* 使用真正的 WebGPU 渲染,而不是 2D canvas 仿制或预先录制的动画。
* 复用几何体和缓冲区;拖拽过程中不要重建网格。
* 让吸盘、眼睛和其他细节始终附着在变形的身体上。
* 处理透明效果时避免闪烁、表面消失或生硬的黑色边缘。
* 支持桌面和移动端布局。
* 如果 WebGPU 不可用,显示清晰的回退消息。
* 测试反复抓取、强力拉扯、松开、地面碰撞、配色切换、暂停和重置。

最终效果应像一个小巧的活体软糖玩具——有光泽、软弹、富有表现力,拉伸起来很满足。交付完整可运行的 HTML,而不是效果图或代码片段。

溯源

原作者
vib3coded
发布日期
2026-09-28(由推文 ID 反解)
原始出处
查看原帖 ↗
收录来源
zhuyansen/awesome-opus-5.5-video · 2104466170275324190 · 未声明许可