This page provides information on the Distance Map.

 

Page Contents ×

Overview


The VRayDistanceTex is a V-Ray specific procedural texture that returns a different color based on a point's distance to an object(s) specified in a selection list.

In the example image shown here, the far color has been set to red and the near color has been set to green in measuring the distance from the floor plane.

 

 

UI Path


 

||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayDistanceTex

 

Parameters





distance – Specifies a radius outside which all points will be given the far color.

far color – The color returned by the texture for points that are at a distance greater than the radius parameter from the the objects specified in the list.

near color – The color returned by the texture for points that are right at the edges of the object(s) specified in the list. For points that are outside or inside the objects but not exactly next to the them, the color will be determined by blending between the near color and the far color and the radius will serve as a falloff radius. 

inside separate – When enabled, the near color value will be 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 – The color returned by the texture for points that are right inside the object(s) specified in the list. For points that are inside the objects but not exactly next to them the color will be determined by blending between the inside color and the far color and the radius will serve as a falloff radius.

outside separate – When enabled, the near color value will be 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 – The color returned by the texture for points that are outside the object(s) specified in the list. 

 

VRayDistanceTex Textures


far texture – Specifies a texture that will be used instead of the far color.

near texture – Specifies a texture that will be used instead of the near color.

inside texture – Specifies a texture that will be used instead of the inside color.

outside texture – Specifies a texture that will be used instead of the outside color.

distance texture – Specifies a texture that will be used instead of the value in the distance parameter.

 

VRayDistanceTex Objects


A list of objects that are going to be considered when calculating the colors for each point in the texture.