---
id: "poisson-disk-sampling"
title: "Poisson Disk Sampling (Bridson)"
aliases: [blue-noise point sampling, dart throwing with grid acceleration]
domain: "procgen"
stage: "procedural"
realtime: "realtime"
platforms: [cpu, python, webgl2, unity, unreal, godot, houdini]
year_introduced: 2007
outputs: [point-cloud]
style: "both"
dynamic: "static"
cost: "cheap"
authority: "Bridson, 2007"
url: "https://texelatlas.vercel.app/t/poisson-disk-sampling/"
sources_verified_at: "2026-11-29"
---
# Poisson Disk Sampling (Bridson) (Bridson, 2007)

> Generates random points that are no closer than a minimum radius and fill space evenly, using a background grid and an active list so it runs in linear time in any dimension.

## Reach for it when

- random scattering clumps and leaves gaps
- need evenly spaced trees, rocks or grass clumps
- points must keep a minimum distance apart
- generate blue-noise sample positions quickly

## How it works

A background grid with cell size r/sqrt(n) stores at most one sample per cell, so a distance check against neighbours is a constant-time lookup of a small window. Start with one random sample in the active list. Repeatedly pick a random active sample, try up to k (about 30) candidates in the annulus between r and 2r around it, and accept the first candidate that is at least r from all existing samples by checking nearby grid cells; add it to the grid and list. If none of the k candidates works, remove the sample from the active list. When the list empties the domain is filled to near-maximal coverage. Variable-radius versions let r depend on position for density maps, and tileable versions wrap the grid.

## When to use it

Choose it for evenly spaced scattering: trees, rocks, grass clumps, lights, attractor points and sample patterns, where uniform random clumps look bad. Prefer [Plant Ecosystem Distribution Simulation](https://texelatlas.vercel.app/t/ecosystem-plant-distribution.md) when ecology (species, competition) matters, [Voronoi Diagrams and Lloyd Relaxation](https://texelatlas.vercel.app/t/voronoi-lloyd-relaxation.md) when you want even cells and are fine with an iterative relaxation, and [Worley (Cellular) Noise](https://texelatlas.vercel.app/t/worley-noise.md) when you want per-pixel feature points without storing any samples.

## Cost

cheap — O(N) in number of points; millions of points feasible on CPU, but not per-pixel on GPU.
Measured GPU Weight: 223.09× baseline (extreme) — 7.3398 ms median / 7.4215 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 203.55× baseline (extreme) — 3.2364 ms median (2.27× faster on L4).
Ampere A100 scaling: 138.15× baseline (extreme) — 3.9788 ms median (1.84× faster on A100).

## Failure modes

- Not strictly maximal: the k-candidate limit leaves small holes
- Output is stateful and sequential, hard to evaluate per-pixel in a shader without precomputation or tiling
- Variable-radius density gradients that change faster than r produce visible banding
- Hard boundaries cause edge effects: samples cluster against domain borders unless padded
- Tileable versions with naive wrapping show duplicated seam rows

## Engine support

- blender: builtin — `Geometry Nodes > Distribute Points on Faces > Poisson Disk` (evidence: https://docs.blender.org/manual/en/5.2/modeling/geometry_nodes/point/distribute_points_on_faces.html, checked 2026-12-01)
- unreal: builtin — `Geometry Script > GeometryScript_MeshSampling.compute_point_sampling with GeometryScriptMeshPointSamplingOptions (Poisson disk sampling_radius)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/GeometryScriptMeshPointSamplingOptions, checked 2026-12-01)

## Dataflow

- Inputs: —
- Outputs: point-cloud
- Platforms: cpu, python, webgl2, unity, unreal, godot, houdini

## Presets

### Poisson disk samples via parallel priority dart throwing, with exclusion discs (glsl-fragment; rendered 2026-11-29)

```json
{
  "CELL": 0.055,
  "RADIUS": 0.085
}
```

```glsl
// Parallel dart-throwing Poisson disk: one random candidate per grid cell, kept only if no nearby candidate has higher priority.
const float CELL = 0.055;
const float RADIUS = 0.085;     // minimum allowed distance between kept points
float h21(vec2 p) { return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }
vec2 cand(vec2 c) { return (c + 0.15 + 0.7 * vec2(h21(c), h21(c + 17.3))) * CELL; }
bool kept(vec2 c) {
    vec2 p = cand(c); float pr = h21(c + 5.1);
    for (int j = -2; j <= 2; j++) for (int i = -2; i <= 2; i++) {
        if (i == 0 && j == 0) continue;
        vec2 o = c + vec2(i, j);
        if (length(cand(o) - p) < RADIUS && h21(o + 5.1) > pr) return false;
    }
    return true;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    vec2 cell = floor(uv / CELL);
    vec3 col = vec3(0.06, 0.07, 0.1);
    float dmin = 1e9;
    for (int j = -2; j <= 2; j++) for (int i = -2; i <= 2; i++) {
        vec2 c = cell + vec2(i, j);
        if (kept(c)) {
            float d = length(uv - cand(c));
            dmin = min(dmin, d);
            col += vec3(0.1, 0.2, 0.3) * smoothstep(0.004, 0.0, abs(d - RADIUS * 0.5));
        }
    }
    col = mix(col, vec3(1.0, 0.8, 0.4), smoothstep(0.009, 0.006, dmin));
    col += vec3(0.04, 0.07, 0.1) * smoothstep(RADIUS * 0.5, 0.0, dmin);
    fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}

```

Attribution: written for this index

## Combines with

- [Voronoi Diagrams and Lloyd Relaxation](https://texelatlas.vercel.app/t/voronoi-lloyd-relaxation.md): Poisson samples seed the Voronoi diagram that Lloyd relaxation then evens out.

## Sources

1. [primary] Robert Bridson (2007) Fast Poisson disk sampling in arbitrary dimensions. ACM SIGGRAPH 2007 sketches. https://doi.org/10.1145/1278780.1278807 (verified via crossref on 2026-11-29)
2. [primary] Robert Bridson Fast Poisson Disk Sampling in Arbitrary Dimensions. cs.ubc.ca. https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf (verified via http on 2026-11-29)
3. [implementation] kchapelier (2015) kchapelier/poisson-disk-sampling. https://github.com/kchapelier/poisson-disk-sampling License: MIT. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Poisson Disk Sampling (Bridson)." https://texelatlas.vercel.app/t/poisson-disk-sampling/ (accessed 2026-12-01).
