This page provides information on the V-Ray Distance Map.
Overview
VRayDistance is a V-Ray specific procedural texture that returns a different color based on a point's distance from an object(s) specified in a selection list.
UI Path: Texture > V-Ray > VRayDistance
Parameters
Distance – Specifies a radius, outside which all points are given the Far Color.
Texture – Specifies a texture to be used as a Distance.
Mix Strength – Specifies the blend amount of the distance texture.
Mix Type – Specifies how the texture file is blended with the Distance value. The texture is applied to a layer above the Distance value.
Normal – When applied, the texture is blended normally. A Mix Strength of 100% makes the texture completely opaque, hiding the Distance value below.
Add – When applied, the texture's value is added to the Distance value.
Subtract – When applied, the Distance value is subtracted from the texture's value.
Multiply – When applied, the texture is multiplied by the Distance value.
Far Color – Specifies the color returned by the texture for points that are at a distance greater than the Distance parameter from the objects specified in the Objects list. A Texture can also be applied and blended with the color, using the Mix Strength option.
Near Color – Specifies the color returned by the texture for points that are right at the edges of the object(s) specified in the Objects list. For points that are outside or inside the objects but not exactly next to the them, the color is determined by blending between the Near Color and the Far Color and the Distance serves as a falloff radius. A Texture can also be applied and blended with the color, using the Mix Strength option.
Inside Separate – When enabled, the Near Color value is overridden by the Inside Color value for points that are inside the specified geometry.
Inside Solid – When enabled, all the points inside the specified geometry are given the Inside Color value and no blending is performed.
Inside Color – Specifies the color returned by the texture for points that are inside the object(s) specified in the Objects list. For points that are inside the objects but not exactly next to them, the color is determined by blending between the Inside Color and the Far Color and the Distance serves as a falloff radius. A Texture can be applied and blended with the color, using the Mix Strength option.
Outside Separate – When enabled, the Near Color value is overridden by the Outside Color value for points that are outside the specified geometry.
Outside Solid – When enabled, all the points outside the specified geometry are given the Outside Color value and no blending is performed.
Outside Color – Specifies the color returned by the texture for points that are outside the object(s) specified in the list. A Texture can be applied and blended with the color, using the Mix Strength option.
Objects – Specifies the set of objects to be considered when calculating the colors for each point in the texture. When an object is added to the list, the icon appears next to it. This determines whether the object's children are also considered. It is disabled by default.