perlin-numpy
perlin-numpy copied to clipboard
A fast and simple perlin noise generator using numpy
Numba support decrease the computation time up to nearly 5 times. No much changes are required ``` import numpy as np from numba import njit @njit def interpolant(t: np.ndarray): return...
Hi, As per the documentation of generate_fractal_noise_2d function, the third argument is the number of octaves in the noise. If the number of octaves is 1, will this function generate...
Hi Pierre, I love this generator, its working great for me! However, I would like to be able to use this to generate arrays with minimum of 300 elements in...
This PR lets the user set a random seed value for both the 2d and 3d perlin noise functions
When using larger octaves and lacunarity (e.g. 2 & 3 respectively) the following error occurs in perlin2d `ValueError: operands could not be broadcast together with shapes (1024,1024,2) (1023,1023,2)` At the...
I got this error when generating noise ``` Traceback (most recent call last): File "c:/Software/Test Software/PerlinNoise.py", line 93, in noise = terrain.generate_fractal_noise_2d((100,100),(10,10),3) File "c:/Software/Test Software/PerlinNoise.py", line 85, in generate_fractal_noise_2d noise...
This is the recommended practice for using numpy random numbers. Setting an RNG within the function means the results will always be reproduce-able regardless of what other functions in the...
This fixes #13 and allows for the shape to not have to be a multiple of the number of periods.
When I run `generate_perlin_noise_2d((721, 1281), (7, 7), (True, True))` I get the following issue: `ValueError: operands could not be broadcast together with shapes (722,1281,2) (721,1281,2)` This can be fixed by...