ai21.net
語言

果凍糖果模擬對比

示範影片

果凍糖果模擬對比 — 1

提示詞

Create “Melon Jelly” - a polished, interactive 3D watermelon jelly slice that runs directly in the browser using genuine WebGPU and WGSL shaders.
Deliver a single, self-contained HTML file with embedded JavaScript and CSS. This must be an actual interactive 3D simulation, not a static render, video, or 2D imitation.
THE WATERMELON
Create a thick, rounded triangular watermelon wedge with:
Translucent ruby-red jelly flesh.
A pale, slightly translucent layer between the flesh and rind.
A glossy green outer rind with irregular dark-green stripes.

Individually modeled dark seeds embedded in both exposed sides.
Softly rounded corners and an appealing, substantial thickness.
Make it look like an expensive gummy candy photographed in a studio. It should feel juicy, soft, and almost edible. Keep the colors rich without overexposing the highlights.
SOFT-BODY PHYSICS
Use a volumetric soft-body simulation, such as a tetrahedral mesh with XPBD elastic and volume-preservation constraints.
The user must be able to:
Grab the tip, a corner, the flesh, or the rind.
Stretch, bend, lift, and gently twist the slice.

Release it and watch it wobble before gradually settling.
The slice must visibly deform locally, not simply move or scale as one rigid object. Make the rind slightly firmer than the flesh while keeping the whole slice flexible.
Preserve volume reasonably during stretching. Prevent inverted elements, explosive motion, and permanent collapse. Use a fixed simulation timestep and bounded substeps for stability.
After release, the motion should decay naturally - no instant snapping back and no endless oscillation.
Keep seeds attached to the deforming flesh. They must move and rotate with the surface rather than float independently or remain fixed in space.
Include ground contact, gentle friction, and soft bouncing. Avoid visible floor penetration.
RENDERING
Use native WebGPU with WGSL shaders.
Include:
Thickness-dependent light absorption.
Refraction through the jelly.

Fresnel reflections and glossy highlights.
Soft transmitted light through thin edges.
Subtle internal details and a few tiny air bubbles.

Soft contact shadows beneath the slice.
A light, neutral studio background.
The flesh, pale rind, and green skin should have distinct material responses. Avoid making everything look like clear glass or opaque plastic.
Keep the slice large and easy to inspect, with a three-quarter camera angle that reveals the flesh, seeds, and thickness.
INTERFACE
Use a minimal editorial layout with generous whitespace, thin borders, restrained controls, and no decorative UI gradients.
Top left:
“MATERIAL STUDIES / NO. 009”
A large italic serif heading split across two lines: “Melon” and “Jelly.”
Small caption:
“A slice of summer.”
“A little wobble.”
“Too soft to share.”
Top right:
A small status indicator showing “WEBGPU · LIVE” when the renderer is running.

Right-side panel:
“THE SPECIMEN”
Three coordinated watermelon-inspired color presets.
Firmness slider with its current value.
Internal damping slider with its current value.
“Give it a nudge” and “Reset” buttons.
“¼ speed” and “Show mesh” checkboxes.

Pause / Resume button.
Bottom left:
A short hint explaining that the slice can be grabbed and stretched.
Live mass, relative volume, and kinetic-energy readouts derived from the simulation. Clearly describe illustrative units or approximate values where appropriate.
Bottom right:

A collapsible “Inside the experiment” section briefly explaining the physics and rendering.
BEHAVIOR AND PERFORMANCE
Support both mouse and touch input. Use pointer capture so dragging remains reliable when the pointer leaves the object.
Make the layout work on desktop and mobile without controls covering the slice.
Reuse buffers and avoid rebuilding geometry or compiling shaders during dragging. Keep interaction smooth and responsive.
Respect reduced-motion preferences. If WebGPU is unavailable, display a clear explanation instead of silently substituting a fake renderer.
VALIDATION
Test dragging from several locations, strong stretches, repeated releases, ground collisions, all sliders, presets, pause, reset, and slow motion.
Check that the model returns to a stable resting shape, seeds stay attached, the mesh remains intact, and there are no rendering errors.
Prioritize the quality of the jelly response and lighting. The result should be something people want to keep grabbing and playing with.

中文翻譯

