<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>River on Nathaniel Inman</title><link>https://nathanielinman.com/tags/river/</link><description>Recent content in River on Nathaniel Inman</description><generator>Hugo -- 0.147.7</generator><language>en-us</language><copyright>Nathaniel Inman</copyright><lastBuildDate>Sun, 18 Feb 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://nathanielinman.com/tags/river/index.xml" rel="self" type="application/rss+xml"/><item><title>Carving Terrain Like Water</title><link>https://nathanielinman.com/carving-terrain-like-water/</link><pubDate>Sun, 18 Feb 2024 00:00:00 +0000</pubDate><guid>https://nathanielinman.com/carving-terrain-like-water/</guid><description>&lt;p>A few years back I wrote a handful of posts about faking water on top-down maps: &lt;a href="https://nathanielinman.com/generating-2d-rivers/">generating 2d rivers&lt;/a>, &lt;a href="https://nathanielinman.com/generating-cliffs-for-2d-game/">cliffs&lt;/a>, and an &lt;a href="https://nathanielinman.com/generating-exhumed-river-channel/">exhumed river channel&lt;/a>. Those one-off experiments eventually grew into a proper map library I&amp;rsquo;ve been maintaining called &lt;code>compass&lt;/code>. Revisiting them now is fun because real-world geology already solved the &amp;ldquo;make it look natural&amp;rdquo; problem ages ago. I just borrow the names and loosely approximate the process. Here are three of the fluvial generators and how they actually work.&lt;/p></description></item><item><title>Generating Exhumed River Channel</title><link>https://nathanielinman.com/generating-exhumed-river-channel/</link><pubDate>Mon, 06 Aug 2018 00:00:00 +0000</pubDate><guid>https://nathanielinman.com/generating-exhumed-river-channel/</guid><description>&lt;p>I recently did some work in generating rivers in a 2d game. Revisiting this work to create an exhumed river channel, I decided it might be fun to revisit how to generate it to make the channel look more realistic. Instead of using a drunken walker, this is a more expensive but interesting map generator:&lt;/p>
&lt;ul>
&lt;li>Start by generating 2d simplex noise where&lt;/li>
&lt;li>less &amp;lt;0.6 is floor&lt;/li>
&lt;li>rest is walls&lt;/li>
&lt;li>Generate terminal lines at each map exit (north, south, east, west). Shuffle those lines and randomly choose a start and end location for the river based on two of those lines.&lt;/li>
&lt;/ul>
&lt;p>Later you can add another line with terminal point to allow a split river channel&lt;/p></description></item><item><title>Generating 2d Rivers</title><link>https://nathanielinman.com/generating-2d-rivers/</link><pubDate>Wed, 11 Jul 2018 00:00:00 +0000</pubDate><guid>https://nathanielinman.com/generating-2d-rivers/</guid><description>&lt;p>Rivers are really hard to generate for 2d top-down games for multiple reasons:&lt;/p>
&lt;ul>
&lt;li>Rivers primarily form based on heightmaps which are hard to display in top-down&lt;/li>
&lt;li>Displaying fluidity when working with sectors or grid-based rendering can be complicated, bresenham&amp;rsquo;s line algorithm only goes so far to make things look smooth&lt;/li>
&lt;li>naturally occurring mechanisms of nature have numerous factors in play that caused them to exist. Simulating all of these factors isn&amp;rsquo;t reasonable.&lt;/li>
&lt;/ul>
&lt;p>I was able to make relatively decent 2d rivers using a few techniques.&lt;/p></description></item></channel></rss>