3D worldsVib3Coded @vib3coded2026-11-130:17

Interactive jelly crocodile soft-body study

Views
19.2K
Likes
336
Replies
46
Saves
155

An interactive Three.js soft-body jelly crocodile that can be dragged, fed gummy fish and made to snap. The creator says Claude Opus 5.5 built it in 15 minutes for $3.08.

Full prompt4,732 chars

Build a single-file interactive three.js (r170, ES module via import map) soft-body study called "Crocodile Jelly" — No. 069 in a "Material Studies" series. A life-size crocodile cast in two layers of jelly lies on its belly on a pale studio table, legs splayed, mouth open.

Geometry (signed distance field, rest pose):
- Body: a flattened, boxy superellipse section swept along a gently curving Catmull–Rom spine from the tail tip to the snout. The tail is tall and narrow, the body broad and low, then a neck, a flat skull and a long flat snout ending in a rounded nose bulb. The belly is pressed into the table so the footprint is flat.
- Legs: four short, stocky legs built from tapered capsules (shoulder/hip → elbow/knee → wrist), splayed out sideways. Feet are flat on the table; the front feet have 5 spread toes, the hind feet 4.
- Tail crest: a double row of upright triangular plates that merges into a single row toward the tip.
- Back: rows of keeled scutes down the back, with a bigger pair on the nape. Eyes sit on raised bumps on top of the skull.
- Jaws: the mouth line sits a little below the middle of the head, so the lower jaw is a solid bar about a third of the head's depth. The upper head is built swung up about the corner of the mouth (about 17° open); the lower jaw lies flat and still on the table. The floor of the mouth is nearly flat and filled by a soft tongue pad; the palate is a shallow hollow.
- Teeth: one row of 13 sugar cones along each jaw edge, upper pointing down and lower pointing up, staggered so they interleave, every fourth one larger.
- Inside: about 22 small trapped air bubbles in the body, and 6 stomach slots down the middle for swallowed food.

Simulation:
- Hex lattice with 5 tets per cell, boundary nodes snapped to the surface and a node layer exactly on the floor.
- CPU XPBD shape matching on a fixed 60 Hz step with 10 substeps. Legs, crest and head are set firmer than the body.
- Render meshes from surface nets (clear jelly plus a cream core layer), embedded barycentrically in the tets.
- Two muscles made by rewriting rest shapes:
(1) the head swings down about the corner of the mouth onto the still lower jaw. It breathes slowly half-open, opens wide when food approaches, and on "Snap" opens wide, slams shut and lunges forward;
(2) a travelling-wave plus steady-turn bend of the spine. The tail sways lazily and the head turns toward the pointer; "Thrash" sends a hard wave down the body.

Rendering (hand-written ShaderMaterials):
- Key-light shadow map, a back-face thickness pass, and refraction through the front faces with Beer–Lambert absorption and a scattering tint.
- The cream layer fills the belly up to a scalloped line low on the flank and rises at the head to just under the mouth line, so the whole lower jaw is solid cream. It carries square belly plates.
- Clear jelly carries procedural scales in body coordinates (arc length × distance round the section): oblong plates in rows on the back and tail, an irregular cell crackle on the head, darker grooves with a subtle bump. Ragged dark crossbands across the back and tail fade out down the flank; sense-pit dots on the jaws.
- A soft pink mouth: the tongue, the floor of the mouth, the gums along the jaw rims and the palate.
- Eyes are glossy beads that are all iris: flecked gold, darker at the rim, with a vertical slit pupil.
- Teeth are ivory sugar, clearer toward the tip.
- Khronos PBR Neutral tone mapping and 4× MSAA.

Interaction:
- Drag any part to pull the jelly; scroll or use a second finger while holding to twist.
- "Feed" tosses 4 gummy fish in flat arcs at the open mouth. Fish are rigid bodies that collide with the jelly and topple flat on the table. A fish resting between the jaws triggers a snap, is swallowed and stays visible in the stomach.
- Buttons: Feed, Snap, Thrash, Reset. Sliders: Firmness, Internal damping. Checkboxes: ¼ speed, Show mesh. A Pause button.

Five original colourways as swatches, each with its own iris and fish colour:
- Moss: #5f9e30 over cream (default)
- Jade: #2aae88
- Amber: #e89a30 (green eyes)
- Lilac: #9a74e2
- Coral: #ef6458

UI:
- Editorial layout on a warm grey backdrop (#e2dfda): an italic serif title "Crocodile Jelly.", the caption "Low and long and patient, in moss-green jelly, basking with its jaws open on sugar.", a specimen panel marked "fig. 69", and a status pill "THREE.JS · LIVE".
- Live readouts: mass in kg (from enclosed volume at 1.3 g/cm³, scale 1 unit ≈ 1.35 m), length in m measured along the spine, gape in degrees, fish swallowed.
- A collapsible "Inside the experiment" notes section.
- Responsive stacked layout on phones, a WebGL2 fallback message, prefers-reduced-motion support. English UI throughout.

Source: the creator's reply under the post. Kept in its original language, unedited.

Want more prompts like this one?

Get the 50 most-viewed Claude 5.5 video prompts on one page: the full original text, the creator and the post it came from. We'll only email you when there's a new prompt worth trying. Unsubscribe anytime.

Tools the creator mentioned

Three.js

Original post: https://x.com/vib3coded/status/2121290268779618790

All works are open data at GitHub · awesome-opus-5.5-video.

Model attribution is as stated by the creator and was not independently reproduced. View counts are a snapshot from 2026-11-19. The work belongs to its creator; DM @GoSailGlobal on X for corrections or removal.

More 3d worlds

Related articles