Hey Devs, I have recently been trying to make realistic ocean waves for a survival game I’m making and I have no clue where to start on the scripting side, I already have a plane with bones but I’m not sure what to do. Can someone please explain Perlin noise in 5 year old terms for me? or give me examples on how to make it move like a wave?
I barely know about Perlin noise, but I might know how this could be implemented. On a black and white scale, Perlin noise is generally like this:
Basically a white background with dark spots, now you can implement something to figure out how dark those spots are, and depending how dark they are, the higher those waves go, effectively creating a smooth transition between those. You can also generate more perlic noise to smoothly tween between them, and achieve a wave-like effect. You can check more about it in this tutorial: https://www.youtube.com/watch?app=desktop&v=yA210k9ie8Y
perlin noise is like the random() function but if you give it values that are close to each other then the outputted values are also close to each other
in other words its random but also smooth
so you can use math.noise(x, y, t) where x and y is the position of the bone (to make each bone have a unique height) and where t is time ( so that the wave heights change randomly with time )