What is perlin noise?

I am pretty new to lua and was reading the api on all the math functions. While I was reading through the math functions and I saw math.noise, which said it returned perlin noise value between -1 and 1, any explanations would be helpful, and also I would want to know how you would use this.

There already many resources that exist on such topic.

link
link
link
and you can always google more.

2 Likes

Fundamentally, perlin noise is just gradient noise randomly generated by computer.

It is used to generate all sorts of things such as terrain, texture, clouds, etc…

Here is something that explains it well.
https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-noise/a/perlin-noise

I recommend searching things up before making posts on the Developer Forum.

1 Like

This video explains Perlin Noise:

2 Likes