User Guide Cancel

Spline Sample Thickness | Substance 3D Designer

Node icon

In: Spline & Path Tools > Spline Tools

Description

Modifies the thickness of the input splines by mapping an input Thickness Map onto them.

The effect of the mapped height map can be adjusted by changing its blending mode and the opacity of that effect.


Input connectors

Preview Grayscale
The preview of the input splines as a grayscale image.

Spline Coords Color
The coordinates of the input splines’ points encoded in the RGBA channels of a color image:
    R - X position
    G - Y position
    B - Height
    A - Packed data:
        - Sign: Spline is closed (negative) or open (positive);
        - Absolute value: Thickness + 1.

Spline Data Color
Additional data of the input splines encoded in the RGBA channels of a color image.
    R - Tangents X
    G - Tangents Y
    B - Unused
    A - Unused

Spline Amount Integer
The number of input splines.

Thickness Map Grayscale
The input grayscale image used to change the input spline’s thickness.


Output connectors

Preview Grayscale
The preview of the output splines as a grayscale image.

Spline Coords Color
The coordinates of the output splines’ points encoded in the RGBA channels of a color image.
    R - X position
    G - Y position
    B - Height
    A - Packed data:
        - Sign: Spline is closed (negative) or open (positive);
        - Absolute value: Thickness + 1.

Spline Data Color
Additional data of the output splines encoded in the RGBA channels of a color image.
    R - Tangents X
    G - Tangents Y
    B - Unused
    A - Unused

Spline Amount Integer
The number of output splines.


Parameters

Sampling Mode Integer
The method of mapping the values in the Thickness Map to the splines:
- Texture space: The values are applied to the splines where they would be if placed in a texture using the texture’s UV coordinates. This effectively applies the value to the splines ‘in place’;
- Horizontal along spline: The values are applied to the encoded splines’ coordinates directly (see Spline Coords input), where each row is applied to a different spline from top to bottom;
- Hor. along spline (rand. offset X): The values are applied to the encoded splines’ coordinates directly (see Spline Coords input), with a random horizontal offset in the Scale map for each spline (I.e., each row in Spline Coords);
- Hor. along spline (rand. offset Y): The values are applied to the encoded splines’ coordinates directly (see Spline Coords input), with a random vertical offset in the Scale map for each spline (I.e., each row in Spline Coords).

Opacity Float
A multiplier for the intensity of the Thickness Map input’s contribution to the spline’s thickness.

Blending Mode Integer
The method of blending the Thickness Map’s data with the input spline’s thickness:
- Copy: Override the spline’s thickness with the Height Map values;
- Add: Add the Thickness Map values to the spline’s thickness;
- Subtract: Subtract the Thickness Map values to the spline’s thickness;
- Multiply: Multiply the Thickness Map values against the spline’s thickness.


Examples

SplineSampleThickness-Variant1-Before
SplineSampleThickness-Variant1-After
SplineSampleThickness-Variant2-Before
SplineSampleThickness-Variant2-After
Node example 1

Node example 2

Get help faster and easier

New user?