Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range of perlin noise #6

Open
NielsPichon opened this issue Sep 30, 2024 · 1 comment
Open

Range of perlin noise #6

NielsPichon opened this issue Sep 30, 2024 · 1 comment
Assignees
Labels

Comments

@NielsPichon
Copy link

Hi Keijiro,

Thanks for the nice implementation.

I saw your comment regarding the range of the noise in the README, and thought thatb this blogpost may be of interest https://digitalfreepen.com/2017/06/20/range-perlin-noise.html.

There isn't any answer regarding fbm though in the blog post. However in your implementation each subsequent octave has a factor of 0.5^n in front of it. This is actually a known infinite series: we know that for any |x| < 1, Sum_n(x^n) converges to 1 / (1 -x) which in this case is 1 / (1 - 0.5) = 2. So for a fbm with infinitly many octaves, we'd have a maximum bound which is at most 2 * sqrt(N / 4) where N is the dimensionality of the Noise. Whether there is a way to find a stricter bound I am not sure.

I hope you find this interesting.

All the best

@keijiro keijiro self-assigned this Sep 30, 2024
@keijiro
Copy link
Owner

keijiro commented Oct 1, 2024

Thanks for the information! I'll update the README based on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants