0

I am trying to make a procedurally generated map for a simple game using perlin noise however the values my code generate are not within the range 1 to 0 (instead between roughly 0.67551124892814 and -0.6645648410109002). Is there something I should do to fix this / use a different library? Here is my code if it helps which runs a very simple version of perlin noise:

def noise_gen():
    width = 100
    height = 100
    noise = PerlinNoise(octaves = 3)
    noise_map = []
    for x in range (width):
        row = []
        for y in range (width):
            noise_value = noise((x / width, y / height))
            row.append(noise_value)

        noise_map.append(row)
     
    return noise_map
Barbara Gendron
  • 385
  • 1
  • 2
  • 16

0 Answers0