Drag to orbit, scroll or pinch to zoom. Light, colour and fog follow the Beer-Lambert model: red fades first, deep water goes dark.
The science
Light
Beer-Lambert: I(z) = I0 exp(-Kd z), with Kd = Kw + Kt + kb B / H: clear water, turbidity, and kelp self-shading (column mean). In the picture each colour channel fades with its own coefficient (red 1.9x, green 1.0x, blue 0.7x of Kd), as in real seawater. Kelp at depth H grows only when the light reaching it, Ib = I0 exp(-Kd H), is above the compensation level Ic; the growth limit is Lg = (Ib - Ic) / (Ik + Ib - Ic).
Kelp, urchins, otters
dB/dt = r Lg B (1 - B/K) - a U B/(h + B) (logistic growth minus type-II grazing).
dU/dt = ru U (1 - U/Ku) B/(B + hu) - mu U - co O U/(s + U) + eps (urchins fed by kelp, background loss, otter predation, and larvae arriving from elsewhere). B kg/m2, U per m2, otters O per hectare, time in years. Integrated with 4th-order Runge-Kutta, step 0.02 yr. The scene shows one square metre's state spread over a 20 m meadow: the number of fronds follows B, the urchins follow U, the otters follow O.
What to look for
Because larvae keep arriving, an urchin barren is a second stable state. Remove the otters and the forest flips to barren; bring them back and the barren does not recover until otters pass a higher threshold than the one that lost the forest (hysteresis). Murky or deep water raises the light needed to keep the forest alive.
Honest simplifications
One well-mixed square metre with no waves, seasons or kelp age structure and a fixed otter density. Parameters are plausible round numbers chosen to show the mechanism, not fitted to a coast. Otters and fish are drawn larger than life so they can be seen; fronds are stretched copies of one Blender model. A small spore bank (0.01 kg/m2) lets kelp return once grazing stops. The sway is decorative.
Models and textures built in Blender; rendered with Three.js.