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
| Port | Type | Direction | Description |
|---|---|---|---|
| Weights | Float | Input | The weight map used to prune candidates. |
| Mask | Bool Mask | Input | A hard mask defining the valid sampling area. |
| Points | Point List | Output | The 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.
Float
Bool Mask
Point List