{"id":123,"date":"2026-11-25T19:15:02","date_gmt":"2026-11-25T23:15:02","guid":{"rendered":"https:\/\/the-algorithmist.com\/?p=123"},"modified":"2026-11-25T19:15:02","modified_gmt":"2026-11-25T23:15:02","slug":"terrafractal-part-7-making-rivers-agree-with-the-ground","status":"publish","type":"post","link":"https:\/\/the-algorithmist.com\/index.php\/2026\/11\/25\/terrafractal-part-7-making-rivers-agree-with-the-ground\/","title":{"rendered":"TerraFractal, part 7: making rivers agree with the ground"},"content":{"rendered":"\n<p>With the function-first design in place, the test became simple: stand in a stream and look. The first time I did, the water surface stepped up and down between tiles, ran uphill, and stood on the banks above the stream.<\/p>\n\n\n\n<p>The water was only where the problem became visible. A river has several descriptions that all have to be the same thing:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>its line, as the landmass flood laid it and as each tile level moved it;<\/li>\n\n\n<li>its bed heights, which must fall all the way and meet at junctions;<\/li>\n\n\n<li>the ground the tiles draw;<\/li>\n\n\n<li>the pull, which keeps finer relief off the river&#8217;s line;<\/li>\n\n\n<li>the carve, which cuts the ground down to the bed;<\/li>\n\n\n<li>and the water drawn on top.<\/li>\n\n<\/ul>\n\n\n\n<p>They disagreed at every level, starting before the first tile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">One rule per river, per level<\/h2>\n\n\n\n<p>At every level, every river has to satisfy one of three things: it can&#8217;t go any lower (its bed is the lowest way through), or there&#8217;s a lake or pond holding it, or the ground has been pulled or carved so the bed is the lowest point. If none hold, something upstream in the process is wrong, and that&#8217;s where to fix it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Four grounds for the same water<\/h2>\n\n\n\n<p>Tracing failures back, most came down to one thing. Different stages read different grounds. The landmass flood routed water over heights taken from the crust markers. The rift lakes used an idealised shape of the rift. The tiles drew the ground function. Each was a reasonable approximation. Together they meant a river laid at one height could arrive on ground drawn 350 m lower, with no lake to explain it.<\/p>\n\n\n\n<p>Every patch reconciling them, raising a spill here, capping a pool there, was treating a symptom. The fix was one ground. Every stage that routes water now reads the same ground function, at its own resolution. The markers only feed that function and the things that aren&#8217;t height: rain, rock, frozen ground.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"700\" src=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/rift-lakes.jpg\" alt=\"Rift lakes as shapes in the ground function\" class=\"wp-image-111\" srcset=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/rift-lakes.jpg 700w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/rift-lakes-300x300.jpg 300w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/rift-lakes-150x150.jpg 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\">Rift lakes as shapes in the ground function: tapered ovals with wide sills, so the flood and the tiles see the same lake.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Drawing the water<\/h2>\n\n\n\n<p>Water first lived on the mesh&#8217;s points, so a narrow stream showed up as a row of dots. Now it&#8217;s drawn along the stream&#8217;s line as a ribbon, and as a sheet where streams widen. One junction where a river &#8220;fell apart&#8221; turned out to have four separate causes. The ground under it was right every time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lakes: a level and a loop<\/h2>\n\n\n\n<p>An earlier attempt found a lake&#8217;s level by tracing its shoreline on the fine ground. It just moved the problem to a smaller scale. Now the level comes from the flood, and the lake gets a closed loop at that height that the tiles inherit like a river. Outside the loop must stay above the water everywhere except at the outlet. Tiles can nudge the loop in or out to fit their ground, but not the level.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What I&#8217;ve learned along the way<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Ask whether a failure is a symptom first.<\/strong> Most of my wrong fixes were fixes in the right place for the wrong problem.<\/li>\n\n\n<li><strong>Judge each stage only on what it can see.<\/strong> A 30 km flood can&#8217;t know about a 2 km ridge. That ridge is the tile&#8217;s job, not a flood failure.<\/li>\n\n\n<li><strong>Inherited, never searched.<\/strong> If a tile needs to look at its neighbour, something upstream is leaking past its border or the handover dropped something.<\/li>\n\n\n<li><strong>The rivers guide; they don&#8217;t shape.<\/strong> A river says where a channel goes. It shouldn&#8217;t lower the land for kilometres around it.<\/li>\n\n\n<li><strong>Small mistakes pile up.<\/strong> A tiny mismatch handed down 17 levels became visible as spikes on a riverbank. Each level must hand down exactly what it used.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Where it stands<\/h2>\n\n\n\n<p>The first two tile levels now pass a structural audit everywhere I&#8217;ve tested: rivers fall, junctions meet, tiles agree at their corners. There are still places where the ground stands well above a river and nothing explains it, and those are next. After that comes small-scale relief that depends on where you are. Right now, ground without a special feature has no relief smaller than about 5 km. The plan is detail driven by what&#8217;s actually there: smooth and rounded where sediment piles up, sharpest in semi-arid ground, streaked along the wind, and truly flat only on dry lake beds. It only ever adds height, so it can&#8217;t dig new pits. Not one noise everywhere.<\/p>\n\n\n\n<p>It&#8217;s taken several redesigns to get here. Each one taught me something the next one needed.<\/p>\n\n\n\n<p>The next three posts leave the plumbing and look at what sits on it: the landforms, the weather and the forests.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the function-first design in place, the test became simple: stand in a stream and look. The first time I did, the water surface stepped up and down between tiles, ran uphill, and stood on&hellip;<\/p>\n","protected":false},"author":1,"featured_media":111,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,26],"tags":[],"_links":{"self":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media\/111"}],"wp:attachment":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}