{"id":120,"date":"2026-11-25T19:08:16","date_gmt":"2026-11-25T23:08:16","guid":{"rendered":"https:\/\/the-algorithmist.com\/?p=120"},"modified":"2026-11-25T19:08:17","modified_gmt":"2026-11-25T23:08:17","slug":"terrafractal-part-4-constraints-and-the-grid-is-only-the-output","status":"publish","type":"post","link":"https:\/\/the-algorithmist.com\/index.php\/2026\/11\/25\/terrafractal-part-4-constraints-and-the-grid-is-only-the-output\/","title":{"rendered":"TerraFractal, part 4: constraints, and the grid is only the output"},"content":{"rendered":"\n<p>After noise, I tried building the landscape from structures. Not &#8220;add bumps and fix the rivers&#8221;, but &#8220;decide where the crests, divides and rivers are, then make ground that fits them&#8221;.<\/p>\n\n\n\n<p>I called these constraints. A ridge crest is a constraint: the ground peaks along this line. A river is a constraint: the ground falls along this line, all the way to the sea. A volcano, a crater, an escarpment, a basin: each a shape with rules about what it may cross and what may cross it. The tiles stop being where things are decided and just store the result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The grid is only the output<\/h2>\n\n\n\n<p>My first structure layer built ranges, drainage zones and divides on the simulation&#8217;s grid. The divides came out as hexagon staircases, and some crests didn&#8217;t actually divide anything.<\/p>\n\n\n\n<p>The simulation&#8217;s real record is the particles, the markers that carry the crust. The grid is just how it&#8217;s displayed. Rebuilding everything from the marker positions, the divides followed the crust instead of the grid, and the river trees came out as trees.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-drainage-zones.jpg\" alt=\"Drainage zones and their river trees, built from the crust markers\" class=\"wp-image-89\" srcset=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-drainage-zones.jpg 900w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-drainage-zones-300x300.jpg 300w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-drainage-zones-150x150.jpg 150w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-drainage-zones-768x768.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">Drainage zones and their river trees, built from the crust markers. Each colour is one zone draining to one outlet.<\/figcaption><\/figure>\n\n\n\n<p>That lesson stuck: build from whatever is the real source, and treat any grid as a view of it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Only pushing down<\/h2>\n\n\n\n<p>The next surface interpolated between the river levels and the ridge levels. It produced 55-60 km bowls at the heads of rivers, and plateaus and escarpments everywhere, worst in the mountains.<\/p>\n\n\n\n<p>The cause: every constraint I&#8217;d added pushed the ground down. Rivers, valleys, smoothing. Nothing pushed it up. Real landscapes are a balance between things that build up (folding, uplift, volcanoes, hard rock resisting erosion) and things that wear down (rivers, ice, slope failure). With only one side, the ground collapses toward the rivers.<\/p>\n\n\n\n<p>So I added upward constraints from the tectonics: fold belts, peaks, spurs, child ranges, volcanoes. Each one has to leave the rivers a way through, either a gap or a gorge.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-structure-surface.jpg\" alt=\"A landmass surface built from constraints, with its river network\" class=\"wp-image-90\" srcset=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-structure-surface.jpg 900w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-structure-surface-300x300.jpg 300w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-structure-surface-150x150.jpg 150w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/constraints-structure-surface-768x768.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">A landmass surface built from constraints, with its river network. The mountains have structure; the lowlands have almost none.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Mountains as trees<\/h2>\n\n\n\n<p>The mountains got their own design: a range as one object carrying its own fractal, a tree of ridges, spurs off the ridges and spurs off the spurs. Its valleys are the gaps between neighbouring spurs, so a valley can never cross a ridge. They&#8217;re creases, not trenches. Nothing has to carve them.<\/p>\n\n\n\n<p>That worked in a flat test sandbox. It&#8217;s still the best idea I&#8217;ve had for mountains, and parts of it live on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where it stalled<\/h2>\n\n\n\n<p>Two problems showed up together.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Outside the mountains there was nothing to negotiate with.<\/strong> The river network was solved on an almost featureless lowland surface. Of about 1,500 river outlets off the ranges, around 800 stalled in shallow dimples in the base surface.<\/li>\n\n\n<li><strong>Most of the work was bookkeeping.<\/strong> Tile handovers, matching borders, deciding who owned a feature that straddled two tiles, checking margins. None of that was geology. It existed only because structure was built at one resolution and then had to agree with its neighbours.<\/li>\n\n<\/ul>\n\n\n\n<p>The fix for the first looked like more structure in the lowlands, built alongside the rivers, scale by scale. That&#8217;s co-refinement, part 5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After noise, I tried building the landscape from structures. Not &#8220;add bumps and fix the rivers&#8221;, but &#8220;decide where the crests, divides and rivers are, then make ground that fits them&#8221;. I called these constraints.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":89,"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\/120"}],"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=120"}],"version-history":[{"count":1,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":130,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions\/130"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media\/89"}],"wp:attachment":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}