verpeteren / rust-simd-noise

SIMD noise library for Rust
https://crates.io/crates/simdnoise
250 stars 20 forks source link

Seed? #7

Closed MarkuBu closed 5 years ago

MarkuBu commented 5 years ago

Is it possible to set a seed for the noise functions to generate different results with the same settings? I haven't found anything yet

jackmott commented 5 years ago

probably a good idea to add that, in the meantime you can supply different x/y/z start values to get the same effect. I'll leave this open and look at making the seed part of the settings.

sam0x17 commented 5 years ago

I also need this

jackmott commented 5 years ago

just fyi, this feature is in progress. I have a poc working and applied to the 2d simplex noise examples. just need to do the grunt work of doing it to all the noise types and dimensions.

sam0x17 commented 5 years ago

👍

jackmott commented 5 years ago

Ok got the seed feature added everywhere now. If either of you would like to try out master branch with the new seed feature and provide feedback, it would be appreciated. You can use the noisebuilder and supply a seed with .with_seed(100).

If everything looks good to y'all I'll do a new release on crates.io

danieledapo commented 5 years ago

I've just tried out the latest master branch in my project and it seems to be working properly. I get different results with different seeds and the exact same result with the same seed, so I guess it's working properly. I only use cellular and fbm noise so I cannot say if it works for the other types of noise as well, but I don't see why it shouldn't

jackmott commented 5 years ago

new version is up on crates.io, thanks for the feature request/testing.