Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides information on the V-Ray Dirt Texture.

 

 

Overview

...

Section
Column
width50%67%

Dirt is a texture map that can be used to simulate a variety of effects such as dirt around the crevices of an object. It can also be used to produce an ambient occlusion pass.

UI Text Box
typetip

Any texture can be replaced via the Replace With New Texture (Image Added) button, which activates when you select the texture to be replaced. If the texture is an instance, all copies are changed as well.

Column
width5%

 

Column
width45%28%

Image Modified

 

Parameters

...

Section
Column
50%
width67%

Mode – Specifies the procedural mode that is used to generate texture:

Ambient Occlusion – Normal ambient occlusion is calculated.
Inner Occlusion – Allows the user to invert the effect with respect to surface normals - e.g. instead of crevices, open corners are shaded with the occluded color. This mode changes the direction of tracing the rays. When this mode is selected, the rays are traced inside the surface, otherwise, they are traced outside the surface. See the Inner Occlusion example below.
Ambient + Inner Occlusion – A combination of Ambient Occlusion and Inner Occlusion modes used for enhanced weathering effect.
Reflection Occlusion (Phong, Blinn, Ward)  – Reflection occlusion is used. The difference between ambient and reflection occlusion is basically in the direction in which rays are traced. With ambient occlusion, rays are traced in all directions uniformly, whereas with reflection occlusion, the direction depends on the viewing direction (just as when calculating reflections) and the spread of the rays depends on the Reflection glossiness and BRDF type used.

Unoccluded Color – Specifies the color that is returned by the texture for unoccluded areas. If a texture is selected, it overrides the color as long as the texture checkbox is enabled.

Occluded Color – Specifies the color that is returned by the texture for occluded areas. If a texture is selected, it overrides the color as long as the texture checkbox is enabled.

Radius – Specifies the amount of area (in scene units) where the Dirt effect is produced. If a texture is also used, the Radius value determines the amount of area where the texture blends.

Falloff – Controls the speed of the transition between occluded and unoccluded areas. For more information, please see the Falloff Parameter example below.

Distribution – Forces the rays to gather closer to the surface normal. The effect is that the dirt area is being narrowed closer to the contact edges. For ambient occlusion, set this parameter to 1.0 to get distribution similar to the ambient lighting on a diffuse surface..

Glossiness – Controls the spread of the rays traced for reflection occlusion. This is only used in Phong, Blinn, or Ward ambient occlusion mode.

Streaks Ambient – Draws streaks across dirt effect respective to ambient occlusion. Note that a bias direction and value have to be specified for the streaks to appear. See the Streaks Ambient example below.

Streaks Inner – Draws streaks across dirt effect respective to inner occlusion. Note that a bias direction and value have to be specified for the streaks to appear.

Streaks Size – Controls the thickness of all streaks. See the Streaks Size example belowFalloff – Controls the speed of the transition between occluded and unoccluded areas. For more information, please see the Falloff Parameter example below.

Self-occlusion only – When enabled, the dirt affects only the objects, without including contact surfaces and edges.

Ignore self-occlusion – When enabled, the object does not occlude itself. It is still occluded by other objects in the scene.Invert Normals – When enabled, the dirt effect is reversed with respect to surface normals - e.g. instead of crevices, open corners are shaded with the occluded color. For more information, please see the Invert Normals example below.

Double Sided – When enabled, the rays needed to generate the dirt map are shot from both sides of the faces (both in the direction of the normals and in the opposite direction).

Advanced Parameters


Ignore for GI – When enabled, the dirt effect are not taken into consideration for GI calculations. For more information, please see the Ignore for GI example below.

Use Transparency – When enabled, Dirt takes into account the opacity of the occluding objects. This can be used, for example, to calculate ambient occlusion from opacity-mapped trees etc. When disabled (the default), occluding objects are always assumed to be opaque. Note that working with correct opacity is slower, since Dirt must examine and evaluate the material on the occluding objects. 

Environment Occlusion – When this option is switched on, V-Ray uses the environment when calculating the occlusion of areas that are not occluded by other objects.

