Great White Jelly (Copy)
Material Studies / No. 060 · three.js

Great WhiteJelly.

A shark of slate jelly
on a milky belly, its jaws
open on rows of sugar teeth.

THREE.JS · STARTING

HandleIts head follows your pointer. Feed it: gummy fish that land in the open mouth are bitten and turn up in the stomach. Pull a fin or the tail, lift the snout; scroll, or add a second finger, while holding to twist.

Mass
≈—kg
Length
—cm
Gape
—°
Swallowed
0fish

Illustrative scale: 1 sim unit ≈ 40 cm — a big one — gummy at 1.3 g/cm³. Length is measured live along the spine, from the tail stock to the snout; gape is the angle between the jaws at the corner of the mouth.

Inside the experiment

A shark on the table

The shark is a volumetric mesh of — particles and — tetrahedra, cut from a signed distance field: a round section swept along a spline spine from the tail stock to a conical snout, lifted at both ends so the snout clears the table and the tail stands on the lower lobe of its crescent fin. The median fins — the tall first dorsal, the small second dorsal and anal fin, the tail — are outlines extruded across the body; the long pectorals and the pelvics lie in planes of their own, splayed down onto the table. A snapped hex lattice, five tetrahedra per cell, keeps a layer of nodes exactly on the floor; it is solved with XPBD on a fixed 60 Hz step split into 10 substeps, the fins set firmer than the body.

Countershading

Two jellies: clear slate above, milky white below, the line between them high and ragged along the flank, dipping under the pectoral fins, and at the head running down to the mouth, so the lower jaw is white and the snout dark — the colouring a great white wears in the sea, dark from above, pale from below.

The jaws

The snout and upper jaw are swung up about the corner of the mouth, and the lower jaw ends in a U under the overhanging snout. The lower jaw has a muscle: the tetrahedra across the corner of the mouth have their rest shapes bent, so the jaws breathe slowly half-open; a bite gapes wide, then snaps shut and sends the head lunging forward. Along both jaws stand — triangular blades of sugar — broad above, narrower below — each row backed by a second, smaller row lying folded back, as a shark’s replacement teeth wait their turn.

The tail, and where it looks

A second muscle bends the whole body in the plane of the table: the curvature of the spine is changed by a travelling wave and by a steady turn, and the body is rebuilt round the bent spine, each section turned about its own point on it, pivoting near the pectoral fins. At rest the tail sways slowly and the head swings toward your pointer (or a fish lying near it), the tail a little the other way; Thrash sends a hard wave down the body, side to side, a few beats of a tail on dry land.

Feeding

Each gummy fish is a small rigid body: it flies and tumbles as a ball, lands on the shark through the same tetrahedra and trades momentum with the jelly it hits, and on the table it slides and topples onto its side rather than rolling. One that comes to rest between the jaws sets off a bite; as the jaws close it is swallowed, and rides in the stomach from then on, visible through the slate jelly above the milky belly. The — trapped bubbles are kept clear of it.

Light through jelly

three.js on WebGL 2, with every pass a hand-written shader: a key-light shadow map and a top-down height map for contact shading; the table, the milky belly, the eyes, teeth, bubbles and fish into a 4× MSAA half-float target; the shark’s back faces for thickness; then the front faces refract what lies behind by that thickness and absorb it with Beer–Lambert colour, so the thin fins glow where the light comes through them. The five gill slits on each side, the pores on the snout and the inside of the mouth are drawn from coordinates carried on the body itself, so they stretch with the jelly. Khronos PBR Neutral tone mapping finishes the frame.