
Making maps with noise functions (2022)
created: May 29, 2025, 3:32 a.m. | updated: June 2, 2025, 5:55 a.m.
Noise # A common way to generate 2D maps is to use a bandwidth-limited noise function, such as Simplex or Perlin noise, as a building block.
Since noise can go from 0 to 1, the sum 1 * noise() + 0.5 * noise() + 0.25 * noise() can go from 0 to 1.75.
Let’s create a second noise map for “moisture”: Elevation noise on left; moisture noise on right Now let’s use both elevation and moisture.
It might also be interesting to mix ridged low frequency noise with non-ridged high frequency noise.
For this simple project it doesn’t matter that much whether you use Simplex noise, OpenSimplex noise, Perlin noise, value noise, midpoint displacement, diamond square[21] displacement, or an inverse Fourier transform.
1 week, 4 days ago: Hacker News