Spline Render

Node icon

In: Spline & Path Tools > Spline Tools

Description

Draws strings of segments along the input Splines over the input Background.

Inputs

Background Grayscale
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.

Outputs

Output Grayscale
The result image of drawing the input Splines on top of the Background.

Parameters

Mode Integer
The method of selecting which splines should be drawn:
- Draw Spline List: Draw all splines in the input list;
- Draw Single Spline: Draw only the specified spline from the input list;
- Draw Spline Range: Draw only the splines in the specified range from the input list.
Draw Spline Index Integer
(Available when ‘Mode’ is set to ‘Draw Single Spline’) The index of the spline that should be drawn.
Draw Spline Range Integer2
(Available when ‘Mode’ is set to ‘Draw Spline Range’) The range of indexes for the splines that should be drawn.
Show Direction Helper Boolean
For each spline, draws a dot at the start of the spline and an arrowhead at its end.
Segments Amount Integer
Adjusts the number of segments drawn along the splines.
A higher value results in smoother lines.
Envelope Spline Amount Integer
The number of duplicate segments that should be drawn along each spline’s thickness.
Start Float
Offsets the start of the portion of the spline which should be drawn.
The value represents the normalized length of the spline.
End Float
Offsets the end of the portion of the spline which should be drawn.
The value represents the normalized length of the spline.
Thickness Size Mode Integer
The method of computing the thickness of the drawn segments:
- Image: the value is normalized in texture space, where 1 is the full width of the image. Thickness is relative to the texture resolution;
- Pixel: the value is an absolute number of pixels in the texture, where 1 is a full pixel. Thickness is separate from the texture resolution.
Thickness (image) Float
(available when ‘Thickness Size Mode’ is set to Image) The thickness of the drawn segments normalized in texture space, where 1 is the full width of the image.
Thickness (px) Float
(available when ‘Thickness Size Mode’ is set to Pixel) The thickness of the drawn segments as an absolute number of pixels in the texture, where 1 is a full pixel.
Enable Joints Boolean
Fills the gaps between the individual segments drawn along the splines, using discs.
Non-Square Correction Boolean
Adjust the points’ positions and thickness to retain the spline shape in non-square resolutions.
This also impacts uniform distribution.
Color
Background Intensity Float
The value multiplied against the Background input image.
Spline Style Integer
The method used to color the splines:
- Solid: The segments are drawn using a uniform grayscale value;
- Gradient: A gradient from black to white is applied along each string of segments from start to end;
- Height: The height of the splines is used as the grayscale value for drawing the segments.
Spline Color Float
The uniform grayscale value used to draw the segments.
When a Spline Style other than ‘Solid’ is selected, this color is multiplied against the styled color.
Random Luminance Float
For each string of uncut segments in a spline, applies a random offset in the specified range to the grayscale value used to draw that string.
Blend Mode Integer
The method of blending the colors of the background and overlapping segments drawn along the splines:
- Max: The brightest value is used;
- Add: The values are added together.
Random Segments
Random Segments Start Float
Adjusts the probability that the string of segments closer to the start of the spline is cut.
Random Segments End Float
Adjusts the probability that the string of segments closer to the end of the spline is cut.
Random Offset Float
Sets the maximum amount of displacement applied to each cut segment along its normal.
This parameter has no effect when Start and End are both set to 0.
Random Offset Center Float
Offsets the center of the random displacement applied to each cut segment along its normal.

Examples

table 0-row-2 html-authored no-header
SplineRender-Variant2-Before
Before
SplineRender-Variant2-After
After
table 0-row-2 html-authored no-header
SplineRender-Variant1-Before
Before
SplineRender-Variant1-After
After
table 0-row-2 html-authored no-header
SplineRender-Variant1-Before
Before
SplineRender-Variant3
After
Node example 1
recommendation-more-help
substance-3d-designer-help-guide