Little Shores is low-poly, and I want it to stay that way. Houses, trees, hills, cows, all of it catches the light in flat little faces. And for a long time, so did the water.
In October I already went over the sea twice. First its colour. The deep blue was just painted onto the surface, like a coating, and once you looked across the shallows towards the horizon you could tell. Whales, sharks, the bottoms of ships: in deep water you saw none of it. So now the water looks through itself to the floor and gets its colour from there.
Then the waves. They come in sets, a few bigger ones every half minute, break, run up the beach and leave the sand wet. They burst on the rocks and the reefs. (In my test scene they also ran straight through a shipwreck, as if it wasn't there. Fixed.) And I kept them faceted, on purpose, because low-poly.
Then I reworked the wake behind the ships. It was always perfectly straight, so when a ship turned, the whole wake swung around with it. Fixed too. But I had been staring at the water for so long by then that I couldn't unsee the rest of it.


SO: the facets go. Only on the water. The land and everything on it stays as it is.
Half a millisecond
I was fine with a small hit on the graphics card, half a millisecond a frame at most, and nothing for the rest of the computer.
The obvious way to make ripples is to work them out for every single pixel of water. Beautiful, and 1.3 milliseconds. Way too much. So they're drawn once into one small tile, and the water just reads from it, twice. That's 0.4 to 0.5 milliseconds. Looking right into a low sun it's more like 0.7, because every little glint costs something, and I let that one pass. It's the moment you want to look at anyway.
The lake shows best what it did:


The foam had to follow. At first it didn't reflect anything, so it lay on all that glinting water like a piece of paper. Now it rides on the ripples under it and glints with them.
Where the river ends
This was the part I disliked most. A river and the sea were two separate surfaces, stuck into each other on the beach:


Now a river turns into the sea on its way across the beach, and the sea makes room for it. Same for streams into ponds, and ponds into rivers.
Waterfalls that land on a beach didn't like that at all. Their pools always lie close to the coast, so by the new rule they WERE the sea, and a white patch of surf appeared in the middle of the sand. So a pool stays stream water until it has really reached the shore.
And the edges went soft. Very shallow water is just clear now, and the ground beside it is wet.
Jelly
With all that done I looked at the sea close up, and it looked... a little like jelly. Round, soft, wobbly.
Real waves aren't round. Their crests are narrow and their troughs are wide, and mine had exactly as much of one as of the other. So the waves lean into their crests now. Two other tries went out again: smaller glints just made the sea look emptier, and waves all running one way made it look like a quilt.


Water that notices things
A river ran through the stones of a ford as if they weren't there, with a few flat bits of white foam stuck in front to pretend otherwise. Now it bends around them, piles up white in front and trails foam behind. Same for bridge posts and jetties.
The first try laid a second sheet of water over the first one around every stone, and standing next to a ford that cost 0.7 milliseconds. More than all the ripples together! So the water around a stone gets cut out and laid again instead, and that costs next to nothing.


One thing still bugged me. The waves moved, but they never changed. It was the same tile, sliding along, forever. So the tile is now drawn anew every frame, each wave in it at its own pace, the long ones faster. That costs 0.05 milliseconds. And because the wind sets the clock, water is slow in a calm and two to three times as fast in a storm, with whitecaps that break and leave their foam behind.
The small stuff
Last, everything that holds a bit of water: fountains, wells, basins, troughs. About forty of them, just painted blue so far. There's a test that looks for anything flat and water-coloured that isn't water yet, and it has a list of ten bluish things that are allowed to just be blue.
What still is painted: water that falls. A fountain's jets, for example.
And the village at the top of the home page? Filmed one day before I started on all this. So for now it still has the old sea.



Comments 0
Join to comment: with your address and a code, kept to the house rules.
No comments yet.