Texel A field guide to 3D techniques

Chaotic attractor density rendering × Delta (Woodcock) Tracking

Strange attractors as lit clouds. Strange attractors rendered as physically lit participating media, with self-shadowing and multiple scattering, instead of glowing additive trails. Attractor density is extremely sparse, which suits null-collision tracking over a sparse grid.

Open in StudioReproduced300× · 9.30 ms

Chaotic attractor density renderingSimulation · Real-timein: particlesout: ldr-image, volume-densityvolume-densityDelta (Woodcock) TrackingVolume · Offlinein: volume-densityout: radiance, hdr-image

Verified proof

reproduced · 2026-12-01texel-lablicense MIT
Specimen render of Strange-attractor lit cloud (left: unlit additive density splat, right: delta-tracked scattering + backlit silver lining)
Cross-proof specimen. Strange-attractor lit cloud (left: unlit additive density splat, right: delta-tracked scattering + backlit silver lining). Verified WebGL2 proof · 2026-12-01

Split-screen WebGL2 proof comparing unlit additive chaotic-attractor filament density splatting (left, blowing out overlapping strands without depth cues or self-shadowing) against heterogeneous volume rendering with Woodcock delta-tracking majorant transmittance, Henyey-Greenstein forward-scattered silver linings, and velocity-tinted internal emission (right).

Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · gives chaotic strange-attractor filaments tangible volumetric self-shadowing, depth ordering, and backlit Henyey-Greenstein silver linings

Show GLSL proof (153 lines)
const float P_SIGMA_T = 2.60; // P Optical Density [0.6, 5.5, 0.1]
const float P_ANISO_G = 0.68; // P Forward Scatter g [0.0, 0.9, 0.02]
const float P_EMIT_GAIN = 0.45; // P Velocity Emission [0.0, 1.5, 0.05]
const float P_ORBIT = 0.38; // P Orbit Speed [0.0, 1.2, 0.02]

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

mat2 rot2(float a) {
  float c = cos(a), s = sin(a);
  return mat2(c, -s, s, c);
}

// Smooth volumetric density & velocity magnitude of a double-scroll chaotic strange attractor
vec2 attractorField(vec3 p) {
  float rBound = length(p);
  if (rBound > 1.75) return vec2(0.0);
  // Fold space through 3 chaotic Lorenz/Aizawa-like saddle lobes to form dense filament sheets
  vec3 q = p;
  float vel = 0.0;
  float minD = 1e5;
  for (int i = 0; i < 4; i++) {
    float fi = float(i);
    // Double-wing butterfly orbit symmetry
    vec3 c1 = vec3(0.48, 0.12 * sin(fi * 1.7), 0.16 * cos(fi * 1.3));
    vec3 c2 = vec3(-0.48, -0.12 * sin(fi * 1.7), -0.16 * cos(fi * 1.3));
    vec3 w1 = q - c1;
    w1.xz *= rot2(0.45 + fi * 0.25);
    float ring1 = abs(length(vec2(length(w1.xy) - (0.48 - 0.06 * fi), w1.z * 1.65)) - 0.045);
    vec3 w2 = q - c2;
    w2.yz *= rot2(-0.52 - fi * 0.22);
    float ring2 = abs(length(vec2(length(w2.yz) - (0.46 - 0.05 * fi), w2.x * 1.65)) - 0.045);
    float d = min(ring1, ring2);
    minD = min(minD, d);
    // Chaotic curl warp between folds
    vec3 f = vec3(sin(q.y * 3.1 - q.z * 2.4), sin(q.z * 3.1 - q.x * 2.4), sin(q.x * 3.1 - q.y * 2.4));
    vel += length(f) * 0.25;
    q = q * 1.06 + f * 0.19;
  }
  // Connecting saddle bridge filament between the two chaotic wings
  float bridge = length(vec2(p.y - 0.18 * sin(p.x * 3.2), p.z - 0.14 * cos(p.x * 2.8))) - 0.065;
  bridge = max(bridge, abs(p.x) - 0.72);
  minD = min(minD, abs(bridge));
  // Log-remapped density profile so dense cores and wispy halos coexist
  float raw = exp(-minD * 14.5) * 1.4 + exp(-minD * 5.2) * 0.42;
  float dens = log(1.0 + raw * 3.2) * smoothstep(1.65, 1.05, rBound);
  return vec2(dens, clamp(vel, 0.0, 1.5));
}

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.02), 1.5));
}

// Shadow transmittance ray toward key backlight
float lightTransmittance(vec3 p, vec3 lDir) {
  float tau = 0.0;
  for (int i = 1; i <= 6; i++) {
    vec3 sp = p + lDir * (float(i) * 0.19);
    tau += attractorField(sp).x * 0.19 * P_SIGMA_T;
  }
  return exp(-tau);
}

