From the course: Processing: Interactive Data Visualization
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Using Perlin noise - Processing Tutorial
From the course: Processing: Interactive Data Visualization
Using Perlin noise
In this movie, I want to introduce you to a special kind of random function in Processing called noise and this is actually what's called Perlin Noise. And Perlin noise was developed in the movie industry as a way of creating a very realistic and organic looking textures. In this example, I'm going to be using a very simple one-dimensional version of Perlin noise. Just to draw lines of different heights that you can also use it to create two-dimensional and three-dimensional shapes and textures as well. So, for this one, I'm just going to start by putting little comment up at the top and then I'm going to introduce a few variables. I'm going to have an integer variable that's going to determine the number of lines we draw in a picture. Then I'm going to have the height variable called X and we will simply declare without initializing. Then I have the variable Y that will be a float variable, and that's .05. Then I'll have another float variable that we will call noiseY. Okay so, these…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Incorporating randomness7m 59s
-
Using Perlin noise4m 24s
-
Shuffling with Java3m 30s
-
Specifying line attributes8m 2s
-
Changing placement modes5m 45s
-
Understanding color attributes and functions4m 16s
-
Exploring color spaces7m 44s
-
Using color palettes7m 5s
-
Transforming the grid8m 38s
-
Exploring the attribute matrix5m 33s
-
-
-
-
-
-
-
-
-
-
-