Real-time soft-body simulation of a translucent jelly avocado
Real-time soft-body simulation of a translucent jelly avocado is a 18-second Claude Opus motion design reference by @vib3coded, built around WebGPU. [Note: the creator shared a partial prompt. Copy this 3D motion prompt, keep the creator's frame counts and palette, and adapt the subject for your own launch film.
@vib3codedView post
Prompt
[Note: the creator shared a partial prompt. Wording below is theirs.]
GOAL:
Build a single self-contained HTML page called "Avocado Jelly" — Material Studies No.
MOTION:
033 — a real-time soft-body simulation of half an avocado cast in translucent jelly, lying skin-down on a table with its pit seated in the hollow. Render with WebGPU (WGSL), no libraries; if WebGPU isn't available, show a calm "This avocado needs WebGPU" fallback card. English UI.
PAGE
- A light studio sweep (#E2DFDA) as one full-bleed stage. The masthead, readouts and a specimen panel float over it; on phones they stack: masthead, stage, readouts, panel, notes.
- Top left: kicker "Material Studies / No. 033", a big italic serif title "Avocado / Jelly." on two offset lines, and a three-line deck: "Half a ripe one. A pit that clings. Pull, and it lets go."
- A small status pill: "WEBGPU · LIVE".
- Right: a specimen panel "The Specimen — fig. 33" with:
- Variety swatches: Hass, Fuerte, Reed, each with its own flesh, deep flesh, pale heart, skin, stripe and pit colours, skin bumpiness, specks and roughness;
- a Firmness slider (trembling ↔ set) and an Internal damping slider (lively ↔ syrupy);
- buttons: Give it a nudge, Reset, Pop the pit, Pause; checkboxes for ¼ speed and Show mesh.
- Bottom left: a "Handle" hint ("Grab the flesh to stretch it, or grab the pit and pull — the hollow clings, then lets go. Drop it back in and it settles home. Scroll, or add a second finger, while holding to twist.").
- Live readouts: Mass ≈ g, Volume % of rest, Grip %, plus a small illustrative-scale note (1 sim unit ≈ 3.6 cm, gummy at 1.3 g/cm³).
- A collapsible "Inside the experiment" panel explaining the shape, the rigid pit, the peeling grip and the light, with live particle, tetrahedron and bubble counts.
GEOMETRY
- Half an avocado as a signed distance field: a pear of revolution (a round body and a narrower neck, smoothly blended), its section slightly flattened, cut along its length, lying skin-down, with an egg-shaped hollow for the pit.
- Simulation mesh: a snapped hex lattice, five tetrahedra per cell, with node layers lying exactly on the floor and on the cut face.
- Render surface: a finer surface-nets mesh embedded barycentrically in the tetrahedra. The pit has its own egg mesh, plus a few tiny air bubbles suspended in the flesh.
PHYSICS (XPBD, fixed 60 Hz step, 10 substeps)
- Co-rotational tetrahedral constraints: each tet is pulled toward its best-fit rotated rest shape, recovering from inversions. Volume constraints keep it near-incompressible.
- Relative-velocity damping along edges gives internal viscosity; the table contact has friction.
- The leathery skin is about three times stiffer than the buttery flesh.
- The pit is a true rigid body: position, quaternion and the full inertia of an egg, on the same substeps.
- Every particle is kept out of it with frictional contact.
- It rests and rolls on the table through a ring of sampled contact points, so a loose pit tumbles, spins and stops.
- The nodes lining the hollow are each held to the pit b
Author original
Build a single self-contained HTML page called "Avocado Jelly" — Material Studies No. 033 — a real-time soft-body simulation of half an avocado cast in translucent jelly, lying skin-down on a table with its pit seated in the hollow. Render with WebGPU (WGSL), no libraries; if WebGPU isn't available, show a calm "This avocado needs WebGPU" fallback card. English UI.
PAGE
- A light studio sweep (#E2DFDA) as one full-bleed stage. The masthead, readouts and a specimen panel float over it; on phones they stack: masthead, stage, readouts, panel, notes.
- Top left: kicker "Material Studies / No. 033", a big italic serif title "Avocado / Jelly." on two offset lines, and a three-line deck: "Half a ripe one. A pit that clings. Pull, and it lets go."
- A small status pill: "WEBGPU · LIVE".
- Right: a specimen panel "The Specimen — fig. 33" with:
- Variety swatches: Hass, Fuerte, Reed, each with its own flesh, deep flesh, pale heart, skin, stripe and pit colours, skin bumpiness, specks and roughness;
- a Firmness slider (trembling ↔ set) and an Internal damping slider (lively ↔ syrupy);
- buttons: Give it a nudge, Reset, Pop the pit, Pause; checkboxes for ¼ speed and Show mesh.
- Bottom left: a "Handle" hint ("Grab the flesh to stretch it, or grab the pit and pull — the hollow clings, then lets go. Drop it back in and it settles home. Scroll, or add a second finger, while holding to twist.").
- Live readouts: Mass ≈ g, Volume % of rest, Grip %, plus a small illustrative-scale note (1 sim unit ≈ 3.6 cm, gummy at 1.3 g/cm³).
- A collapsible "Inside the experiment" panel explaining the shape, the rigid pit, the peeling grip and the light, with live particle, tetrahedron and bubble counts.
GEOMETRY
- Half an avocado as a signed distance field: a pear of revolution (a round body and a narrower neck, smoothly blended), its section slightly flattened, cut along its length, lying skin-down, with an egg-shaped hollow for the pit.
- Simulation mesh: a snapped hex lattice, five tetrahedra per cell, with node layers lying exactly on the floor and on the cut face.
- Render surface: a finer surface-nets mesh embedded barycentrically in the tetrahedra. The pit has its own egg mesh, plus a few tiny air bubbles suspended in the flesh.
PHYSICS (XPBD, fixed 60 Hz step, 10 substeps)
- Co-rotational tetrahedral constraints: each tet is pulled toward its best-fit rotated rest shape, recovering from inversions. Volume constraints keep it near-incompressible.
- Relative-velocity damping along edges gives internal viscosity; the table contact has friction.
- The leathery skin is about three times stiffer than the buttery flesh.
- The pit is a true rigid body: position, quaternion and the full inertia of an egg, on the same substeps.
- Every particle is kept out of it with frictional contact.
- It rests and rolls on the table through a ring of sampled contact points, so a loose pit tumbles, spins and stops.
- The nodes lining the hollow are each held to the pit b
Questions
What is this 3d scenes prompt for?
It is a Claude Opus motion design brief for “Real-time soft-body simulation of a translucent jelly avocado”. Paste it into Claude and keep the timings already written in the prompt.
Where is the original film?
The creator is @vib3coded. Use View post to open the X video this prompt belongs to.