創建 “Melon Jelly”——一片精緻、可交互的 3D 西瓜果凍切片,直接在瀏覽器中運行,使用真正的 WebGPU 和 WGSL 着色器。
交付一個單一的、自包含的 HTML 文件,內嵌 JavaScript 和 CSS。這必須是一個真正的交互式 3D 模擬,而不是靜態渲染、視頻或 2D 仿製品。
西瓜
創建一塊厚實、圓潤的三角形西瓜瓣,具有:
半透明的寶石紅果凍果肉。
果肉與瓜皮之間一層淺色、略帶半透明的夾層。
有光澤的綠色外皮,帶有不規則的深綠色條紋。

兩塊暴露的切面上都嵌有單獨建模的深色種子。
柔和的圓角,以及誘人而有分量的厚度。
讓它看起來像在影棚中拍攝的昂貴軟糖。它應該感覺多汁、柔軟,幾乎可以入口。保持色彩濃鬱,但不要使高光過曝。
軟體物理
使用體積軟體模擬,例如帶 XPBD 彈性約束和體積保持約束的四面體網格。
用戶必須能夠:
抓住尖端、一角、果肉或瓜皮。
拉伸、彎曲、抬起並輕輕扭轉這片切片。

鬆開它,看它晃動,然後逐漸穩定下來。
切片必須可見地發生局部形變,而不是僅僅作爲一個剛體整體移動或縮放。讓瓜皮比果肉稍硬一些,同時保持整片切片柔韌。
在拉伸過程中合理地保持體積。防止單元反轉、爆炸式運動和永久塌陷。使用固定的模擬時間步長和有界的子步數以保證穩定。
鬆開後,運動應自然衰減——不要瞬間彈回,也不要無休止地振盪。
讓種子附着在形變的果肉上。它們必須隨表面一起移動和旋轉,而不是獨立漂浮或固定在空間中。
包含地面接觸、輕柔摩擦和柔和彈跳。避免出現可見的地面穿透。
渲染
使用原生 WebGPU 和 WGSL 着色器。
包含:
隨厚度變化的光吸收。
透過果凍的折射。

Fresnel 反射和有光澤的高光。
透過薄邊緣的柔和透射光。
微妙的內部細節和幾個細小的氣泡。

切片下方柔和的接觸陰影。
淺色、中性的影棚背景。
果肉、淺色瓜皮和綠色外皮應具有不同的材質響應。避免讓所有東西看起來都像透明玻璃或不透明塑料。
讓切片保持大而易於觀察,使用能展現果肉、種子和厚度的四分之三視角。
界面
使用極簡的編輯式佈局,留出充足留白、細邊框、剋制的控件,不要任何裝飾性 UI 漸變。
左上角:
“MATERIAL STUDIES / NO. 009”
大號斜體襯線標題分兩行:“Melon” 和 “Jelly.”
小號說明文字:
“A slice of summer.”
“A little wobble.”
“Too soft to share.”
右上角:
一個小狀態指示器,在渲染器運行時顯示 “WEBGPU · LIVE”。

右側面板:
“THE SPECIMEN”
三組相互協調、以西瓜爲靈感的顏色預設。
Firmness 滑塊及其當前值。
Internal damping 滑塊及其當前值。
“Give it a nudge” 和 “Reset” 按鈕。
“¼ speed” 和 “Show mesh” 複選框。

Pause / Resume 按鈕。
左下角:
一條簡短提示,說明這片切片可以被抓取和拉伸。
來自模擬的實時質量、相對體積和動能讀數。在適當的地方清楚說明示意性單位或近似值。
右下角:

一個可摺疊的 “Inside the experiment” 區塊,簡要解釋物理和渲染。
行爲與性能
同時支持鼠標和觸摸輸入。使用指針捕獲,使指針離開對象時拖動仍然可靠。
讓佈局在桌面和移動端都能正常工作,控件不會遮擋切片。
複用緩衝區,避免在拖動過程中重建幾何體或編譯着色器。保持交互流暢、響應迅速。
尊重減少動態效果偏好。如果 WebGPU 不可用,顯示清晰的說明,而不是悄悄替換成假的渲染器。
驗證
測試從多個位置拖動、強力拉伸、反覆鬆開、地面碰撞、所有滑塊、預設、暫停、重置以及慢動作。
檢查模型是否恢復到穩定的靜止形狀、種子是否保持附着、網格是否保持完整,以及是否有渲染錯誤。
優先保證果凍響應和光照的質量。結果應該是那種人們想不斷抓取和把玩的東西。

溯源

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