{"id":121,"date":"2026-11-25T19:11:24","date_gmt":"2026-11-25T23:11:24","guid":{"rendered":"https:\/\/the-algorithmist.com\/?p=121"},"modified":"2026-11-25T19:11:25","modified_gmt":"2026-11-25T23:11:25","slug":"terrafractal-part-5-co-refinement-and-why-negotiation-never-finishes","status":"publish","type":"post","link":"https:\/\/the-algorithmist.com\/index.php\/2026\/11\/25\/terrafractal-part-5-co-refinement-and-why-negotiation-never-finishes\/","title":{"rendered":"TerraFractal, part 5: co-refinement, and why negotiation never finishes"},"content":{"rendered":"\n<p>If the rivers had nothing to negotiate with in the lowlands, the answer seemed to be: grow the features and the rivers together.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The plan<\/h2>\n\n\n\n<p>At each scale, starting from the largest:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Add that scale&#8217;s features: the next tier of ridges and spurs, the next octave of relief.<\/li>\n\n\n<li>Solve the drainage at that scale against all of them at once. Coarser rivers are fixed. Same-scale features and rivers push and pull until they fit.<\/li>\n\n\n<li>Add divides between the sibling rivers.<\/li>\n\n\n<li>Go one scale smaller and repeat.<\/li>\n\n<\/ol>\n\n\n\n<p>The hope was that each round would leave a smaller mismatch between the drainage and the relief, until at some scale the mismatch was small enough to brute-force away inside each tile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What happened<\/h2>\n\n\n\n<p>It never got there. Each round shrank the mismatch and left one.<\/p>\n\n\n\n<p>In every round the relief came first and the drainage was a correction to something that didn&#8217;t know about it. Every correction created its own small mismatch at the next scale down. And a drainage solve is the opposite of something you can compute anywhere at any scale: it needs the whole neighbourhood at a fixed resolution before it can answer for any one point.<\/p>\n\n\n\n<p>Pieces of it worked. Breaching dams where trapped water would break out in the worst floods, not just where evaporation balanced. Continental divides as the highest path between coasts. Separating &#8220;this line must drain to the sea&#8221; (a rule with a position) from &#8220;this is the shape of the channel&#8221; (which needs the water volume and the rock, only known later). But the overall approach was stuck.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The diagnosis<\/h2>\n\n\n\n<p>Stepping back, the pattern across all three attempts was the same. I kept doing deliberate modelling inside a grid with a fixed resolution, then needing careful negotiation between tiles and between levels to make the pieces agree.<\/p>\n\n\n\n<p>The alternative is to describe the terrain as mathematical functions that can be calculated at any position, at any precision, with no negotiation. A function doesn&#8217;t have neighbours. Ask it about a point and it answers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"800\" src=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/diagram-grid-vs-function.jpg\" alt=\"The same terrain stored on a grid (top) and evaluated as a function (bottom)\" class=\"wp-image-93\" srcset=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/diagram-grid-vs-function.jpg 1200w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/diagram-grid-vs-function-300x200.jpg 300w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/diagram-grid-vs-function-1024x683.jpg 1024w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/diagram-grid-vs-function-768x512.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">The same terrain stored on a grid (top) and evaluated as a function (bottom). Zooming into the grid only blurs what was stored. The function keeps producing detail, and two neighbouring tiles asking about the same point get the same answer.<\/figcaption><\/figure>\n\n\n\n<p>That doesn&#8217;t remove the drainage problem. Water still needs the whole basin to know where it goes. But it shrinks the part that needs a solve to one place: once, at the landmass scale. Below that, everything should be a function of position plus what was handed down.<\/p>\n\n\n\n<p>That&#8217;s the current approach, part 6.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the rivers had nothing to negotiate with in the lowlands, the answer seemed to be: grow the features and the rivers together. The plan At each scale, starting from the largest: The hope was&hellip;<\/p>\n","protected":false},"author":1,"featured_media":93,"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\/121"}],"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=121"}],"version-history":[{"count":1,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions\/131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}