ai21.net
語言

菠蘿果凍

示範影片

菠蘿果凍 — 1

提示詞

Create an interactive 3D scene called “Pineapple Jelly” - a thick, translucent gummy pineapple ring that users can grab, stretch, bend, and release. Everything must run directly in the browser in one standalone HTML file using genuine WebGPU and WGSL shaders.
The main priorities are convincing soft-body behavior, beautiful light refraction, and satisfying interaction.
MODEL

* A round pineapple slice with a genuine hole through its center.
* Thick, juicy flesh, a slightly scalloped outer edge, and softly rounded corners.
* Both cut faces must be equally detailed. The ring can be flipped and viewed from every angle.
* Golden translucent flesh with delicate radial fibers, small bubbles, and elongated pale juice cells embedded inside.
* No skin, leaves, or seeds. It should look like a pineapple ring made of gummy candy, not a doughnut.

MATERIAL AND LIGHTING

* Rich honey-yellow coloring, wet gloss, and soft subsurface-style light scattering.
* Refraction, thickness-dependent transparency, controlled highlights, and Fresnel reflections around the edges.
* Stretched, thinner areas should transmit more light.
* A warm, light background, soft studio lighting, and a grounded contact shadow.
* Avoid blown-out highlights, excessive bloom, and a hard-glass appearance.

PHYSICS

* Use a volumetric soft-body mesh with elastic connections and volume constraints, such as XPBD.
* Allow users to grab either the outer or inner edge and pull it in any direction.
* Deformation should spread naturally through neighboring regions: the hole stretches, the flesh bends, and the opposite side responds with a slight delay.
* After release, the ring should spring back softly, wobble a few times, and gradually settle.
* No instant snapping, endless oscillation, torn geometry, or collapsing central hole.
* Implement gravity and ground collisions. The ring should squash slightly on impact and recover its shape.
* Internal fibers, bubbles, and juice cells must deform with the flesh instead of remaining stationary.
* Clicking through the empty center must not grab the object.

INTERFACE

* A minimal editorial layout with generous whitespace.
* A large italic serif heading on the left: “Pineapple Jelly.”
* A compact “THE SPECIMEN” control panel on the right.
* Three color presets: Golden, Amber, and Rosé. Change the tint while preserving the material properties.
* Sliders for Firmness and Internal damping.
* Buttons: Give it a nudge, Reset, Turn it over, and Pause.
* Toggles: ¼ speed and Show mesh.
* Small live readouts for mass, volume relative to rest volume, and kinetic energy.
* All interface text in English.
* Support both mouse and touch interaction.

TECHNICAL REQUIREMENTS

* Use actual 3D geometry and WebGPU rendering, not a video or a Canvas 2D imitation.
* Generate all geometry and materials in code, without external models or image assets.
* Separate the simulation mesh from the smoother visual surface to maintain good performance.
* Display a clear fallback message when WebGPU is unavailable.
* Test strong stretching, inner-edge grabbing, flipping, resetting, and mobile interaction.

Save the finished result as pineapple-jelly-webgpu.html. Deliver the complete working file, not a mockup or implementation plan.
The final experience should feel like a soft, stretchy, appetizing gummy toy that is genuinely fun to squish.

中文翻譯

創建一個名爲“Pineapple Jelly”的交互式 3D 場景——一個厚實、半透明的軟糖菠蘿圈,用戶可以抓住它、拉伸、彎折並鬆手。一切都必須在一個獨立的 HTML 文件中直接運行於瀏覽器,並使用真正的 WebGPU 和 WGSL 着色器。
主要重點是令人信服的軟體行爲、優美的光線折射,以及令人滿足的交互。
模型

* 一片圓形菠蘿片,中心有一個真正的貫穿孔洞。
* 厚實多汁的果肉、略帶扇貝狀的外緣,以及柔和圓潤的邊角。
* 兩個切面都必須同樣精細。這個環可以被翻轉,並從各個角度觀看。
* 金色半透明的果肉,內部嵌有纖細的放射狀纖維、小氣泡和細長的淺色果汁細胞。
* 沒有外皮、葉子或籽。它應該看起來像用軟糖做的菠蘿圈,而不是甜甜圈。

材質與光照

* 濃鬱的蜜黃色、溼潤的光澤,以及柔和的次表面散射式光線散射。
* 折射、隨厚度變化的透明度、受控的高光,以及邊緣處的菲涅爾反射。
* 被拉伸、更薄的區域應透射更多的光。
* 溫暖明亮的背景、柔和的影棚燈光,以及貼地的接觸陰影。
* 避免過曝的高光、過度的泛光,以及硬質玻璃般的外觀。

物理

* 使用帶有彈性連接和體積約束的體積軟體網格,例如 XPBD。
* 允許用戶抓住外緣或內緣,並向任意方向拉扯。
* 形變應自然地傳播到相鄰區域:孔洞被拉伸、果肉彎曲,相對的一側會稍有延遲地作出響應。
* 鬆開後,環應柔和地彈回,晃動幾次,然後逐漸穩定下來。
* 不得出現瞬間彈回、無休止振盪、幾何撕裂或中心孔洞塌陷。
* 實現重力和地面碰撞。環在撞擊時應略微壓扁,然後恢復形狀。
* 內部的纖維、氣泡和果汁細胞必須隨果肉一起變形,而不是保持靜止。
* 點擊空心的中心區域不得抓取物體。

界面

* 極簡的編輯式排版,留有充裕的空白。
* 左側一個大的斜體襯線標題:“Pineapple Jelly”。
* 右側一個緊湊的“THE SPECIMEN”控製麪板。
* 三個顏色預設:Golden、Amber 和 Rosé。在保持材質屬性的同時改變色調。
* Firmness 和 Internal damping 的滑塊。
* 按鈕:Give it a nudge、Reset、Turn it over 和 Pause。
* 開關:¼ speed 和 Show mesh。
* 小型實時讀數,顯示質量、相對於靜止體積的體積,以及動能。
* 所有界面文本使用英文。
* 同時支持鼠標和觸摸交互。

技術要求

* 使用真正的 3D 幾何體和 WebGPU 渲染,而不是視頻或 Canvas 2D 的仿製品。
* 在代碼中生成所有幾何體和材質,不使用外部模型或圖像資源。
* 將模擬網格與更平滑的視覺表面分開,以維持良好的性能。
* 當 WebGPU 不可用時,顯示清晰的回退提示信息。
* 測試強力拉伸、內緣抓取、翻轉、重置以及移動端交互。

將最終結果保存爲 pineapple-jelly-webgpu.html。交付完整可運行的文件,而不是效果圖或實現方案。
最終的體驗應該像一個柔軟、有彈性、令人有食慾的軟糖玩具,捏起來真的很好玩。

溯源

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