Worley noise

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Example picture generated with Worley noise's basic algorithm. Tweaking of seed points and colors would be necessary to make this look like stone.

Worley noise is a noise function introduced by Steven Worley in 1996. In computer graphics it is used to create procedural textures,[1] that is textures that are created automatically in arbitrary precision and do not have to be drawn by hand. Worley noise comes close to simulating textures of stone, water, or cell noise.

Basic algorithm[edit]

The basic idea is to take random points in space (2- or 3-dimensional) and then for every point in space take the distance to the nth-closest point (e.g. the second-closest point) as some kind of color information. More precisely:

  • Randomly distribute feature points in space
  • Noise Fn(x) is distance to nth-closest point to x

In the case of two dimensions, twenty-five squares' points need to be generated (in a five by five arrangement), to be sure to find the closest. Usually, nine squares' points (in a three by three arrangement) is considered enough for practical applications.

See also[edit]

References[edit]

  1. ^ Patrick Cozzi; Christophe Riccio (2012). OpenGL Insights. CRC Press. pp. 113–115. ISBN 978-1-4398-9376-0.

Further reading[edit]

External links[edit]