perlin-numpy | A fast and simple perlin noise generator | Cryptography library
kandi X-RAY | perlin-numpy Summary
kandi X-RAY | perlin-numpy Summary
A fast and simple perlin noise generator using numpy.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate a fractional noise
- Generate perlin noise
- Interpolant to interpolant
perlin-numpy Key Features
perlin-numpy Examples and Code Snippets
Community Discussions
Trending Discussions on perlin-numpy
QUESTION
I am working on a basic 2d terrain generator and currently It generates a 1024x1024 'swatch' of terrain using perlin-numpy. I am interested in having the option to generate another 'chunk' (like Minecraft) above my current terrain that is different, but fits smoothly above my current terrain.
TL;DR:
the noise function I'm using takes generate_fractal_noise_2d((1024, 1024), octaves=6)
I want to be able to do generate_fractal_noise_2d((1024, 1024), location=(, ), octaves=6)
ANSWER
Answered 2020-Aug-29 at 17:42Generally this is very easy with noise, because noise is a point evaluation function. This library would work if it provided an "offset" parameter, but it doesn't seem to. Also, is there a reason you are using a "Perlin" noise library and not an (Open)Simplex? Perlin is an older function for noise, which produces visually significant grid bias. (Open)Simplex can be noticeably better about that. You can see in this image that the Perlin on top has a lot of 45 and 90 degree parts. Terrain features won't be distributed along a more interesting variety of directions.
Here's what I would do:
- Use Python OpenSimplex instead.
- Implement octave summation manually, since the lib doesn't have it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install perlin-numpy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page