All examples · Experiments · As Markdown, for AIs

Bottles

What this example shows

Bottles of drink that slosh. The liquid keeps its volume however the bottle turns, its surface lies across the gravity it feels and overshoots on a spring, ripples while it moves and foams at the glass, and a soda fizzes: bubbles rise, gather on the surface and burst.

Each bottle is turned from one profile with useLatheGeometry, its shaders written once with the shader composer for both cards. The surface is one sheet seen from both sides (cull: 'none'), cut to the inside of the bottle by where each of its corners is in it, handed on with carry, and the liquid above its level is cut away with alphaCutoff. Drag to turn it; two fingers or the right button move it; the arrows switch bottles.

Starting
Starting
—