Studio Yotsuba
Back to Node List

Path Coordinate Map

path_coordinate_map

Turn a path's parameter space into images: progress along the path, signed lateral distance, absolute distance, an influence mask, and the sub-path id. Feed them into Gradient Map, dither, Height or Emission to build path-following gradients (flame tails, light trails, roads, ridges) from existing nodes.

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Bezier path whose parameter space is rendered. Each sub-path keeps its own progress (0 at its start, 1 at its end).

Output Ports

NameTypeDescription
Progress
progress
Image
Grayscale image of the arc-length position (0 = start, 1 = end) of the nearest sub-path point. Feed into Gradient Map for head-to-tail gradients.
Lateral
lateral
Image
Signed distance across the path, normalized by Influence Radius: 0.5 on the line, above 0.5 on the left of travel, below on the right.
Distance
distance
Image
Absolute distance to the path, normalized by Influence Radius (0 on the line, 1 at and beyond the radius). Feed into Gradient Map for edge-to-center glows.
Mask
mask
Image
White where the distance is within Influence Radius, transparent elsewhere. Use to clip the gradients above to the band around the path.
Sub-path ID
subpath_index
Image
Grayscale id of the nearest sub-path: (index + 1) / count. Threshold it to isolate one branch of a multi-sub-path path (e.g. branching paths).

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
00–1024

Output width in pixels. 0 uses the path's canvas size (or 64 if the path has none).

Height
height
Int
00–1024

Output height in pixels. 0 uses the path's canvas size (or 64 if the path has none).

Influence Radius
influence_radius
Float
80.5–128 / step 0.5

How far (px) the lateral/distance outputs reach before clamping, and the mask's band width. Small values (2-4) hug the line for thin trails; larger values (8-16) make wide glows and roads.

Overview

Renders the coordinate system around a path rather than drawing the path itself. Feed progress, signed lateral distance, or absolute distance into Gradient Map and mask nodes to build path-following gradients, glows, and left/right ribbon coloring from existing tools.

Usage tips

  • For trails or flame tails, map progress through gradient_map from bright at the head to transparent at the tail, then composite it through mask.
  • For line glow, map distance from a bright center to transparent outside. A radius of 8–16px gives a broad glow; 2–4px gives a narrow outline.
  • To color branches independently, threshold or palette-map subpath_index from a multi-path or branching input.
  • The outputs can also drive Surface height and emission. Distance mapped to height is a short route to ruts or raised ridges.
  • Progress runs independently from 0 to 1 on every subpath. Join paths first if one continuous progression across multiple lines is required.

Common mistakes

  • The output appears solid black or white: Influence Radius may be so small that distance saturates immediately. Increase it to the intended band width.
  • Left and right are reversed: the sign of lateral follows path direction, with the left side above 0.5. Use path_reverse to invert it.
  • The result is 64×64: width and height of 0 inherit the path canvas. A raw path without canvas dimensions requires explicit width and height.

Related nodes

  • path_stroke / path_fill — draw a path; this node supplies coordinates instead
  • gradient_map — the usual consumer that turns coordinate images into color
  • layers_to_surface — direct role-tagged path-to-Surface conversion; coordinate maps are more flexible for carefully designed color or height bands
  • path_reverse — reverse progress direction and the lateral sign
Back to Node List