Interactive soft-body citrus jelly slice with knife cutting and cookie cutters
Interactive soft-body citrus jelly slice with knife cutting and cookie cutters is a 17-second Claude Opus motion design reference by @vib3coded, built around Three.js, Physics, WebGL. GOAL: Copy this interactive motion prompt, keep the creator's frame counts and palette, and adapt the subject for your own launch film.
@vib3codedView post
Prompt
GOAL:
Build a single-file HTML page titled "Citrus Jelly Cutters" — an interactive soft-body study of a thick half-moon orange slice made of translucent citrus jelly, rendered with three.js r170 (ES module via importmap from jsdelivr, WebGL 2, no build step). The jelly can be grabbed and stretched, cut with a knife into as many pieces as you like, and stamped with cookie cutters.
MOTION:
LOOK & LAYOUT
- Editorial "Material Studies" style on a warm cream paper sweep (~#F2ECE2). Kicker "Material Studies / No. 010 · three.js", big serif headline "Citrus / Jelly.", caption "Sunshine in segments. Soft enough to slice. Sweet enough to share."
- Full-bleed canvas; a control panel on the right; readouts along the bottom; a status pill ("THREE.JS · LIVE / PAUSED"); a short notes section explaining tetrahedra, cutting, cookie cutters, surfaces and light. Stacked layout on phones. Respect prefers-reduced-motion. If WebGL 2 or float render targets are missing, show a friendly fallback ("This slice needs WebGL 2.").
- The camera frames the slice inside the free area between the text and the panel (lens shift), eases after pieces that are thrown far away, orbits by dragging empty space, zooms with the wheel, and resets on double-click.
THE SLICE
- A half disk with inner radius 1.42, a 0.16 rind band, thickness 0.56 and rounded 0.11 bevels. Material regions come from rest-space coordinates: glossy zest with oil-gland pores, white pith, juicy flesh in 5 segments separated by 4 thin milky membranes, a pithy core, and a dozen tiny air bubbles inside.
- Three varieties shown as small SVG slice swatches: Orange, Blood Orange, Lemon. The page accent colour follows the chosen variety.
PHYSICS (CPU, XPBD)
- Simulation mesh: 2D Delaunay of the outline plus an interior hex lattice, extruded into 3 layers of prisms, each split into tetrahedra.
- Per-tet co-rotational shape matching (warm-started quaternion rotation extraction) with XPBD compliance, plus tet volume constraints for near-incompressibility. The rind and pith are softer than the flesh.
- Hard strain limits (0.35× to 1.8× edge length), relative-velocity edge damping, light air drag, floor contact with Coulomb friction, and a velocity cap.
- 10 substeps at 60 Hz with gentle settling. Any non-finite value triggers a soft reset.
- Render vertices are embedded in the tets with barycentric weights; normals are recomputed every frame.
- Separate pieces push each other apart with particle–particle collisions, tested only where their bounding boxes overlap.
TOOLS
1. Hand
- Grab any piece (corner, flesh or rind) with a soft-falloff patch on a camera-facing drag plane, with bounded reach.
- Never crush the jelly into the table.
- Scroll, or add a second finger, while holding to twist the patch.
- Hint: "Grab any piece — corner, flesh or rind — and pull."
2. Knife
- A small nakiri knife: brushed steel blade, ground edge bevel, polished bolster, dark walnut handle with three steel rivets.
- It hovers under
Author original
Build a single-file HTML page titled "Citrus Jelly Cutters" — an interactive soft-body study of a thick half-moon orange slice made of translucent citrus jelly, rendered with three.js r170 (ES module via importmap from jsdelivr, WebGL 2, no build step). The jelly can be grabbed and stretched, cut with a knife into as many pieces as you like, and stamped with cookie cutters.
LOOK & LAYOUT
- Editorial "Material Studies" style on a warm cream paper sweep (~#F2ECE2). Kicker "Material Studies / No. 010 · three.js", big serif headline "Citrus / Jelly.", caption "Sunshine in segments. Soft enough to slice. Sweet enough to share."
- Full-bleed canvas; a control panel on the right; readouts along the bottom; a status pill ("THREE.JS · LIVE / PAUSED"); a short notes section explaining tetrahedra, cutting, cookie cutters, surfaces and light. Stacked layout on phones. Respect prefers-reduced-motion. If WebGL 2 or float render targets are missing, show a friendly fallback ("This slice needs WebGL 2.").
- The camera frames the slice inside the free area between the text and the panel (lens shift), eases after pieces that are thrown far away, orbits by dragging empty space, zooms with the wheel, and resets on double-click.
THE SLICE
- A half disk with inner radius 1.42, a 0.16 rind band, thickness 0.56 and rounded 0.11 bevels. Material regions come from rest-space coordinates: glossy zest with oil-gland pores, white pith, juicy flesh in 5 segments separated by 4 thin milky membranes, a pithy core, and a dozen tiny air bubbles inside.
- Three varieties shown as small SVG slice swatches: Orange, Blood Orange, Lemon. The page accent colour follows the chosen variety.
PHYSICS (CPU, XPBD)
- Simulation mesh: 2D Delaunay of the outline plus an interior hex lattice, extruded into 3 layers of prisms, each split into tetrahedra.
- Per-tet co-rotational shape matching (warm-started quaternion rotation extraction) with XPBD compliance, plus tet volume constraints for near-incompressibility. The rind and pith are softer than the flesh.
- Hard strain limits (0.35× to 1.8× edge length), relative-velocity edge damping, light air drag, floor contact with Coulomb friction, and a velocity cap.
- 10 substeps at 60 Hz with gentle settling. Any non-finite value triggers a soft reset.
- Render vertices are embedded in the tets with barycentric weights; normals are recomputed every frame.
- Separate pieces push each other apart with particle–particle collisions, tested only where their bounding boxes overlap.
TOOLS
1. Hand
- Grab any piece (corner, flesh or rind) with a soft-falloff patch on a camera-facing drag plane, with bounded reach.
- Never crush the jelly into the table.
- Scroll, or add a second finger, while holding to twist the patch.
- Hint: "Grab any piece — corner, flesh or rind — and pull."
2. Knife
- A small nakiri knife: brushed steel blade, ground edge bevel, polished bolster, dark walnut handle with three steel rivets.
- It hovers under
Questions
What is this games prompt for?
It is a Claude Opus motion design brief for “Interactive soft-body citrus jelly slice with knife cutting and cookie cutters”. 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.