Reflection Occlusion

Reflection Occlusion – Enables or disables the Reflection Occlusion. 

BRDF – Specifies the procedural mode that is used to generate the VRayDirt texture. 

Reflection Occlusion (Phong)
Reflection Occlusion (Blinn)
Reflection Occlusion (Ward)

Glossiness – Controls the spread of the rays traced for reflection occlusion. This is only used in Phong, Blinn, or Ward ambient occlusion mode.

Affect Reflection Elements – When enabled, the ambient reflection affects the reflection render elements. This can be used to create reflection masks.

Bias


Bias X – Biases the normals to the X-axis, so that the dirt effect is forced in this direction. Consider that the parameter can also take negative value for inverting the direction of the effect. 

Bias Y – Biases the normals to the Y-axis, so that the dirt effect is forced in this direction. Consider that the parameter can also take negative value for inverting the direction of the effect. 

Bias Z – Biases the normals to the Z-axis, so that the dirt effect is forced in this direction. Consider that the parameter can also take negative value for inverting the direction of the effect. 

Column
width5%

 

Column
width45%28%

Image RemovedImage Added


Multipliers

...

Section
Column
width50%67%

Mode – Specifies the multiplication mode of the colors. 

Multiplier – The color used for blending is black.
Blend Amount The color used for blending is the one specified in the color slot.

Unoccluded Color – Controls the intensity of the Unoccluded color. A texture map can be assigned to this channel. 

Occluded Color – Controls the intensity of the Occluded color. A texture map can be assigned to this channel. 

Column
width5%

 

Column
width45%28%

Image RemovedImage Added

 

 

...

Anchor
Falloff
Falloff

...

Section
Column
width30%
 
Column
width40%
Before after
afterLabelOFF
beforeLabelON
Panel
borderStylenone

Panel
borderStylenone

Column
width30%

 

 

 

Anchor
SameObjectsOnlyinnerOccSameObjectsOnly
innerOcc

 

Example: Same Objects Only

 

Image Removed
Same objects only: on

...


Example: Inner Occlusion


It allows the user to invert the effect with respect to surface normals - e.g. instead of crevices, open corners are shaded with the occluded color.

Section
bordertrue
Column
width25%

 

Column
width50%
Before after
afterLabelon
beforeLabeloff
Panel
borderStylenone

Image Added

Panel
borderStylenone

Image Added

Column
width25%

 

 

...

Anchor
InvertNormalsstreaksInvertNormals
streaks

 

Section
bordertrue
Column
width50%

Example:

...

 

A bitmap is used in the texmap radius slot. Notice that the main radius parameter still has effect - it determines the amount of area where the texmap radius bitmap would blend.

Streaks Ambient

 

The Streaks Ambient parameter is enabled and the Mode is set to Ambient Occlusion. Depending on the values of Bias X and Bias Y, the streaks change. In the first render, the Bias X is set to 0 and the Bias Y is set to -15. In the second render, the Bias X is set to 0 and the Bias Y is set to -7. In the third image, the Bias X gets a value of 10 and the Bias Y is set to -7. The Bias Z has a value of30 for both renders.

 

Image slider
afterLabelY
beforeLabelZ
Panel
borderStylenone

Image Added

Bias X=0, Bias Y= -15, Bias Z= 30

Panel
borderStylenone

Image Added

Bias X=0, Bias Y= -7, Bias Z= 30

Panel
borderStylenone

Image Added

Bias X=10, Bias Y= -7, Bias Z= 30

Column
width50%

Example: Streaks Size

 

The Streaks Ambient parameter is enabled and the Mode is set to Ambient Оcclusion. The Streaks Size controls the thickness of all streaks:

 

 

Image slider
Section
Column
width30%

 

Column
width40%
OFF
Before after
afterLabelON
beforeLabel
Panel
borderStylenone

Image Added

Streaks Size = 1

Image Removed

Panel
borderStylenone

Image Removed

Column
width30%

Image Added

Streaks Size = 2

Panel
borderStylenone

Image Added

Streaks Size = 5