Derive Node Reference

Distortion Node

Description

The Distortion node distorts a source texture based on a destination texture. There are many different approaches to doing that, each yielding different results and distortion effects. In case of this node, the information based on which the distortion is being performed is obtained as follows:

 

1. The destination texture is interpreted as a grayscale height map and thus should be exactly that.

2. The slopes of the heightmap are calculated using a sobel operation.

3. The direction of the slopes determines the direction of the distortion.

4. The steepness of the slopes determines the strength of the distortion for that pixel.

Sample Tree

Properties

Property Name Property Type Description
Strength
Float
Determines the strength of the distortion operation, without interfering with the extraction of the distortion data from the destination texture. The strength value merely acts as a factor for the distortion strength given by the destination texture.

Inputs

Input Name Allowed Data Types Description
Source
Float, RGBA
Input that takes the texture to be distorted.
Destination
Float, RGBA (automatically converted to grayscale, becoming float data)
Input that takes the texture containing the data for distortion direction and strength.

Outputs

Output Name Data Type Description
Output
= Source Data Type
Outputs the source texture with a distortion filter applied to it, whereby the distortion follows the properties specified by the destination texture and the distortion strength.

Login