Skip to main content

Poisson Disc Sampler

The Distribution Expert. Generates a list of points across a mask while ensuring that no two points are closer than a specified minimum distance.

Ports

PortTypeDirectionDescription
Weights FloatInputThe weight map used to prune candidates.
Mask Bool MaskInputA hard mask defining the valid sampling area.
Points Point ListOutputThe resulting list of non-overlapping coordinates.

Details

This node uses the Poisson Disc Sampling algorithm to create a "blue noise" distribution. This results in points that feel naturally scattered but uniform, avoiding clusters.

Parameters

  • Min Distance: The minimum spacing (in tiles) between any two points.
  • Max Attempts: How many times the algorithm tries to find a neighbor for a point before giving up (Default: 30).
  • Point Count: If > 0, randomly prunes the final list to match this exact count.