Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Perlin Noise / Simplex noise in scratch
- wrestling9
-
56 posts
Perlin Noise / Simplex noise in scratch
Hey everyone! I've gotten interested in 2d terrain generation, and would like to implement some very basic perlin noise to generate it. How should I do this? I've used prebuilt noise functions before, and I kind of understand how it works, but never wrote one myself. thanks!
- gilbert_given_189
-
1000+ posts
Perlin Noise / Simplex noise in scratch
Yes, but this is not Perlin noise or Simplex noise. This is an example of a Perlin noise. (on a 2D array) Here's a short example I made:
https://scratch.mit.edu/projects/394322754/

If you want to know about Perlin/Simplex noise, these Wikipedia article might help you:
Perlin noise
Simplex noise
- BillNyeTheKGBSpy
-
68 posts
Perlin Noise / Simplex noise in scratch
Is Perlin Noise a specific algorithm? Or is it a synonym for random terrain generation? You can make a terrain generator with this block
(pick random () to ())
- gilbert_given_189
-
1000+ posts
Perlin Noise / Simplex noise in scratch
Yes, that would work, However, that will make a very rough and spiky terrain, and doesn't make the smooth noise the usual Perlin noise would. Is Perlin Noise a specific algorithm? Or is it a synonym for random terrain generation? You can make a terrain generator with this block(pick random () to ())
Here's the picture (again):

- BillNyeTheKGBSpy
-
68 posts
Perlin Noise / Simplex noise in scratch
I honestly have no clue what that picture represents, it looks like a carpet to me. A very blurry carpet.Yes, that would work, However, that will make a very rough and spiky terrain, and doesn't make the smooth noise the usual Perlin noise would. Is Perlin Noise a specific algorithm? Or is it a synonym for random terrain generation? You can make a terrain generator with this block(pick random () to ())
Here's the picture (again):
Last edited by BillNyeTheKGBSpy (May 20, 2020 16:43:47)
- BillNyeTheKGBSpy
-
68 posts
Perlin Noise / Simplex noise in scratch
Here. I found a project that you could look into. https://scratch.mit.edu/projects/392769129/
- Oumuamua
-
1000+ posts
Perlin Noise / Simplex noise in scratch
You see if some of those helps you https://scratch.mit.edu/search/projects?q=perlin%2Bnoise
- DJH666666
-
7 posts
Perlin Noise / Simplex noise in scratch
simple get a whole bunch of sound pick random ones play the selected ones together and use the volume thing to draw a volume map then fill the volume map in BOOM! perlin noise sorta

- celleron56
-
89 posts
Perlin Noise / Simplex noise in scratch
althought the generation progress would be loud xD simple get a whole bunch of sound pick random ones play the selected ones together and use the volume thing to draw a volume map then fill the volume map in BOOM! perlin noise sorta
- bSpyder
-
100+ posts
Perlin Noise / Simplex noise in scratch
You could use a
I made this thing that kinda follows this rule, it could easily be implemented or changed to create smooth noise
https://scratch.mit.edu/projects/589946056/
(pick random (_) to ()))for the first pixel or value, then make slight alterations for every other pixel
I made this thing that kinda follows this rule, it could easily be implemented or changed to create smooth noise
https://scratch.mit.edu/projects/589946056/
- Spheric_YT
-
31 posts
Perlin Noise / Simplex noise in scratch
So, we need a You could use a(pick random (_) to ()))for the first pixel or value, then make slight alterations for every other pixel
I made this thing that kinda follows this rule, it could easily be implemented or changed to create smooth noise
https://scratch.mit.edu/projects/589946056/
(pick random (a) to (b))then make smaller alterations for each and every pixel. Am I getting this correct?
- PheloOrSomething
-
4 posts
Perlin Noise / Simplex noise in scratch
My best approach would be:
set [currentHeight v] to [5]Hope this helps!
repeat [10] // changeable
change [currentHeight v] by (pick random [-2] to [2]) // these are also changeable
do some rendering with the blocks
end
- Enigma_Ezra
-
500+ posts
Perlin Noise / Simplex noise in scratch
Maybe this will help: https://scratch.mit.edu/projects/501242200/
- Discussion Forums
- » Help with Scripts
-
» Perlin Noise / Simplex noise in scratch