{"id":26,"date":"2012-09-04T22:12:32","date_gmt":"2012-09-04T22:12:32","guid":{"rendered":"http:\/\/www.moron-o-tron.com\/?p=26"},"modified":"2012-09-04T22:12:53","modified_gmt":"2012-09-04T22:12:53","slug":"making-mountains","status":"publish","type":"post","link":"http:\/\/www.moron-o-tron.com\/?p=26","title":{"rendered":"Making Mountains"},"content":{"rendered":"<p>In the spirit of actually getting to gameplay and making it look good (not necessarily in that order), I put together a spline-based mountain\/volcano generator. \u00a0The first results were encouraging but rather sterile:<\/p>\n<div id=\"attachment_27\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-spline-2012-08-29.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-27\" class=\"size-medium wp-image-27\" title=\"terrain-island-spline-2012-08-29\" src=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-spline-2012-08-29-300x193.png\" alt=\"Initial results for spline based terrain feature creation.\" width=\"300\" height=\"193\" srcset=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-spline-2012-08-29-300x193.png 300w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-spline-2012-08-29-1024x662.png 1024w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-spline-2012-08-29.png 1296w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-27\" class=\"wp-caption-text\">First attempt. Recognizable but too smooth.<\/p><\/div>\n<p>In order to make it look a bit more natural, I added a couple of sets of simplex noise based offsets to the spline data. \u00a0Looking better:<\/p>\n<div id=\"attachment_28\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-2012-08-29.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-28\" class=\"size-medium wp-image-28\" title=\"terrain-island-height-noise-2012-08-29\" src=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-2012-08-29-300x193.png\" alt=\"More variation but still not a good looking play-scape.\" width=\"300\" height=\"193\" srcset=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-2012-08-29-300x193.png 300w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-2012-08-29-1024x662.png 1024w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-2012-08-29.png 1296w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-28\" class=\"wp-caption-text\">Added some noise. Looks more like what I&#8217;m after but needs adjustment.<\/p><\/div>\n<p>I considered adjusting the spline interpolation itself using another set of 1-d noise to be applied according to the angle from a reference angle to make it a bit less circular. \u00a0I may still do that in the future but I was able to get a proto-typable level just by adjusting the spline control points:<\/p>\n<div id=\"attachment_29\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-spline-adjusted-2012-09-04.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-29\" class=\"size-medium wp-image-29\" title=\"terrain-island-height-noise-spline-adjusted-2012-09-04\" src=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-spline-adjusted-2012-09-04-300x193.png\" alt=\"Add noise, adjust the &quot;beach&quot; area of the spline a bit, and voila!\" width=\"300\" height=\"193\" srcset=\"http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-spline-adjusted-2012-09-04-300x193.png 300w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-spline-adjusted-2012-09-04-1024x662.png 1024w, http:\/\/www.moron-o-tron.com\/wp-content\/uploads\/2012\/09\/terrain-island-height-noise-spline-adjusted-2012-09-04.png 1296w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-29\" class=\"wp-caption-text\">Expanding the distance between the mountain base and shoreline made a lot of difference.<\/p><\/div>\n<p>Next up is getting a smooth surface fitted to the data for both the mountain generator and the previous abstract terrain generator. \u00a0Then comes feature (forest, cave, resource) generation followed by a better camera with collision detection.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the spirit of actually getting to gameplay and making it look good (not necessarily in that order), I put together a spline-based mountain\/volcano generator. \u00a0The first results were encouraging but rather sterile: In order to make it look a bit more natural, I added a couple of sets of simplex noise based offsets to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-terrain_engine"],"_links":{"self":[{"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":2,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":31,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/31"}],"wp:attachment":[{"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moron-o-tron.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}