home *** CD-ROM | disk | FTP | other *** search
- POV-Ray creates a default texture when it begins processing. You may
- change those defaults as described below. Every time you specify a 'texture
- {...}' statement, POV-Ray creates a copy of the default texture. Anything
- items you put in the texture statement override the default settings. If
- you attach a pigment, normal or finish to an object without any texture sta-
- te ment then POV-Ray checks to see if a texture has already been attached.
- If it has a texture then the pigment, normal or finish will modify that ex-
- isting texture. If no texture has yet been attached to the object then the
- default texture is copied and the pigment, normal or finish will modify that
- texture.
-
- You may change the default texture, pigment, normal or finish using the
- language directive '#default {...}' as follows:
- #default {
- texture {
- pigment {...}
- normal {...}
- finish {...}
- }
- }
- or you may change just part of it like this:
- #default {
- pigment {...}
- }
-
- This still changes the pigment of the default texture. At any time,
- there is only one default texture made from the default pigment, normal and
- finish. The example above does not make a separate default for pigments
- alone.
-
- NOTE: Special textures tiles and material_map may not be used as
- defaults.
-
- You may change the defaults several times throughout a scene as you wish.
- Subsequent #default statements begin with the defaults that were in effect
- at the time. If you wish to reset to the original POV-Ray defaults then you
- should first save them as follows at top of file:
- #declare Original_Default = texture { }
- later after changing defaults you may restore it with...
- #default { texture { Original_Default } }
-
- If you do not specify a texture for an object then the default texture is
- attached when the object appears in the scene. It is not attached when an
- object is declared. For example:
- #declare My_Object=
- sphere { <0, 0, 0>, 1} // Default not applied
- object { My_Object } // Default added here
-
- You may force a default texture to be added by using an empty texture
- statement as follows:
- #declare My_Thing=
- sphere {
- <0, 0, 0>, 1
- texture { } // Default texture applied
- }
-