Page 1 of 1

noise function toy

Posted: Thu Nov 03, 2016 2:43 pm
by MachineCode
Here is a really simple little program that lets you explore noise space - love.math.noise(x,y).

Use the arrow keys to move around in noise space which is displayed as a (nominal) 512x512 grey scale image.

the implementation is actually based on the perlin noise article and has 4 noise components in "octaves" which are enharmonic. the x/y components of each noise function can be different which gives interesting effects. Just tweak the various components and you can quickly learn about how the noise function works and maybe find a use for it in your game.
noise.png
noise.png (69.56 KiB) Viewed 2629 times

Re: noise function toy

Posted: Thu Nov 03, 2016 4:38 pm
by pedrosgali
I love perlin noise. You should add a method of adding a texture to it, by colouring each pixel according to its value. Then you've got a map generator or a texture generator. It always amazes me just how many effects you can achieve with this simple bit of maths.

Re: noise function toy

Posted: Thu Nov 03, 2016 11:51 pm
by MachineCode
Yeah - that's what i have been playing around with. I have to say its a lot easier to experiment using this lua framework. Much faster as well. Some of the texture mapping techniques end up looking quite good, but its a black art which requires a lot of experiments.
terra-10-film.jpg
terra-10-film.jpg (50.01 KiB) Viewed 2576 times