Visual Hull (Shape from Silhouette) × Soft particles (depth-fade billboards)
Depth-feathered soft-particle smoke wrapping live visual-hull silhouettes. Carving an instant multi-camera visual hull of a moving actor or sculpture supplies a real-time 3D proxy depth buffer that lets soft-particle mist, steam, or glowing dust wrap seamlessly around live bodies without hard billboard clipping lines.
Open in StudioReproduced55.7× · 1.73 ms
Verified proof

Split-screen WebGL2 proof comparing a multi-camera carved visual hull surrounded by hard-clipped smoke quads with stark intersection seams (left) against visual-hull linear depth feathering soft-particle volumetric smoke clouds wrapping seamlessly around the live actor silhouette (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · eliminates hard smoke billboard clipping seams across a live multi-view visual hull via linear depth-feathered soft-particle shrouding
Show GLSL proof (174 lines)
const float P_FADE_RAD = 0.48; // P Soft Fade Radius [0.08, 0.95, 0.02]
const float P_SMOKE_DENS = 0.95; // P Shroud Smoke Alpha [0.2, 1.6, 0.05]
const float P_HULL_VOX = 0.25; // P Voxel Hull Quant [0.0, 1.0, 0.05]
const float P_DANCE_SPD = 0.85; // P Silhouette Motion [0.0, 1.6, 0.05]
float hash21(vec2 p) {
p = fract(p * vec2(127.1, 311.7));
p += dot(p, p + 34.5);
return fract(p.x * p.y);
}
float vnoise(vec2 p) {
vec2 i = floor(p);
vec2 f = fract(p);
vec2 u = f * f * (3.0 - 2.0 * f);
return mix(
mix(hash21(i), hash21(i + vec2(1.0, 0.0)), u.x),
mix(hash21(i + vec2(0.0, 1.0)), hash21(i + vec2(1.0, 1.0)), u.x),
u.y
);
}
float sdCapsule(vec3 p, vec3 a, vec3 b, float r) {
vec3 pa = p - a, ba = b - a;
float h = clamp(dot(pa, ba) / max(dot(ba, ba), 1e-5), 0.0, 1.0);
return length(pa - ba * h) - r;
}
float smin(float a, float b, float k) {
float h = clamp(0.5 + 0.5 * (b - a) / max(k, 1e-5), 0.0, 1.0);
return mix(b, a, h) - k * h * (1.0 - h);
}
// Multi-camera visual hull approximation of a moving actor silhouette (faceted convex-intersection silhouette)
float sdVisualHull(vec3 p, float t) {
float tt = t * P_DANCE_SPD;
// Optional subtle voxel quantization mimicking 64^3 visual-hull carving
float qScale = mix(64.0, 22.0, P_HULL_VOX);
vec3 qp = mix(p, (floor(p * qScale) + 0.5) / qScale, P_HULL_VOX * 0.45);
float sway = 0.14 * sin(tt * 1.4);
float armLiftL = 0.25 + 0.32 * sin(tt * 1.8);
float armLiftR = 0.18 + 0.30 * cos(tt * 1.6);
float torso = sdCapsule(qp, vec3(sway * 0.3, -0.22, 0.0), vec3(sway, 0.34, 0.02), 0.22);
float head = length(qp - vec3(sway * 1.15, 0.64, 0.04)) - 0.165;
float armL = sdCapsule(qp, vec3(sway - 0.18, 0.28, 0.02), vec3(-0.68, armLiftL, 0.22 * sin(tt)), 0.095);
float armR = sdCapsule(qp, vec3(sway + 0.18, 0.28, 0.02), vec3(0.68, armLiftR, -0.22 * cos(tt)), 0.095);
float legL = sdCapsule(qp, vec3(-0.11, -0.20, 0.0), vec3(-0.24, -0.92, 0.08 * sin(tt)), 0.115);
float legR = sdCapsule(qp, vec3(0.11, -0.20, 0.0), vec3(0.24, -0.92, -0.08 * sin(tt)), 0.115);
float d = smin(torso, head, 0.09);
d = smin(d, min(armL, armR), 0.10);
d = smin(d, min(legL, legR), 0.10);
return d;
}
vec3 calcNormal(vec3 p, float t) {
vec2 e = vec2(0.004, -0.004);
return normalize(
e.xyy * sdVisualHull(p + e.xyy, t) +
e.yyx * sdVisualHull(p + e.yyx, t) +
e.yxy * sdVisualHull(p + e.yxy, t) +
e.xxx * sdVisualHull(p + e.xxx, t)
);
}
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 res = max(iResolution.xy, vec2(1.0));
vec2 uvN = fragCoord / res;
float splitX = iMouse.z > 0.0 ? clamp(iMouse.x / res.x, 0.05, 0.95) : 0.5;
bool useSoft = uvN.x > splitX;
vec2 p = (fragCoord - 0.5 * res) / res.y;
float t = iTime;
float camA = sin(t * 0.35) * 0.35;
vec3 ro = vec3(sin(camA) * 2.75, 0.12, cos(camA) * 2.75);
vec3 ta = vec3(0.0, -0.08, 0.0);
vec3 fw = normalize(ta - ro);
vec3 ri = normalize(cross(vec3(0.0, 1.0, 0.0), fw));
vec3 up = cross(fw, ri);
vec3 rd = normalize(fw * 1.58 + ri * p.x + up * p.y);
// Dark theatrical stage backdrop with subtle floor
vec3 bg = mix(vec3(0.04, 0.05, 0.08), vec3(0.10, 0.13, 0.20), clamp(p.y + 0.55, 0.0, 1.0));
vec3 col = bg;
float sceneDepth = 12.0;
// Stage floor at y = -0.96
float tFloor = (-0.96 - ro.y) / (abs(rd.y) < 1e-5 ? 1e-5 : rd.y);
if (tFloor > 0.05 && rd.y < -0.005) {
sceneDepth = min(sceneDepth, tFloor);
vec3 fp = ro + rd * tFloor;
float ring = smoothstep(0.03, 0.005, abs(length(fp.xz) - 1.15));
float spot = exp(-dot(fp.xz, fp.xz) * 0.55);
vec3 fCol = vec3(0.08, 0.10, 0.14) * (0.4 + 1.1 * spot) + vec3(0.28, 0.65, 0.85) * ring * 0.35;
col = mix(fCol, bg, 1.0 - exp(-tFloor * 0.18));
}
// Pass 1: Trace carved visual-hull proxy into linear sceneDepth
float d = 0.2;
bool hitHull = false;
for (int i = 0; i < 64; i++) {
float h = sdVisualHull(ro + rd * d, t);
if (h < 0.003) { hitHull = true; break; }
d += max(h * 0.82, 0.01);
if (d > sceneDepth) break;
}
if (hitHull && d < sceneDepth) {
sceneDepth = d;
vec3 wp = ro + rd * d;
vec3 N = calcNormal(wp, t);
vec3 V = -rd;
vec3 L1 = normalize(vec3(-0.75, 0.55, 0.35));
vec3 L2 = normalize(vec3(0.78, 0.38, -0.42));
float ndl1 = max(dot(N, L1), 0.0);
float ndl2 = max(dot(N, L2), 0.0);
float rim = pow(1.0 - max(dot(N, V), 0.0), 3.0);
vec3 hullAlb = vec3(0.32, 0.36, 0.44);
col = hullAlb * (vec3(0.14, 0.16, 0.22) + vec3(1.35, 0.72, 0.38) * ndl1 + vec3(0.35, 0.92, 1.25) * ndl2);
col += mix(vec3(1.15, 0.58, 0.28), vec3(0.32, 0.88, 1.18), step(0.0, wp.x)) * rim * 0.65;
}
// Pass 2: 20 swirling stage smoke & rim mist billboards wrapping the visual hull
vec3 smokeAccum = vec3(0.0);
float smokeTrans = 1.0;
for (int i = 0; i < 20; i++) {
float fi = float(i);
float ang = fi * 0.62831 + t * (0.42 + 0.08 * mod(fi, 3.0));
float radOrbit = 0.36 + 0.42 * hash21(vec2(fi, 2.3));
float rise = fract(fi * 0.17 + t * 0.18);
vec3 pos = vec3(cos(ang) * radOrbit, -0.82 + rise * 1.55, sin(ang) * radOrbit);
float pRad = mix(0.36, 0.62, rise);
float denom = dot(rd, fw);
float tBill = dot(pos - ro, fw) / (abs(denom) < 1e-5 ? 1e-5 : denom);
if (tBill > 0.25 && tBill < sceneDepth) {
vec3 bp = ro + rd * tBill;
vec3 off = bp - pos;
vec2 luv = vec2(dot(off, ri), dot(off, up)) / pRad;
float r2 = dot(luv, luv);
if (r2 < 1.0) {
float wisp = vnoise(luv * 2.6 + vec2(fi * 4.1, -t * 0.6)) * 0.65 + vnoise(luv * 5.2 - fi) * 0.35;
float alpha;
if (!useSoft) {
// Left baseline: hard billboard quad slicing abruptly against actor hull & floor
alpha = smoothstep(1.0, 0.52, r2) * smoothstep(0.24, 0.64, wisp) * 0.58 * P_SMOKE_DENS;
} else {
// Right: linear depth feathering against visual-hull proxy depth buffer
float depthDelta = sceneDepth - tBill;
float softFade = smoothstep(0.0, P_FADE_RAD, depthDelta);
float gauss = exp(-r2 * 2.4) * (0.42 + 0.78 * wisp);
alpha = gauss * softFade * sin(rise * 3.14159) * 0.62 * P_SMOKE_DENS;
}
alpha = clamp(alpha, 0.0, 0.82);
// Theatrical two-tone warm amber (left) & cyan (right) volumetric smoke scatter
float sideMix = clamp(pos.x * 0.9 + 0.5, 0.0, 1.0);
vec3 smokeCol = mix(vec3(0.95, 0.52, 0.26), vec3(0.26, 0.78, 0.98), sideMix) * (0.55 + 0.45 * wisp);
smokeAccum += smokeTrans * alpha * smokeCol;
smokeTrans *= (1.0 - alpha);
}
}
}
col = col * smokeTrans + smokeAccum;
col = acesTone(col * 1.08);
if (abs(fragCoord.x - splitX * res.x) < 1.0) 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
Visual Hull (Shape from Silhouette) intersects silhouette masks from calibrated multi-view cameras across a 3D voxel grid, outputting occupied boundary voxels and a coarse watertight proxy mesh. The hop to Soft particles (depth-fade billboards) is composite: rasterize the carved visual-hull proxy into the active camera's linear depth buffer (and optionally spawn emitter particles along boundary voxels with outward silhouette normals). Soft particles (depth-fade billboards) then draws camera-facing smoke and mist billboards against that proxy depth buffer, smoothly attenuating particle alpha whenever |z_hull - z_particle| shrinks below the particle radius.
How to build it
Project each cell of a 64^3 voxel volume into 4-8 calibrated virtual or live silhouette masks; keep voxels projecting inside every foreground mask and ray-march or mesh the carved shell into a linear scene-depth target (plus a screen-space normal/velocity estimate). Spawn buoyant soft smoke particles along the hull's silhouette rim or ambiently around the stage, sort back-to-front, and compute depth fade fade = smoothstep(0.0, particleRadius, linearDepth(sceneDepth) - linearDepth(gl_FragCoord.z)) multiplied by a radial Gaussian sprite mask. The visual hull provides both occlusion and smooth depth feathering at interactive frame rates.
Field marks
- Visual hulls cannot carve true concavities (such as cupped hands or concave bowls), causing smoke particles to fade early in phantom convex pockets.
- Sparse camera counts (<4 views) create faceted polyhedral depth edges that reveal subtle angular seams in dense fog.
- Noisy live silhouette segmentation flickers boundary voxels frame to frame, introducing temporal pumping in soft-particle opacity.
- Overdraw from dozens of overlapping large soft sprites around a close-up hull quickly becomes fill-rate bound on integrated GPUs.
Prior art
No prior art found on 2026-12-01.
Searches run (2)
- arXiv: all:"visual hull" AND all:"soft particles"
- GitHub repos: "visual hull" "soft particles"