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シーンを作成してください。厚みのある半透明のグミ製パイナップルリングで、ユーザーがつかみ、伸ばし、曲げ、離すことができます。すべては本物のWebGPUとWGSLシェーダーを使い、単一のスタンドアロンHTMLファイルでブラウザ上で直接動作しなければなりません。
主な優先事項は、説得力のあるソフトボディの挙動、美しい光の屈折、満足感のあるインタラクションです。
モデル

* 中心を貫通する本物の穴を持つ、丸いパイナップルスライス。
* 厚くジューシーな果肉、わずかに波打つ外縁、やわらかく丸みを帯びた角。
* 両方の切断面は同等に詳細であること。リングは裏返してあらゆる角度から見ることができる。
* 繊細な放射状の繊維、小さな気泡、細長い淡い果汁のセルが内側に埋め込まれた、黄金色の半透明の果肉。
* 皮、葉、種はなし。ドーナツではなく、グミキャンディでできたパイナップルリングに見えること。

マテリアルとライティング

* 濃厚なハニーイエローの色合い、濡れたような光沢、やわらかなサブサーフェス風の光の散乱。
* 屈折、厚みに依存する透明感、抑制されたハイライト、縁まわりのフレネル反射。
* 引き伸ばされて薄くなった領域は、より多くの光を透過させること。
* 暖かく明るい背景、やわらかなスタジオライティング、接地したコンタクトシャドウ。
* 白飛びしたハイライト、過剰なブルーム、硬質ガラスのような見た目は避ける。

物理

* 弾性接続と体積拘束を備えたボリュメトリックなソフトボディメッシュを使用する(XPBD など)。
* ユーザーが外縁・内縁のどちらをつかんでも、任意の方向に引けるようにする。
* 変形は隣接する領域へ自然に伝わること。穴が伸び、果肉が曲がり、反対側はわずかな遅れをもって反応する。
* 離した後は、リングがやわらかく跳ね返り、数回揺れて、徐々に落ち着くこと。
* 即座のスナップ、終わりのない振動、ジオメトリの破れ、中央の穴のつぶれはなし。
* 重力と地面との衝突を実装する。リングは着地時にわずかにつぶれ、形を戻すこと。
* 内部の繊維、気泡、果汁のセルは静止したままではなく、果肉とともに変形しなければならない。
* 空いた中心をクリックしてもオブジェクトをつかまないこと。

インターフェース

* 余白をたっぷり取った、ミニマルでエディトリアルなレイアウト。
* 左側に大きなイタリック体のセリフ見出し「Pineapple Jelly」。
* 右側にコンパクトな「THE SPECIMEN」コントロールパネル。
* 3つのカラープリセット:Golden、Amber、Rosé。マテリアル特性を保ったまま色合いを変える。
* Firmness と Internal damping のスライダー。
* ボタン:Give it a nudge、Reset、Turn it over、Pause。
* トグル:¼ speed、Show mesh。
* 質量、静止体積に対する体積、運動エネルギーの小さなライブ表示。
* すべてのインターフェーステキストは英語で。
* マウスとタッチの両方の操作をサポートする。

技術要件

* 動画や Canvas 2D の模倣ではなく、実際の3Dジオメトリと WebGPU レンダリングを使用する。
* 外部モデルや画像アセットを使わず、すべてのジオメトリとマテリアルをコードで生成する。
* 良好なパフォーマンスを保つため、シミュレーションメッシュとより滑らかなビジュアルサーフェスを分離する。
* WebGPU が利用できない場合は、明確なフォールバックメッセージを表示する。
* 強いストレッチ、内縁のつかみ、裏返し、リセット、モバイル操作をテストする。

完成した結果を pineapple-jelly-webgpu.html として保存してください。モックアップや実装計画ではなく、完全に動作するファイルを納品してください。
最終的な体験は、やわらかく伸びる、食欲をそそるグミのおもちゃのように感じられ、本当に押しつぶすのが楽しいものであるべきです。

出典

原作者
vib3coded
公開日
2026-09-27(由推文 ID 反解)
原典
元の投稿を見る ↗
収録元
zhuyansen/awesome-opus-5.5-video · 2104103495020458415 · ライセンス未表明