Something went wrong. Try again.
My website. cameron.stream
Something went wrong. Try again.
Commits on tide-pool-ripples
Merge the tide pool's lived-in opening, captions, and colours. tide-pool-ripples
Cameron committed
Cameron 93d3fb7c Open the tide pool on a shelf that has lived a few tides: borers' pools dug down the shore, an artificer's structure standing in the first pool, a beacon and gates finished, the builders already at work, mid-afternoon with the tide going out and dusk a minute away, on a chosen shelf unless the address names another. While the view wanders on its own, a line under it says what it has found and what the machines in it are doing. Each kind of machine has its own colour on its body and in its eyes, the rock is paler by day, and the view opens closer with less of it blurred.
Cameron committed
Cameron f2b053f4 Give the tide pool real foam and wet rock: foam forms where water runs fast over the shallows, where a surge climbs the rock, where the surface steepens, and along a moving waterline, lingers as torn, bubbly patches and drains off the rock the water leaves; and rock the tide has just uncovered glistens with beads of water that catch the sun or moon, fading as it dries.
Cameron committed
Cameron 6a2b0d70 Let the tide pool's floor be seen through its water: the solid scene is drawn first and copied with its depth, and the water shows it shifted where the surface slopes, so the floor, the fish and anything standing in the water sway under the ripples; it switches itself off on phones and whenever frames run slow.
Cameron committed
Cameron d62e4830 Make the tide pool much cheaper to draw: the glow, the miniature's blur and the tone mapping take four passes instead of seventeen, shadows are read with four taps instead of sixteen, lamps and the visitor's light cost nothing while they are out, the sun's shadows are redrawn every other frame and the visitor's light's only while it is held, the rock is coarser far from the shelf, the water's surface skips dry rock, only the instances in use are sent each frame and empty meshes are left out, and the resolution eases further on slow machines.
Cameron committed
Cameron 58f03b3f Let the tide pool's view turn, and gather its controls: Q and E, a right-drag, or a two-finger twist turn it and a compass turns it back; R and F zoom; Z and X choose what to drop and Space drops it where you point; every key works from anywhere on the page; a double tap zooms in; buttons step between machines; a map of the whole shelf shows where you are and takes you where you tap; and a settings sheet lists the keys and turns the idle wandering, edge scrolling, and the map on or off.
Cameron committed
Cameron 18710049 Make the tide pool's water physical to look at: its surface is a wave simulation on the graphics card, after Tessendorf's iWave, so drops, swimmers, waders and the wind raise ripples and wakes that spread with deep water's dispersion and bounce off the rock, and the floor is lit by caustics worked out from that surface, as Evan Wallace's WebGL water does; the drawn caustics, ripple rings, sine ripples and light sheen are gone, foam lies in torn patches where waves break, and lamps and the visitor's light are real lights, bright cores that bloom, with the visitor's light casting shadows.
Cameron committed
Cameron de82fd40 Let the tide pool's water move its sand: loose sand lies in the hollows and gullies and wherever borers heap their spoil, fast water lifts it and carries it and slow water lets it fall, so gullies scour, spoil heaps wash out and storms rearrange the shore, with the sand drawn pale and smooth where it lies.
Cameron committed
Cameron committed
Cameron cd43a030 Simulate the tide pool's water as it moves: the sea comes in over a new rocky shore that slopes to it, with ribs, cracks, gullies, boulder fields and a rock sill round the first pool, flooding up the gullies and over the pool's lip as the tide rises and draining away as it falls, while a swell rolls in and breaks into drifting foam. Tabs keep a home pool and swim back to it as the tide turns, and borers settle where the tide reaches so their burrows become pools.
Cameron committed
Cameron 014025c2 Make the tide pool's nights readable: a clear cool moonlight with the view's exposure adjusting to the dark, every machine's lamp lit with a small halo so the life shows as moving lights, and the visitor's light turned into a glowing ball that floats over rock and water alike, rising over each rock, lighting what is around it, and fading in and out.
Cameron committed
Cameron 6b963fcc Open the tide pool from a loading screen of the site's ring and title, where water rises in the ring as the pool loads and the view then opens out of it like a ripple while the title settles into place; if the browser drops the 3D view, show the ring again and bring the pool back when it returns instead of falling back to the still picture, use less graphics memory on phones, and bring the optional browser test up to date.
Cameron committed