---
id: "delta-tracking"
title: "Delta (Woodcock) Tracking"
aliases: [Woodcock tracking, null-collision tracking, ratio tracking]
domain: "volumes"
stage: "volume"
realtime: "offline"
platforms: [cpu, cuda, desktop-gpu, blender, houdini]
year_introduced: 1965
inputs: [volume-density]
outputs: [radiance, hdr-image]
style: "photoreal"
dynamic: "both"
cost: "offline"
authority: "Kutz et al., 2017"
url: "https://texelatlas.vercel.app/t/delta-tracking/"
sources_verified_at: "2026-11-29"
---
# Delta (Woodcock) Tracking (Kutz et al., 2017)

> An unbiased way to sample free-flight distance in heterogeneous media by adding fictitious null collisions until the medium looks homogeneous with a constant majorant.

## Reach for it when

- path-traced smoke or clouds need unbiased results
- heterogeneous volume sampling without a step size setting
- ray-march banding in offline volume renders
- sample scattering distances in a varying density medium

## How it works

Sampling a distance proportional to transmittance is easy only when density is constant. Delta tracking picks a majorant sigma_max that bounds the true extinction everywhere along the ray, draws tentative step lengths from an exponential with rate sigma_max, and at each tentative point accepts a real collision with probability sigma_t(x) over sigma_max; otherwise it treats it as a null collision and continues in the same direction. Because only the density value, not an integral, is needed, it works with any procedural or voxel density. Variants include ratio tracking for estimating transmittance along shadow rays (multiplying by one minus the acceptance probability), residual tracking with a control medium, and spectral and decomposition tracking for chromatic media. A coarse majorant grid (often a DDA over a low-resolution max grid) keeps the null-collision count small.

## When to use it

Choose it in a path tracer for clouds, smoke or explosions where you need unbiased heterogeneous transmittance and scattering without a step-size parameter.

