POV-Ray : Documentation : 2.5.11.8 Checker
  POV-Ray 3.6 Documentation Online View  
2.5.11.7 Cells   2.5.11.9 Crackle Patterns

2.5.11.8 Checker

The checker pattern produces a checkered pattern consisting of alternating squares of two colors. The syntax is:

  pigment { checker [COLOR_1 [, COLOR_2]] [PATTERN_MODIFIERS...] }

If no colors are specified then default blue and green colors are used.

The checker pattern is actually a series of cubes that are one unit in size. Imagine a bunch of 1 inch cubes made from two different colors of modeling clay. Now imagine arranging the cubes in an alternating check pattern and stacking them in layer after layer so that the colors still alternate in every direction. Eventually you would have a larger cube. The pattern of checks on each side is what the POV-Ray checker pattern produces when applied to a box object. Finally imagine cutting away at the cube until it is carved into a smooth sphere or any other shape. This is what the checker pattern would look like on an object of any kind.

You may also use pigment statements in place of the colors. For example:

  pigment { checker pigment{Jade}, pigment{Black_Marble} }

This example uses normals:

  normal { checker 0.5 }

The float value is an optional bump size. You may also use full normal statements. For example:

  normal {
    checker normal{gradient x scale .2},
            normal{gradient y scale .2}
  }

When used with textures, the syntax is

  texture { checker texture{T_Wood_3A},texture{Stone12} }

The checker pattern has a default color_map built in that results in blue and green tiles.

This use of checker as a texture pattern replaces the special tiles texture in previous versions of POV-Ray. You may still use tiles but it may be phased out in future versions so checker textures are best.

This is a block pattern which cannot use wave types, color_map, or slope_map modifiers.

2.5.11.7 Cells   2.5.11.9 Crackle Patterns


Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.