just finished a gdscript that generates "flat" noises based on prime numbers.
By flat i mean that all values are appearing once in the texture when using float, or an even number of times when using 8bit.
The script is not perfect, due to the lack of long & double in gdscript...
src: gitlab.com/polymorphcool/addon


cool features:
1. computation is deterministic: same seeds and prime set will always produce the same output;
2. when generating a multi-channel noise, seed is offset by one at each channel

not so cool:
1. due to 16bits int in gdscript, small primes must be used
2. texture size is limited to 2^10 for the moment, but it's already 1.05 million unique numbers

· · Web · 0 · 0 · 1
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!