Prefer [Ray-marched Participating Media](https://texelatlas.vercel.app/t/volume-ray-marching.md) for real-time, deterministic cost, and biased but cheap results. Prefer [Multiple-Scattering Approximation by Octaves](https://texelatlas.vercel.app/t/multiple-scattering-octaves.md) when you only want a plausible interactive multi-scatter look. Use [OpenVDB](https://texelatlas.vercel.app/t/openvdb.md) or [NanoVDB](https://texelatlas.vercel.app/t/nanovdb.md) as the density store with a majorant grid.

## Cost

offline — Number of null collisions depends on how tight the majorant is; a loose majorant over a sparse medium makes it very slow.
Measured GPU Weight: 406.27× baseline (extreme) — 13.3662 ms median / 13.527 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 341.69× baseline (extreme) — 5.4328 ms median (2.46× faster on L4).
Ampere A100 scaling: 302.49× baseline (extreme) — 8.7117 ms median (1.53× faster on A100).

## Failure modes

- Loose majorants produce huge numbers of null collisions and long render times
- High variance in thin media with an unlucky single sample, producing fireflies in direct lighting through ratio tracking
- Chromatic media (different sigma per channel) bias or noise unless handled by spectral tracking
- Lighting from small light sources in dense media needs next-event estimation or noise explodes
- Majorant grid cells that do not cover the density interpolation kernel cause energy loss

## Engine support

- blender: builtin — `Properties > Render > Volumes > Biased (leave disabled, the default) in Cycles` (evidence: https://docs.blender.org/manual/en/5.2/render/cycles/render_settings/volumes.html, checked 2026-12-01) — The default (non-Biased) mode is based on null scattering, the generalisation of delta tracking.

## Dataflow

- Inputs: volume-density
- Outputs: radiance, hdr-image
- Platforms: cpu, cuda, desktop-gpu, blender, houdini

## Presets

### Delta (Woodcock) tracking — heterogeneous volume free-flight & null-collision scatter (glsl-fragment; rendered 2026-11-30)

```json
{
  "P_MAJORANT": 2.8,
  "P_DENSITY": 1.5,
  "P_ANISOTROPY": 0.62,
  "P_SCATTER_STEPS": 28
}
```

```glsl
const float P_MAJORANT = 2.8; // P Majorant SigmaMax [0.8, 5.0, 0.1]
const float P_DENSITY = 1.5; // P Cloud Density [0.2, 3.2, 0.05]
const float P_ANISOTROPY = 0.62; // P Phase g [0.0, 0.9, 0.02]
const float P_SCATTER_STEPS = 28.0; // P Tracking Steps [8.0, 44.0, 1.0]

float hash31(vec3 p) {
  p = fract(p * 0.1031);
  p += dot(p, p.yzx + 33.33);
  return fract((p.x + p.y) * p.z);
}

float noise3(vec3 p) {
  vec3 i = floor(p);
  vec3 f = fract(p);
  f = f * f * (3.0 - 2.0 * f);
  float n000 = hash31(i + vec3(0.0, 0.0, 0.0));
  float n100 = hash31(i + vec3(1.0, 0.0, 0.0));
  float n010 = hash31(i + vec3(0.0, 1.0, 0.0));
  float n110 = hash31(i + vec3(1.0, 1.0, 0.0));
  float n001 = hash31(i + vec3(0.0, 0.0, 1.0));
  float n101 = hash31(i + vec3(1.0, 0.0, 1.0));
  float n011 = hash31(i + vec3(0.0, 1.0, 1.0));
  float n111 = hash31(i + vec3(1.0, 1.0, 1.0));
  return mix(
    mix(mix(n000, n100, f.x), mix(n010, n110, f.x), f.y),
    mix(mix(n001, n101, f.x), mix(n011, n111, f.x), f.y),
    f.z
  );
}

float fbm(vec3 p) {
  float v = 0.0, a = 0.52;
  for (int i = 0; i < 4; i++) {
    v += a * noise3(p);
    p = p * 2.04 + vec3(13.1, 7.7, 5.3);
    a *= 0.5;
  }
  return v;
}

// Heterogeneous extinction sigma_t(p) bounded inside sphere of radius 1.15
float evalSigmaT(vec3 p) {
  float r = length(p);
  if (r > 1.15) return 0.0;
  float fall = smoothstep(1.15, 0.28, r);
  vec3 q = p * 1.9 + vec3(iTime * 0.22, -iTime * 0.14, iTime * 0.18);
  float d = fbm(q) - 0.34;
  // Swirling filament structure
  float swirl = fbm(q * 1.6 + vec3(d * 1.5, -d, d * 0.8));
  float dens = max(0.0, d * 1.45 + (swirl - 0.42) * 0.85) * fall;
  return dens * max(P_DENSITY, 0.05) * 2.2;
}

float hgPhase(float cosTheta, float g) {
  float g2 = g * g;
  return (1.0 - g2) / (12.56637 * pow(max(1.0 + g2 - 2.0 * g * cosTheta, 0.05), 1.5));
}

vec2 intersectSphere(vec3 ro, vec3 rd, float rad) {
  float b = dot(ro, rd);
  float c = dot(ro, ro) - rad * rad;
  float h = b * b - c;
  if (h < 0.0) return vec2(-1.0);
  h = sqrt(h);
  return vec2(-b - h, -b + h);
}

vec3 aces(vec3 x) {
  x = max(x, 0.0);
  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;

  float camAng = iTime * 0.25;
  vec3 ro = vec3(sin(camAng) * 2.85, 0.35, cos(camAng) * 2.85);
  vec3 ww = normalize(-ro);
  vec3 uu = normalize(cross(ww, vec3(0.0, 1.0, 0.0)));
  vec3 vv = cross(uu, ww);
  vec3 rd = normalize(uv.x * uu + uv.y * vv + 1.45 * ww);

  vec3 sunDir = normalize(vec3(cos(iTime * 0.45 + 0.6), 0.52, sin(iTime * 0.45 + 0.6)));
  vec3 bg = mix(vec3(0.025, 0.04, 0.075), vec3(0.09, 0.14, 0.24), clamp(rd.y * 0.5 + 0.5, 0.0, 1.0));
  bg += vec3(1.0, 0.78, 0.48) * pow(max(dot(rd, sunDir), 0.0), 48.0) * 1.4;

  vec2 hit = intersectSphere(ro, rd, 1.15);
  vec3 col = bg;

  if (hit.y > 0.0) {
    float t = max(hit.x, 0.0);
    float tEnd = hit.y;
    float sigmaMax = max(P_MAJORANT, 0.5);
    int maxSteps = int(clamp(P_SCATTER_STEPS, 6.0, 44.0));
    float g = clamp(P_ANISOTROPY, 0.0, 0.92);

    // Ratio/Delta tracking estimator with null-collision free-flight sampling
    float seed = fract(sin(dot(fragCoord, vec2(12.9898, 78.233))) * 43758.5453);
    float T = 1.0;
    vec3 L = vec3(0.0);
    float phase = hgPhase(dot(rd, sunDir), g);

    for (int i = 0; i < 44; i++) {
      if (i >= maxSteps || t >= tEnd || T < 0.015) break;
      float xi = fract(seed + float(i) * 0.61803398875);
      // Exponential free-flight step drawn from majorant sigmaMax
      float dt = -log(max(1.0 - xi * 0.96, 0.04)) / sigmaMax;
      dt = min(dt, (tEnd - t) + 0.01);
      t += dt;
      if (t >= tEnd) break;

      vec3 p = ro + rd * t;
      float sigmaT = evalSigmaT(p);
      // Ratio-tracking null-collision probability: 1 - sigmaT / sigmaMax
      float realProb = clamp(sigmaT / sigmaMax, 0.0, 1.0);

      if (realProb > 0.001) {
        // Short shadow transmittance ray toward sun via ratio tracking
        float Tsun = 1.0;
        for (int s = 1; s <= 5; s++) {
          vec3 sp = p + sunDir * (float(s) * 0.24);
          Tsun *= exp(-evalSigmaT(sp) * 0.24);
        }
        vec3 sunCol = vec3(2.8, 2.05, 1.35) * Tsun * (0.28 + 3.8 * phase);
        vec3 ambCol = mix(vec3(0.14, 0.24, 0.45), vec3(0.55, 0.68, 0.88), clamp(p.y * 0.5 + 0.5, 0.0, 1.0)) * 0.55;
        vec3 albedo = mix(vec3(0.95, 0.72, 0.52), vec3(0.92, 0.96, 1.0), clamp(Tsun, 0.0, 1.0));
        L += T * realProb * albedo * (sunCol + ambCol);
        T *= (1.0 - realProb);
      }
    }

    // Subtle wireframe majorant bounding sphere rim to highlight the tracking domain
    float rim = pow(clamp(1.0 - abs(dot(normalize(ro + rd * max(hit.x, 0.0)), rd)), 0.0, 1.0), 4.0);
    col = L + bg * T + vec3(0.28, 0.62, 0.95) * rim * 0.22;
  }

  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}
```

Attribution: Original interactive WebGL2 fragment shader written for Texel Atlas (MIT).

## Combines with

- [OpenVDB](https://texelatlas.vercel.app/t/openvdb.md): Supplies density and a hierarchical max-grid that bounds the majorant along each ray.

## Combination ideas

- [Strange attractors as lit clouds](https://texelatlas.vercel.app/ideas/attractor-clouds-delta-tracked/)

## Sources

1. [primary] Peter Kutz, Ralf Habel, Yining Karl Li, Jan Novák (2017) Spectral and decomposition tracking for rendering heterogeneous volumes. ACM Transactions on Graphics. https://doi.org/10.1145/3072959.3073665 (verified via crossref on 2026-11-29)
2. [primary] Jan Novák, Iliyan Georgiev, Johannes Hanika, Wojciech Jarosz (2018) Monte Carlo Methods for Volumetric Light Transport Simulation. Computer Graphics Forum. https://doi.org/10.1111/cgf.13383 (verified via crossref on 2026-11-29)
3. [implementation] mitsuba-renderer (2021) mitsuba-renderer/mitsuba3. https://github.com/mitsuba-renderer/mitsuba3 License: NOASSERTION. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Delta (Woodcock) Tracking." https://texelatlas.vercel.app/t/delta-tracking/ (accessed 2026-12-01).
