Distance node

Left Toolbar > Value icon Value Nodes > Relief icon Distance node

The Distance node computes the distance of each pixel to the closest pixel with value 0.0.

input
Relief in Img

output
Relief out Img VALUE Image. Min: 0.0 Max: 37.56

Procedure

To create a distance image:

  1. On the left toolbar choose Value Nodes > Distance. Value icon > Relief icon

  2. Drag the Distance icon into the Node Graph.

    Relief node

  3. Connect the input image into the Img socket in the Distance node.

  4. Adjust the attributes of the Distance node to modify the output image.

Inputs

Img
An image. Black pixels in the image will be set as distance 0.0, and all other pixels will be shaded with the distance value to the closest 0.0 pixel.

Outputs

Img
A Value Color Mode image with the distance applied. This image can be plugged into a To Normal node.

Attributes Panel

Relief attributes

Seamless If checked the filter wraps the image in X and Y to produce a tileable seamless image.