A page where you steer one drop across glass
A page on the site where you push one drop of water across a pane with the arrow keys or a controller. It runs on the same water simulation as the rain, drawn at nearly five times the site's scale.
In this piece
On 10 October I added a page where you control a drop of water with the arrow keys or a controller. It is one pane of glass over a photograph, raining, with one drop yours.
You push it with the keys, but it is still water on glass: it merges with what it meets, grows heavier, lets go and runs, and leaves a trail. Run it off the bottom and you're given a new one.
Speed, scale and gravity
The first speed was far too fast, so I cut it to about 15% of what it had been. I wanted the camera close enough that the world feels big, the way it would to a drop of water, so the page draws the glass at 24 pixels a millimetre, nearly five times the site's scale, and the view follows your drop.
On 11 October I stopped the controlled drop from falling downwards on its own. Your push now stands in for gravity while you press, and when you don't, the glass's grip holds the drop still.
A light inside the drop
Hold the pointer or the space bar and a glow charges inside your drop. When it's full it stays lit; double-click puts it out. That light lives in the glass's own plane, so the water sees it edge-on, and it lights the glass, the water round it and the shadows. It was cheap to add, because the light system already existed.
Sources and notes (3)
- Drop page — the notes this was written from
- Rain system design — the notes this was written from
- Wind code — the notes this was written from
Water, rain & windAll 11 parts →
