Devlog

, Built, Looks

It looked a little like jelly

The sea was flat facets, the river met it in a zigzag, and nothing in the water ever noticed a stone. So the one thing on a low-poly island that isn't low-poly anymore is the water.

0 wished for this

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.

Before: the sea's facets, big flat triangles tipping in the lightAfter: smooth ripples, the low sun glinting on them
The same beach, the same moment, the sun low

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:

Before: the lake in flat facets, like a tiled floorAfter: the same lake, smooth, with a breeze on it
A lake that used to look like a tiled floor

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:

Before: a straight cut and a zigzag of foam where the river meets the seaAfter: the river running out into the sea as one water
Before, you could see exactly where the river ended

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.

Before: round ripples, their glints in blobsAfter: narrow crests, the glints ending in points
Jelly, and not jelly

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.

Before: flat white plates in front of a ford's stepping stones, the stream running on as if nothing was thereAfter: white water piled against the stones, foam trailing off behind them
The stream runs from right to left. Finally, it noticed

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.

A storm: on the left as it was, on the right the waves changing shape and breaking white

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.

    Join in

    Join the island

    One account for all of it: a say under every devlog post, a wish for the ideas you'd like built, letters from the workshop now and then, and a place in the playtest to ask for, before everyone else. A code to your address signs you in, no password to keep.

    Joined already? The same address signs you in.