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 · 未聲明授權