Perlin Noise

This is an old revision of Perlin Noise, edited by Vincent at . The current revision is 29654.

/* Subversion */ moved noise to examples

This page is the start of a tutorial about using Perlin Noise on LCL applications to generate natural looking images. It will cover both basic theory and real usage examples, with a focus on compilable examples.

Perlin Noise was invented by Ken Perlin to generate textures for a movie called Tron. Today it is widely used on movies and video games to produce natural looking smoke, landscapes, clouds and any texture including marble, irregular glass, etc.

Getting Started

Perlin Noise is based on the idea of fractals, that things in nature show different degrees of change. On a rocky mountain landscape for example when can see changes with a very big amplitude, which are the mountains themselves. Smaller changes represent irregularities on those mountains and even smaller ones represent rocks.

First Example

This application demonstrates a simple noise function with the following properties:

Files:

Persistence Example

This application demonstrates how to sum many noise functions to get a perlin noise function. It has the following properties:

Files:

Subversion

You can download the source code for the examples and the library using this command:

svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/noise noise