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