Perlin noise with color.

Noise noise noise and again more noise. Not auditorial noise though.

By 80sVectors | AnythingComputer(); | 29 Dec 2021


"What type of noise then?"

Well in this post I'll talk about the wonders of Perlin noise. Perlin noise is a type of noise that is created using the Perlin noise algorithm. The Perlin noise algorithm was created by Ken Perlin when he was working on the movie Tron at Walt Disney in 1982. Ken perlin was unsatisfied with the fake looks of computer generated graphics back then. So he made made the Perlin noise algorithm.

718fb70d0e51d3e4d493010bfc0b82337118a0c348cb29b99094bd1d9fee1a8a.png

Example output.

 

An example of how Perlin noise could be used.

Let's say someone wants to create a rust material but not by hand. Perlin noise is perfect for this. I'll be using Blender's material nodes for this example.

Firs they would need a base texture for metal. So we take a Perlin noise texture:

57505884a17b4c5489a28ade4596f57f857f0d0763107879f34ab7ff3befa5e0.png

c193631c5cbf735596c21cd9f0ee02bd08979c6d0f4629b7643f852d04eb9f3e.png

Then we turn it into brushed metal by using the mapping node to squash the texture. Among some other things to improve realism:

After that it's time for the rust. I got a bit carried away but it's all still noise and using noise as masks for more noise:

c5eba108ebcedb92871f931f30d3d4053ee62bd8f1298ae9d61fd2c5e70e8c78.png

Another example would be generating mountains and terrain. Stacking different layers of noise to make a more detailed height map.

The world generation in Minecraft makes heavy use of Perlin noise for example. There is one flaw to Perlin noise however. when moving up in dimensions we start to notice artifacts that don't look very good. To fix this Ken Perlin created simplex noise in 2001. Which he sadly patented( that patent is about to expire though). The opensource community has made an alternative though called  Open simplex which is free to use! Both of these improvements work well when sampling in any amount of dimensions.

 

In conclusion.

Used in many places Perlin noise and it's newer alternatives are an important tool in the field of procedural generation. But there are types of noise which we will talk about in coming blog posts.

How do you rate this article?

8


80sVectors
80sVectors

I'm a 16 year old Coding Enthusiast and a huge nerd for all things computer science, biology, chemistry, physics etc.


AnythingComputer();
AnythingComputer();

This blog is about anything computer related whether it's procedural generation or fluid simulation.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.