POV-Ray uses a method called three-dimensional solid texturing to define the color, bumpiness and other
properties of an object. You specify the way that the texture varies over a surface by specifying a pattern.
Patterns are used in pigments, normals and texture maps as well as media density.
All patterns in POV-Ray are three dimensional. For every point in space, each pattern has a unique value. Patterns
do not wrap around a surface like putting wallpaper on an object. The patterns exist in 3d and the objects are carved
from them like carving an object from a solid block of wood or stone.
Consider a block of wood. It contains light and dark bands that are concentric cylinders being the growth rings of
the wood. On the end of the block you see these concentric circles. Along its length you see lines that are the veins.
However the pattern exists throughout the entire block. If you cut or carve the wood it reveals the pattern inside.
Similarly an onion consists of concentric spheres that are visible only when you slice it. Marble stone consists of
wavy layers of colored sediments that harden into rock.
These solid patterns can be simulated using mathematical functions. Other random patterns such as granite or bumps
and dents can be generated using a random number system and a noise function.
In each case, the x, y, z coordinate of a point on a surface is used to compute some mathematical function that
returns a float value. When used with color maps or pigment maps, that value looks up the color of the pigment to be
used. In normal statements the pattern function result modifies or perturbs the surface normal vector to give a bumpy
appearance. Used with a texture map, the function result determines which combinations of entire textures to be used.
When used with media density it specifies the density of the particles or gasses.
The following sections describe each pattern. See the sections "Pigment", "Normal"
"Patterned Textures" and "Density"
for more details on how to use patterns. Unless mentioned otherwise, all patterns use the
type by default but may use any wave type and may be used with
Note: Some patterns have a built in default color_map that does not result in a
grey-scale pattern. This may lead to unexpected results when one of these patterns is used without a user specified
color_map, for example in functions or media.
These patterns are:
More about "Pigment"
More about "Normal"