perlin-noise

How to generate perlin noise in pygame?

How to generate perlin noise in pygame? Question: I am trying to make a survival game and I have a problem with perlin noise. My program gives me this: But I want something like islands or rivers. Here’s my code: #SetUp# import pygame, sys, random pygame.init() win = pygame.display.set_mode((800, 600)) pygame.display.set_caption(‘Isom’) x = 0 y …

Total answers: 3

Producing 2D perlin noise with numpy

Producing 2D perlin noise with numpy Question: I’m trying to produce 2D perlin noise using numpy, but instead of something smooth I get this : my broken perlin noise, with ugly squares everywhere For sure, I’m mixing up my dimensions somewhere, probably when I combine the four gradients … But I can’t find it and …

Total answers: 2