User Guide Cancel

Scatter on Spline Grayscale | Substance 3D Designer

Node icon

In: Spline & Path Tools > Spline Tools

Description

Draws the specified pattern(s) along the input splines over the input background.

The node offers deep customization options for controlling how patterns are scattered.

Some aspects of the scattering may be controlled using images from other nodes in the graph to further the dynamic aspect of the result. 

Note:

Input connectors

Background Grayscale (Primary)
The grayscale image over which splines should be drawn.

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.

Pattern Input # Grayscale
The pattern(s) which should be scattered along the splines.

Scale Map Grayscale
The map controlling the scale of the scattered patterns. The effect of this map is controlled by the ‘Scale Map Input Multiplier’ parameter and is combined with the other parameters in the ‘Size’ group.

Height Map Grayscale
The map controlling the height of the scattered patterns. The effect of this map is controlled by the ‘Height Input Multiplier’ parameter and is combined with the other ‘Color’ parameters in the ‘Color’ group.

Mask Map Grayscale
The map controlling the masking of the scattered patterns. The effect of this map is controlled by the ‘Mask Map Threshold’ parameter and is combined with the other ‘Mask’ parameters in the ‘Color’ group.


Output connectors

Output Grayscale
The image representing the pattern(s) scattered along the input spline(s) over the input background.


Parameters

Spline Input Integer
The method of selecting which splines should be used for scattering patterns:
- All splines: Use all splines in the input list;
- Single Spline: Use only the specified spline from the input list;
- Spline Range: Use only the splines in the specified range from the input list.

Spline Index Integer (Available when ‘Spline Input’ is set to ‘Single Spline’)
The list index of the spline which should be used for scattering patterns.

Spline Range Integer2 (Available when ‘Spline Input’ is set to ‘Spline Range’)
The range of list indexes including the splines which should be used for scattering patterns.

Scatter Mode Integer
The method of scattering the patterns along the splines, which impacts the amount of patterns on each spline:
- Shape Amount: The specified amount of evenly spaced patterns is scattered;
- Shape Spacing: The number of patterns is automatically adjusted to fit the specified even spacing.
In both cases, the first and last patterns fall exactly on the start and end of each spline respectively.

Shape Amount Integer (Available when ‘Scatter Mode’ is set to ‘Shape Amount’)
The amount of evenly spaced patterns scattered along each spline.

Shape Distribution Along Spline Integer (Available when ‘Scatter Mode’ is set to ‘Shape Amount’)
The method of distributing the patterns along a spline:
- From Source: The spacing of the patterns is influenced by the spline point’s tangents, where shapes are further apart near points with long tangents;
- Uniform: The patterns are evenly spaced along the spline regardless of its tangents and trajectory.

Shape Spacing Float (Available when ‘Scatter Mode’ is set to ‘Shape Spacing’)
The minimum distance along a spline by which patterns should be spaced, while still landing the first and last pattern on the start and end of each spline respectively.

Start Float
Offsets the point from the start of a spline where the scattering starts. The value is the normalized length of each spline.

End Float
Offsets the point from the start of a spline where the scattering ends. The value is the normalized length of each spline.

Shape Pivot Float2
Offsets the pivot of the pattern X and Y in spline tangent space.
Considering the pivot is what is placed on the spline, this effectively offsets the patterns along or perpendicularly to the spline.
Note: The positions of the pivots impacts the effect of the ‘Scale’ and ‘Rotation (Pivot)’ parameters.

Non-Square Correction Boolean
Adjust the points’ positions to retain the spline shape in non-square resolutions.


Examples

ScatterOnSplineGrayscale-Variant1-Before
ScatterOnSplineGrayscale-Variant1-After
ScatterOnSplineGrayscale-Variant2-Before
ScatterOnSplineGrayscale-Variant2-After
Node example 2

Node demo 2

Get help faster and easier

New user?