Page 1 of 1

basis_noise example is useless

Posted: Wed Sep 10, 2025 2:45 pm
by Osmo
There is a quirk in how basis_noise function in noise expressions works. When given integer values for x and y, the output is always 0 (ref). This means that if x and y are passed directly, and input scale is unchanged, the function appears to not work.

The noise expressions auxilary page has this example: basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 0}, which runs into the above problem. it should be removed or changed to include input_scale.
Additionally, it would be good if the behaviour of returning 0 at integer inputs was documented and explicitly advise against using x and y directly with default or integer input_scale.

Re: basis_noise example is useless

Posted: Wed Sep 10, 2025 2:51 pm
by Osmo
Also document that multioctave_noise uses the same algorithm as basis_noise but allows for having multiple layers of it with different scales, to make it clear that it also has the same issue. And remove the example with no input_scale from it too as it effectively removes the first layer.

Re: basis_noise example is useless

Posted: Thu Sep 11, 2025 10:58 am
by Bilka
Thanks for doing the research and noting this, fixed the docs for 2.0.67.