Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Design of Surfaces by "texture" with POV-Ray -
Deutsch Deutsch
Italiano Italiano
Français français

- POV-Ray Tutorial

  Design of Surfaces
  - Colors and Textures

    texture Syntax
    - Basic Sample
    - pigment{ ... }
   > normal{ ... }
      - pigment_pattern
      - normal Samples
    - finish{ ... }
    Ready-made Textures
    - Rules
    Do-it-yourself Colors
    - color rgb< , , >
    - Transparency
    Patterns Lists

    Your own Textures
color rgb

  About the syntax of the "texture" components

  "normal {.....}"

Sample normal 640x480

    "normal {.....}" desripes the roughness of the surface (optional, if is not defined the surface of the shape seams to be totally smooth!) It's important to know that this effect is only a more or less rhythmical bending of the surface normal vector which is used for calculating the reflecting of light at the surface. This effect does not deform the geometry of the outline of an object. So also with big bumps at the surface the outline of a sphere is (unfortunately!) a perfectly round ball! The normal effects are only simulated and don't touch the geometric form of an object. To get a really deformed surface is only possible by using "isosurface" objects - but this will take much longer.

Sample normal Sample normal Sample normal

    If sometimes the testing of those pattern effects, as a pattern for "color_map" or as "normal" pattern, do not show any visible results, it might help using a smaller scale inside of the statement, like: "normal{ ... scale 0.01 }".
Often the patterns are scaled by default in a way so that the effect (i.e. "bumps") appears just once in the length of one unit!

    Another problem might cause the fact that some patterns are concentric pattern around <0,0,0> with a spherical symmetry. On the surface of a sphere around <0,0,0> we will see no effect. Moving the pattern by somewhat like translate<0,1,0> will show the pattern without cutting of a box from the sphere.

Sample normal 600x600

See also List of the pattern functions for "normal" ("pigment and normal patterns")


© Friedrich A. Lohmüller, 2006