Square Enix © Goodbye Kansas

Table of Contents

This page provides information on the V-Ray Distance Map.


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.

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



Parameters


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.


 



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.


 



Example: Holes


In this example the VRayDistanceTex is used as a map for VRayDisplacement in order to achieve the effect of holes on the V-Ray ball.




Example: Sand


For this example, the VRayDistanceTex is used in combination with a Gradient Ramp to achieve the "waves" in the sand.




Example: Force Field


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.


 



Example: Tubes


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