Versions Compared

Key

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

...

Section
Column
width62%

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.

UI Text Box
typeinfo

VRayDistanceTex can be used as a Ramp node's mapping source by plugging it's R channel to the Ramp's U/V slots.


UI Expand
titleUI Path: ||Hypershade|| > Create panel > VRay section > Utilities > VRay Distance Tex

Image RemovedImage Added

Column
width5%

 

Column
width33%

...

Section
Column
width62%

Distance – Specifies a radius outside which all points are given the far color.

Far Color – Specifies 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 – Specifies 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 is determined by blending between the near color and the far color and the radius serves as a falloff radius. 


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 right inside the object(s) specified in the 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 radius serves as a falloff radius.


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. 


Objects – Specifies set of objects to be considered when calculating the colors for each point in the texture.

Column
width5%

 

Column
width33%

 

...

 

Example: Island


This example shows the VRayDistanceTex used with a Gradient map to achieve the effect of varying color on the shore. The same method is used for the land heights.

Image Modified


 

...


Example: Holes

...

VRayDistanceTex here is used to create a hole in the force field based on the position of the spaceship.

 

 

...


Example: Screw


In this scene, the VRayDistanceTex is once used as a Displacement map and once in a Blend material as a blend map for the two different materials.

Image Modified


 

...


Example: Tubes

 

VRayDistanceTex here is used as an Opacity map to make parts of the tubes "disappear".

...