This page provides information on the V-Ray Occlusion or Dirt Map.
The VRayDirt texture map can be used to simulate a variety of effects, for example dirt around the crevices of an object, or to produce an ambient occlusion pass.
||Hypershade|| > Create panel > VRay section > 2D Textures > VRay Dirt
||Create Render Node|| > VRay section > 2D Textures > VRay Dirt
Occluded color – Specifies the color that will be returned by the texture for occluded areas (areas where a surface's ambient lighting is limited or blocked). A texture map may be used for this parameter.
Unoccluded color – Specifies the color that will be returned by the texture for unoccluded areas (areas where a surface is fully exposed to ambient light). A texture map may be used for this parameter.
Radius – Determines the amount of area (in scene units) where the VRayDirt effect is produced. A texture can be used to control the radius. For more information, see the Radius example below.
Distribution – Forces the rays to gather closer to the surface normal. This results in the dirt area narrowing 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. For more information, see the Distribution Parameter example below.
Falloff – Controls the speed of the transition between occluded and unoccluded areas. For more information, see the Falloff example below.
Subdivs – Controls the number of samples that V-Ray takes to calculate the dirt effect. Lower values render faster but produce a more noisy result. This parameter works independently from the Use Local Subdivs parameter in the DMC Sampler, so changes will affect the scene even if Use local subdivs is disabled. Low Noise threshold values in the Image Sampler will clean the result further. For more information, see the Subdivs example below.
Bias (X,Y,Z) – Biases the normals to the X (Y,Z) axes so that the dirt effect is forced to those directions. Consider that these parameters can also take negative values for inverting the direction of the effect. For more information, see the Biases example below.
Ignore For Gi – Determines whether the dirt effect will be taken into consideration for GI calculations or not. For more information, see the Ignore for GI/Consider Same Object Only example below.
Consider Same Object Only – When enabled, the dirt will affect only the objects themselves without including contact surfaces and edges. When disabled, the entire scene geometry participates in the final result. For more information, see the Consider Same Object Only example below.
Double Sided – When enabled, the rays needed to generate the dirt map will be shot from both sides of the faces (both in the direction of the normals and in the opposite direction).
Invert Normal – Changes the direction of tracing the rays. When disabled, the rays are traced outside the surface; when enabled they are traced inside the surface. This allows us to revert the effect with respect to surface normals - e.g. instead of crevices, open corners will be shaded with the occluded color. For more information, see the Invert Normal example below.
Work With Transparency – When enabled, VRayDirt will take into account the opacity of the occluding objects. This can be used, for example, if you want 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 in that case VRayDirt must examine and evaluate the material on the occluding objects.
Enabling work with transparency will also respect the Invisible attribute of V-Ray lights, causing them to be excluded from the rendering calculations.
Ignore Self Occlusion – When enabled, the object will not occlude itself. It will be occluded only by other objects in the scene.
Environment Occlusion – When enabled, V-Ray will use the environment when calculating the occlusion of areas that are not occluded by other objects.
Occlusion Mode – Specifies the mode in which the dirt map will be calculated.
Ambient occlusion – Normal ambient occlusion will be calculated.
Reflection occlusion (Phong, Blinn, Ward) – Uses reflection occlusion. 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 while with reflection occlusion the direction depends on the viewing direction (just as when calculating reflections). The spread of the rays depends on the Reflection glossiness and BRDF type used.
Affect Reflection Elements – When enabled, the ambient reflection will affect the reflection render elements. This can be used to create reflection masks.
Glossiness – Controls the spread of the rays traced for reflection occlusion. A value of 1 means that just a single ray is traced (just like when tracing clear reflections), smaller values make the spread of the traced rays.
Result Affect – Specifies a list of objects which will affect the calculation of the VRayDirt map. Excluded objects will be considered invisible for the calculations of the VRayDirt map.
As inclusive set – Controls the meaning of the Result Affect option. When enabled the Result Affect is considered as an "Include list", and when disabled the Result Affect is considered as "Exclude list".
Exclude – Disables the calculation of the VRayDirt map for specific objects. Excluded object will not be shaded by the VRayDirt map.
As Inclusive list – When enabled, reverses the meaning of the Exclude list, and only objects in the list will be shaded by the VRayDirt map.
This parameter determines the amount of area (in units) where the VRayDirt effect is produced. Notice that two of the objects do not contact any other objects on their tops, so there is no dirt effect.
All the examples are rendered using a VRayMtl with a VRayDirt Map in its Diffuse slot.
Simple VRayMtl with no VRayDirt
This parameter will force the rays to gather closer. The effect is that the dirt area is being narrowed closer to the contact edges.
Rays distribution (X,Y,Z) axis
Equal angle between rays distribution
Rays distribution (X,Y,Z) axis
Different angle between rays distribution
Distribution: > 0.0
These parameters will bias the normals so that the dirt effect is forced to some of the axis(es).
Bias X: 100.0
Bias Y: 100.0
Example: Ignore for GI
This parameter determines whether the dirt effect will be visible during the GI calculation.
Ignore for GI: enabled
Ignore for GI: disabled
Example: Consider Same Object Only
When this parameter is enabled, the dirt will affect only the objects themselves, without including contact surfaces and edges.
Consider Same Object Only: enabled
Example: Invert Normal
The Invert Normal parameter changes the direction of tracing the rays. When disabled, the rays are being traced outside the surface. When enabled, they are traced inside the surface.
Invert Normal: disabled
Invert Normal: enabled
- If you want to exclude V-Ray Lights from the calculations done by the V-Ray Dirt texture, enable Work With Transparency attribute to get it to respect the Invisible setting on the lights.