Difference between revisions of "Reference:Checker Pattern"

From POV-Wiki
Jump to navigation Jump to search
m (1 revision: Initial Load (TF))
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 56: Line 56:
 
This is a block pattern which cannot use wave types, <code>
 
This is a block pattern which cannot use wave types, <code>
 
color_map</code>, or <code>slope_map</code> modifiers.</p>
 
color_map</code>, or <code>slope_map</code> modifiers.</p>
 +
 +
<table class="centered" width="420px" cellpadding="0" cellspacing="10">
 +
<tr>
 +
  <td>[[Image:RefImgCheckerPigment.png|center|200px<!--centered--->]]</td>
 +
  <td>[[Image:RefImgCheckerNormal.png|center|200px<!--centered--->]]</td>
 +
</tr>
 +
<tr>
 +
  <td colspan="2"><p class="caption">checker pattern used as pigment and normal respectively</p></td>
 +
</tr>
 +
</table>

Latest revision as of 13:36, 10 June 2017

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.

RefImgCheckerPigment.png
RefImgCheckerNormal.png

checker pattern used as pigment and normal respectively