# Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

### Newcomers AppGameKit Corner / Some useful Articles

Message
Posted: 28th Jan 2018 14:32 Edited at: 28th Jan 2018 14:34

In depth Perlin Noise

Shall add more here when I research more interesting stuff in the future
Posted: 2nd Feb 2018 22:45
Forgive my 'noob' question, but how would I generate the Perlin Noise itself? I understand in a 1D array you would use steps of like 10 , 5 and 2,5 and generate values of 0-100 , 0-50 and 0-25 to ultimately get a gradient curve. However, what would be the easiest way to get to the second, third, fourth, n_th row? Because unless I'm missing something fairly basic about the math involved, you can't get good Perlin Noise with a new 1D array for every new row.

I understand Perlin Noise at its core is considered random, but it's quite different from any of the random() functions AppGameKit has. And contrary to Processing using Java, there is no 'noise()' function to automatically create the 2D noise for us if you know what I mean LOL.
Posted: 3rd Feb 2018 11:11
I just try and simulate it. so check neighbouring blocks height and either randomly choose 0 or 1 or 2

if its 1 then increase block height a tad

if its 0 then decrease a block height a tad

if its 2 then keep the height the same

Ill post an example of the above later

Posted: 3rd Feb 2018 11:13
There is image perlin noise creations here too - and this would be useful -if any wishes to display the final image on the top left corner of the screen - many games have this - thats how they generate the map from the image