vec3 acesTone(vec3 x) {
  return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  bool useDelta = uv.x > 0.0;
  vec2 suv = vec2(useDelta ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
  suv.x *= 1.75;

  float ang = 0.55 + iTime * P_ORBIT;
  vec3 ro = vec3(sin(ang) * 3.1, 0.42, cos(ang) * 3.1);
  vec3 fwd = normalize(-ro);
  vec3 right = normalize(cross(vec3(0.0, 1.0, 0.0), fwd));
  vec3 up = cross(fwd, right);
  vec3 rd = normalize(fwd * 1.55 + right * suv.x + up * suv.y);

  // Intersect bounding sphere r = 1.75
  float b = dot(ro, rd);
  float c = dot(ro, ro) - 1.75 * 1.75;
  float disc = b * b - c;

  vec3 keyDir = normalize(vec3(-0.55, 0.45, -0.70));
  // Backlit deep cosmic studio backdrop
  float sunGlow = pow(max(dot(rd, keyDir), 0.0), 18.0);
  vec3 bg = mix(vec3(0.012, 0.016, 0.028), vec3(0.045, 0.062, 0.095), clamp(suv.y + 0.5, 0.0, 1.0));
  bg += vec3(0.55, 0.42, 0.28) * sunGlow * (useDelta ? 0.55 : 0.15);
  vec3 col = bg;

  if (disc > 0.0) {
    float tNear = max(-b - sqrt(disc), 0.0);
    float tFar = -b + sqrt(disc);
    float cosTheta = dot(rd, keyDir);
    float phase = mix(hgPhase(cosTheta, P_ANISO_G), hgPhase(cosTheta, -0.25), 0.22);

    if (!useDelta) {
      // Left: raw unlit additive strange-attractor density splatting (no occlusion or scattering)
      vec3 accum = vec3(0.0);
      const int STEPS = 32;
      float dt = (tFar - tNear) / float(STEPS);
      for (int i = 0; i < STEPS; i++) {
        float t = tNear + (float(i) + 0.5) * dt;
        vec2 av = attractorField(ro + rd * t);
        vec3 vCol = mix(vec3(0.18, 0.52, 0.98), vec3(1.0, 0.46, 0.18), clamp(av.y * 0.85, 0.0, 1.0));
        accum += vCol * av.x * dt * 0.95;
      }
      col = bg + accum;
    } else {
      // Right: Woodcock delta-tracking style ratio-tracked heterogeneous volume with self-shadowing
      float T = 1.0;
      vec3 scat = vec3(0.0);
      float majorant = max(P_SIGMA_T * 1.65, 0.5);
      float jitter = hash31(vec3(fragCoord.xy, floor(iTime * 15.0)));
      float t = tNear + jitter * (1.0 / majorant) * 0.45;
      for (int i = 0; i < 40; i++) {
        if (t > tFar || T < 0.02) break;
        float u = clamp(hash31(vec3(fragCoord.xy + float(i) * 17.3, t * 9.1)), 0.05, 0.98);
        float stepLen = -log(u) / majorant;
        stepLen = clamp(stepLen, 0.04, 0.16);
        t += stepLen;
        if (t > tFar) break;
        vec3 pos = ro + rd * t;
        vec2 av = attractorField(pos);
        float sigma = av.x * P_SIGMA_T;
        float pNull = clamp(1.0 - sigma / majorant, 0.0, 1.0);
        if (sigma > 0.01) {
          float lT = lightTransmittance(pos, keyDir);
          // Multi-scattering approximation boosts deep cloud luminance
          float multi = 0.5 * lT + 0.5 * pow(lT, 0.35);
          vec3 albedo = mix(vec3(0.68, 0.78, 0.92), vec3(0.98, 0.88, 0.76), clamp(av.y * 0.75, 0.0, 1.0));
          vec3 keyLight = vec3(3.8, 3.0, 2.2) * phase * 4.5 * multi;
          vec3 rimAmbient = vec3(0.18, 0.30, 0.54) * (0.45 + 0.55 * pos.y);
          vec3 velEmit = mix(vec3(0.10, 0.42, 0.95), vec3(1.0, 0.42, 0.14), clamp(av.y, 0.0, 1.0)) * P_EMIT_GAIN * av.x;
          float w = sigma / majorant;
          scat += T * w * (albedo * (keyLight + rimAmbient) + velEmit);
          T *= pNull;
        }
      }
      col = scat + T * bg;
    }
  }

  col = acesTone(col);
  if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
  fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}

Why they connect

Chaotic attractor density rendering integrates many trajectories and accumulates them into a 3D volume-density grid rather than a 2D image. Delta (Woodcock) Tracking consumes that volume-density with a majorant grid and samples free-flight distances by null collisions, so scattering, absorption and shadow rays (by ratio tracking) all work on the fractal density without any closed-form integral. It outputs radiance and an hdr-image. Storing the grid sparsely in NanoVDB or OpenVDB keeps memory proportional to the occupied filaments and supplies per-node maxima for tight majorants.

How to build it

CUDA, or Python with a GPU integrator: run RK4 on many seeds after burn-in, splat every sample into a sparse float grid with atomic adds, then remap density with a log curve so the dynamic range stays tractable. Write an OpenVDB file. Render it in Blender Cycles, which reads VDB volumes, with a principled volume, an area light and a dark environment, or in a custom path tracer that uses NanoVDB node maxima as its majorant hierarchy. Colour by velocity or trajectory age stored in a second grid that drives emission or albedo. Try strongly forward-scattering phase functions for backlit silver edges.

Field marks

  1. The huge density range makes majorants loose and renders slow; the log remap trades realism for speed.
  2. Filaments thinner than a voxel alias into dotted structures.
  3. Very dense cores go black under multiple scattering unless they emit.
  4. Animation needs re-splatting every frame.

Prior art

No prior art found on 2026-11-29.

Searches run (4)
  • arXiv: all:"strange attractor" AND all:"volume rendering" → 0 results
  • GitHub repos: "strange attractor" "volume rendering" → 0 results
  • arXiv: all:"Lorenz attractor" AND all:"OpenVDB" → 0 results
  • GitHub repos: "Lorenz attractor" OpenVDB → 0 results