Table of Contents

This page provides information on the Distance Node in V-Ray for Blender.

Overview


 
Distance 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 Path


||Node Editor|| > Add > Textures > Distance

 

Node


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

Far Tex – 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 Tex – 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 Tex – 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 Tex – 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.

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

 

 

 

Parameters


Inside Separate – When this option is enabled, the near color value will be overridden by the inside color value for points that are inside the specified geometry.

Inside Solid – When this option is enabled, all the points inside the specified geometry are given the inside color value and no blending is performed.

Outside Separate – When this option is enabled, the near color value will be overridden by the outside color value for points that are outside the specified geometry.

Outside Solid – When this option is enabled, all the points outside the specified geometry are given the outside color value and no blending is performed.

Compatibility – Allows you to match the result of the Distance texture in Blender to that in either 3ds Max or Maya. If Alpha From is set to Maya:

3ds Max – The resulting alpha of the texture is the intensity of the texture.
Maya 
The resulting alpha of the texture is the color luminescence.

Invert – When enabled inverts the colors in final result.

 Alpha From – Determines how the alpha of the result is calculated:

Force 1.0 – Alpha is always 1.
Compatibility – Depends on the selected Compatibility option.
Self – The calculated alpha of the texture.

Invert Alpha Inverts the alpha channel if Invert is also enabled.