Adding Perlin function in Unity.Mathematics

Not sure if this is the right place but…

I noticed that on GitHub has been published that new math library which will be used with ECS and job system, Unity.Mathematics.

I searched but I couldn’t find the perlin or noise functions in there. Are there plans to add such function in the future?

There could be two key points here:

  1. Rewriting old Mathf.PerlinNoise(x,y) function and putting it in Unity.Mathematics.math. This might give some speedups as instead of Mathf class could be used System.math class.

  2. Ability to use seed, frequency, lacunarity, octave count and persistence as input parameters. This could give out of the box the complete perlin noise function, which is discussed in some examples here in forums, but is difficult to find.

2 Likes

It would be nice to have 3d and 4d overloads of PerlinNoise as well.

1 Like

Yes. We agree adding noise functions are definitely necessary and are on the todo list for sure.

6 Likes

Noise functions added: Unity.Mathematics/src/Unity.Mathematics/Noise at master · Unity-Technologies/Unity.Mathematics · GitHub

11 Likes

I was wondering also about hashing functions, as many people just reimplement wang/xx/so on and so forth in a lot of sample code.

It be useful to have a standard hash function library even if it’s not specifically Unity.Mathematics.

2 Likes

Thank You Very Much.

Hello Mike, these are nice and very useful thank you! But they don’t seem to be seeded. Is there a way we can get a seeded version?

1 Like

Yes I’m looking for a seeded version. I went over Simplex Noise function but it uses a buffer when seeding which makes it heavy on memory.