Jolly [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=26356 Terrain Generation - No Perlin Noise! <p> <table><tr><td> <a href="/bbs/?pid=82493#p"> <img src="/bbs/thumbs/pico8_terrain_generation_no_noise-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=82493#p"> terrain_generation_no_noise</a><br><br> by <a href="/bbs/?uid=26356"> Jolly</a> <br><br><br> <a href="/bbs/?pid=82493#p"> [Click to Play]</a> </td></tr></table> </p> <p>After many months of trying and failing to understand how to implement noise (Perlin or otherwise), I decided to simply try to write terrain generation for myself. Using the basics of noise, I began with a completely random map of numbers which I then iterate through. Each individual number takes the average of those around it. Repeating this a few times gives a relatively terrain-like map. I then simply changed numbers into number 1-16 so they would match Pico's color scheme and assigned certain numbers colors to make it look like mountains and grass.</p> <p>The main function giving the rounded feel is named Noise(). The second value is roughly equivalent to octaves in Perlin noise (I named it &quot;times&quot;). By increasing or decreasing the number, you end up with a less or more noisy image.</p> https://www.lexaloffle.com/bbs/?tid=39792 https://www.lexaloffle.com/bbs/?tid=39792 Thu, 01 Oct 2020 15:41:44 UTC