Closed LyfeOnEdge closed 2 years ago
Hi, yes I know the docs are lacking and it's on my TODO. Am swamped with uni work unfortunately and had to prioritise working with incoming pull requests instead. (I really appreciate PR!)
With that said, there's docstrings in the pkg and tests that shows how to use it. The input arrays needs to contain the coords you want noise for, which looked like you already understood (quickly looked at your code).
Then you only need to call the array func only once and it will return a new array populated with the noise (in the shape of the inputs). No need to loop, make your own output array or anything else.
ix contains 11 random coords, iy contains 7 random coords (both are arrays). The returned n2 array contains the noise (as an array with the shape of iy.size rows and ix.size columns).
I hope this explains it better.
On 17 February 2022 08:09:45 UTC, "Andrew (LyfeOnEdge) (ArcticGentoo)" @.***> wrote:
I am having a very hard time understanding how to implement the noise2array more efficiently than the standard noise2 method. I have tried several different ways to populate the numpy arrays, my goal is to generate terrain in 100x100 unit chunks using the noise as a heightmap. Improved documentation / sample code in the repository would likely be appreciated by a number of users.
related to #22
I started updating the docs in #32, do you mind taking a look at that one and see if it explains things better for you? Or simply take a look at the examples in the new README.
Closing due to inactivity and updated docs, feel free to reopen if you have further questions.
I am having a very hard time understanding how to implement the noise2array more efficiently than the standard noise2 method. I have tried several different ways to populate the numpy arrays, my goal is to generate terrain in 100x100 unit chunks using the noise as a heightmap. Improved documentation / sample code in the repository would likely be appreciated by a number of users.