Use the V-Ray Dirt texture in SketchUp to add dirt effects and create an ambient occlusion pass.
Overview
Dirt is a texture map that simulates effects such as dirt in an object's crevices. You can also use it to create an ambient occlusion pass.


UI paths
||V-Ray Asset Editor|| > Textures (right-click) > Dirt
||V-Ray Asset Editor|| > Create Asset (left-click) > Textures > Dirt
Parameters
Mode sets the procedural mode used to generate the texture:
Ambient Occlusion calculates normal ambient occlusion.
Inner Occlusion reverses the effect relative to surface normals. Open corners receive the occluded colour instead of crevices. This mode traces rays inside the surface. Otherwise, rays are traced outside the surface. See the Inner Occlusion example below.
Ambient + Inner Occlusion combines Ambient Occlusion and Inner Occlusion to create a stronger weathering effect.
Reflection Occlusion (Phong, Blinn, Ward) uses reflection occlusion. Ambient occlusion traces rays uniformly in all directions. Reflection occlusion traces rays based on the viewing direction, as it does for reflections. The ray spread depends on the Reflection glossiness and BRDF type.
Unoccluded Color sets the colour for unoccluded areas. A selected texture overrides the colour while its texture checkbox is enabled.
Occluded Color sets the colour for occluded areas. A selected texture overrides the colour while its texture checkbox is enabled.
Radius sets the area covered by the Dirt effect in scene units. If you also use a texture, Radius sets the area over which it blends. See the Radius example below.
Falloff controls how quickly occluded areas transition to unoccluded areas. See the Falloff example below.
Distribution gathers rays closer to the surface normal. This narrows the dirt area towards contact edges. For ambient occlusion, set this parameter to 1.0 for a distribution similar to ambient lighting on a diffuse surface. See the Distribution example below.
Glossiness controls the spread of rays traced for reflection occlusion. It applies only in Phong, Blinn, or Ward ambient occlusion mode.

Example: Inner Occlusion
Inner Occlusion reverses the effect relative to surface normals. Open corners receive the occluded colour instead of crevices.


Example: Radius
Radius sets the area covered by the Dirt effect in scene units. These examples use red for the Dirt colour to make the effect clear. The scene is a small paper 1/100th scale model of the architecture.



Example: Falloff

Falloff
= 0

Falloff
= 3

Falloff
= 5
Example: Distribution
Distribution gathers rays closer to the surface normal. This narrows the dirt area towards contact edges.

Distribution
= 1

Distribution
= 3

Distribution
= 10

Ray distribution along the (X,Y,Z) axes
Equal angles between rays
Distribution parameter = 0.0

Ray distribution along the (X,Y,Z) axes
Different angles between rays
Distribution parameter > 0.0
Streaks Ambient draws streaks across the ambient occlusion dirt effect. You must set a bias direction and value for streaks to appear. See the Streaks Ambient example below.
Streaks Inner draws streaks across the inner occlusion dirt effect. You must set a bias direction and value for streaks to appear.
Streaks Size controls the thickness of all streaks. See the Streaks Size example below.
Streaks Density controls the density of the streaks.

Example: Streaks Ambient
These examples have Streaks Ambient enabled and Mode set to Ambient Occlusion. The streaks change with the Bias X and Bias Y values. In the first render, Bias X is 0 and Bias Y is -15. In the second render, Bias X is 0 and Bias Y is -7. In the third image, Bias X is 10 and Bias Y is -7. Bias Z is 30 for both renders.

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

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

Bias X
=
10
;
Bias Y
=
-7
;
Bias Z
=
30
Example: Streaks Size
These examples have Streaks Ambient enabled and Mode set to Ambient Оcclusion. Streaks Size controls the thickness of all streaks:

Streaks Size
= 1

Streaks Size
= 2

Streaks Size
= 5
Self-occlusion Only limits dirt to the objects themselves. Contact surfaces and edges are not included.
Ignore Self-occlusion prevents an object from occluding itself. Other objects in the scene still occlude it.
Double-Sided traces rays from both sides of each face to generate the dirt map. Rays follow the surface normals and the opposite direction.
Thin Mode reduces dirt on thin surfaces to improve their appearance. It is available only in Inner Occlusion Mode.

Exclude
Add Objects adds objects to the Exclude list. The dirt map does not affect objects in this list.
Inclusive reverses the Exclude list when enabled. Only objects in the list receive shading from the dirt map.

Affected By
Add Objects adds objects to the Affected By list. Objects in this list affect the Dirt map calculation. Excluded objects are invisible to the calculation and do not create dirt on other objects.
Inclusive reverses the result of the "Affected By" list when enabled. Objects in the list shade other objects with the dirt map.

Advanced parameters
Ignore for GI excludes the dirt effect from GI calculations when enabled. See the Ignore for GI example below.
Ignore Bump excludes bump maps from Dirt calculations when enabled.
Use Transparency includes the opacity of occluding objects in Dirt calculations. You can use it to calculate ambient occlusion from objects such as opacity-mapped trees. It is disabled by default, so Dirt treats occluding objects as opaque. Enabling it slows calculations because Dirt must evaluate the materials on occluding objects.
Env. Occlusion makes V-Ray use the environment to calculate occlusion in areas that other objects do not occlude.
Affect Refl. Elements lets ambient reflection affect the reflection render elements when enabled. You can use it to create reflection masks.

Example: Ignore for GI
Ignore for GI controls whether the dirt effect is visible during GI calculations. These examples show GI calculation during Light cache calculations, which explains the noise.

Ignore for Gi
= on

Ignore for Gi
= off
Bias
Bias X biases the normals towards the X-axis to direct the dirt effect along that axis. Use a negative value to reverse the direction.
Bias Y biases the normals towards the Y-axis to direct the dirt effect along that axis. Use a negative value to reverse the direction.
Bias Z biases the normals towards the Z-axis to direct the dirt effect along that axis. Use a negative value to reverse the direction.

See the Bias example below.
Example: Bias
Bias adjusts the normals to direct the dirt effect along the selected axes.

Bias X
= 100

Bias Y
= 100

Bias Z
= 100
Multipliers
Mode sets how colours are multiplied.
Multiplier uses black as the blending colour.
Blend Amount uses the colour specified in the colour slot.
Unoccluded Color controls the intensity of the unoccluded colour. You can assign a texture map to this channel.
Occluded Color controls the intensity of the occluded colour. You can assign a texture map to this channel.

Footnotes
- Calculated in the default SketchUp unit, inches.