- Home /
Question by
doubstract · May 16, 2015 at 02:47 PM ·
randommathfperlin noiseseed
Always same perlin noise map from Mathf.PerlinNoise
Why does Mathf.PerlinNoise does always return same perlin noise after game closes and starts? I think I should set the seed for it somehow, but I do not how I should do that. Please notice that I am not doing it like Mathf.PerlinNoise(2) or Mathf.PerlinNoise(-5), I am doing it correctly like Mathf.PerlinNoise(0.25f) or Mathf.PerlinNoise(0.6467f), and I am asking how to change perlin noise seed.
Comment
Best Answer
Answer by FortisVenaliter · May 16, 2015 at 02:55 PM
Offset it.
Vector2 offset = new Vector2(Random.Range(0,100),Random.Range(0,100));
Then add those offset values to the input coordinates. Perlin noise goes infinitely, so you can just move to a different sample if you don't like the one you're on.
Your answer
![](https://koobas.hobune.stream/wayback/20220613195722im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to change perlin noise seed? 1 Answer
several Random instances 1 Answer
How does Mathf.PerlinNoise Work? 4 Answers