The following parameters are used to tune the sampling process:
The individual sampling parameters are described in the sections below.
The default number of samples is 10. This is sufficient for simple density fields that don't use turbulence.
High turbulence values and dust halos normally need a large number of samples to avoid aliasing artifacts.
By default super-sampling is not used. The default values for aa_threshold and aa_level are 0.3 and 3 respectively.
By default jittering is not used. The values should be smaller than 1.0.
Note that jittering is used even if super-sampling is not used.
Thus the halo color map will be repeated by the specified frequency.
Thus the color entry for density f(r)=0 can be moved to phase mod 1.
Special textures use either a texture_map keyword to specify a blend or pattern of textures or they use a bitmap similar to an image map called a material map (specified with the material_map keyword).
There are restrictions on using special textures. A special texture may not be used as a default texture (see section "Default Directive"). A special texture cannot be used as a layer in a layered texture however you may use layered textures as any of the textures contained within a special texture.
A texture map is specified by...
Where NUM_1, NUM_2, ... are float values between 0.0 and 1.0 inclusive. A TEXTURE_BODY is anything that would normally appear inside a texture statement but the texture keyword and {} braces are not needed. Note that the [] brackets are part of the actual statement. They are not notational symbols denoting optional parts. The brackets surround each entry in the map. There may be from 2 to 256 entries in the map.
For example:
When the gradient x function returns values from 0.0 to 0.3 the red highlighted texture is used. From 0.3 to 0.6 the texture identifier T_Wood11 is used. From 0.6 up to 0.9 a blend of T_Wood11 and a shiny DMFWood4 is used. From 0.9 on up only the shiny wood is used.
Texture maps may be nested to any level of complexity you desire. The textures in a map may have color maps or texture maps or any type of texture you want.
The blended area of a texture map works by fully calculating both contributing textures in their entirety and then linearly interpolating the apparent colors. This means that reflection, refraction and lighting calculations are done twice for every point. This is in contrast to using a pigment map and a normal map in a plain texture, where the pigment is computed, then the normal, then reflection, refraction and lighting are calculated once for that point.
Entire textures may also be used with the block patterns such as checker, hexagon and brick. For example...
Note that in the case of block patterns the texture wrapping is required around the texture information. Also note that this syntax prohibits the use of a layered texture however you can work around this by declaring a texture identifier for the layered texture and referencing the identifier.
A texture map is also used with the average pattern type. See "Average" for details.
Instead of placing a solid color of the image on the shape like an image map, an entire texture is specified based on the index or color of the image at that point. You must specify a list of textures to be used like a texture palette rather than the usual color palette.
When used with mapped file types such as GIF, and some PNG and TGA images, the index of the pixel is used as an index into the list of textures you supply. For unmapped file types such as some PNG and TGA images the 8 bit value of the red component in the range 0-255 is used as an index.
If the index of a pixel is greater than the number of textures in your list then the index is taken modulo N where N is the length of your list of textures.
Where FILE_TYPE is one of the following keywords gif, tga, iff, ppm, pgm, png or sys. This is followed by the name of the file using any valid string expression. Several optional modifiers may follow the file specification. The modifiers are described below. Note that earlier versions of POV-Ray allowed some modifiers before the FILE_TYPE but that syntax is being phased out in favor of the syntax described here.
Filenames specified in the material_map statements will be searched for in the home (current) directory first and, if not found, will then be searched for in directories specified by any +L switches or Library_Path options. This would facilitate keeping all your material map files in a separate subdirectory and specifying a library path to them. Note that any operating system default paths are not searched unless you also specify them as a Library_Path.
By default, the material is mapped onto the x-y-plane. The material is projected onto the object as though there were a slide projector somewhere in the -z-direction. The material exactly fills the square area from (x,y) coordinates (0,0) to (1,1) regardless of the bitmap's original size in pixels. If you would like to change this default you may translate, rotate or scale the texture to map it onto the object's surface as desired.
The file name is optionally followed by one or more BITMAP_MODIFIERS. See section "Bitmap Modifiers" for other details.
After a material_map statement but still inside the texture statement you may apply any legal texture modifiers. Note that no other pigment, normal, finish or halo statements may be added to the texture outside the material map. The following is illegal:
The finish must be individually added to each texture.
Note that earlier versions of POV-Ray allowed such specifications but they were ignored. The above restrictions on syntax were necessary for various bug fixes. This means some POV-Ray 1.0 scenes using material maps many need minor modifications that cannot be done automatically with the version compatibility mode.
If particular index values are not used in an image then it may be necessary to supply dummy textures. It may be necessary to use a paint program or other utility to examine the map file's palette to determine how to arrange the texture list.
The textures within a material map texture may be layered but material map textures do not work as part of a layered texture. To use a layered texture inside a material map you must declare it as a texture identifier and invoke it in the texture list.
Section 7.6.4.7.3
Jitter
Section 7.6.4.8
Halo Modifiers
Section 7.6.4.8.1
Frequency Modifier
Section 7.6.4.8.2
Phase Modifier
Section 7.6.4.8.3
Transformation Modifiers
Section 7.6.5
Special Textures
Section 7.6.5.1
Texture Maps
Section 7.6.5.2
Tiles
Section 7.6.5.3
Material Maps
Section 7.6.5.3.1
Specifying a Material Map
Table Of Contents