Description

A map generating script primarly using the perlin noise equations. This program utilizes a the 2d perlin noise equation to generate topographic values in a 2d list. These values are normalized and assigned a “color output” depending on their value (for example, a low value would mean blue or water, while a high value might be grey for mountains). This program also uses poisson disc sampling to randomly generate trees across the landmasses. Due to the nature of the calculations, the program is relatively slow (requires ~2-3 seconds to launch); this is partly due to the resolution of the image, and partly due to the constantly generating/updating cloud layer.

Github Repository

The Github repository can be found here

What were my goals with this project?

  • Create a visually pleasing and effective map generator
  • Utilize complex numpy operations to practice list/array manipulation
  • Work and implement algorithms and equations such as perlin noise and poisson disc sampling.

Project Images

perlinmap2.png

perlinmap3.png

Dependencies

  • pygame
  • noise
  • numpy
  • bridson.poisson_disc_samples