Multi-Bounce Acoustic Ray-Traced Echolocation Point-Cloud Visualization × Physically Modeled NTSC Composite / VHS Tape & CRT Electron-Beam Emulation
Sonar echolocation point clouds on analog VHS-CRT. A dark world revealed only by expanding acoustic pings, displayed as if recorded onto worn magnetic tape and played back on a curved phosphor CRT. Sparse high-contrast sonar dots trigger authentic NTSC chroma ringing, tape tracking jitter, and blooming scanlines that turn bare point clouds into tactile analog telemetry.
Open in StudioReproduced97.5× · 3.02 ms
Verified proof

Split-screen WebGL2 proof comparing a crisp raw acoustic-ping echolocation point cloud raytraced against an architectural corridor SDF (left) against the identical sonar returns piped through NTSC YIQ composite subcarrier chroma bleed, VHS horizontal scanline jitter, phosphor persistence bloom, and curved CRT aperture-grille scanlines (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · transforms sterile sparse sonar point returns into readable, atmospheric analog CRT surveillance imagery with authentic YIQ chroma smear and phosphor persistence
Show GLSL proof (179 lines)
const float P_PING_SPEED = 1.15; // P Sonar Ping Speed [0.4, 2.5, 0.05]
const float P_CHROMA_BLEED = 1.00; // P NTSC Chroma Bleed [0.0, 2.0, 0.05]
const float P_VHS_JITTER = 0.75; // P VHS Line Jitter [0.0, 2.0, 0.05]
const float P_CRT_CURVE = 0.16; // P CRT Barrel Curve [0.0, 0.35, 0.01]
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 hash11(float p) {
p = fract(p * 0.1031);
p *= p + 33.33;
return fract(p * (p + p));
}
float sdBox(vec3 p, vec3 b) {
vec3 q = abs(p) - b;
return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0);
}
// Vaulted bunker corridor with structural ribs, storage crate, and central beacon pylon
vec2 mapCorridor(vec3 p) {
float hall = -sdBox(p - vec3(0.0, 0.25, 0.0), vec3(1.55, 1.15, 12.0));
// Repeating structural arch ribs
vec3 pr = p;
pr.z = mod(p.z + 1.1, 2.2) - 1.1;
float ribL = sdBox(pr - vec3(-1.38, 0.25, 0.0), vec3(0.22, 1.15, 0.14));
float ribR = sdBox(pr - vec3( 1.38, 0.25, 0.0), vec3(0.22, 1.15, 0.14));
float ribT = sdBox(pr - vec3(0.0, 1.24, 0.0), vec3(1.55, 0.18, 0.14));
float ribs = min(min(ribL, ribR), ribT);
float d = min(hall, ribs);
float mat = 1.0;
// Foreground crate and central cylindrical scanner pylon
float crate = sdBox(p - vec3(-0.78, -0.58, 3.1), vec3(0.38, 0.32, 0.42));
if (crate < d) { d = crate; mat = 2.0; }
float pylon = length(p.xz - vec2(0.32, 4.4)) - 0.26;
pylon = max(pylon, abs(p.y + 0.15) - 0.78);
if (pylon < d) { d = pylon; mat = 3.0; }
float backWall = 8.4 - p.z;
if (backWall < d) { d = backWall; mat = 1.0; }
return vec2(d, mat);
}
vec3 calcNormal(vec3 p) {
vec2 e = vec2(0.008, -0.008);
return normalize(
e.xyy * mapCorridor(p + e.xyy).x +
e.yyx * mapCorridor(p + e.yyx).x +
e.yxy * mapCorridor(p + e.yxy).x +
e.xxx * mapCorridor(p + e.xxx).x
);
}
vec3 evalSonarRaw(vec2 suv, float t) {
vec3 ro = vec3(0.0, -0.10, -0.35);
vec3 rd = normalize(vec3(suv.x * 1.15, suv.y * 1.05, 1.18));
float dist = 0.0;
float mat = 0.0;
bool hit = false;
for (int i = 0; i < 42; i++) {
vec3 pos = ro + rd * dist;
vec2 res = mapCorridor(pos);
if (res.x < 0.006) { hit = true; mat = res.y; break; }
dist += res.x * 0.92;
if (dist > 10.5) break;
}
if (!hit) return vec3(0.004, 0.008, 0.012);
vec3 pos = ro + rd * dist;
vec3 n = calcNormal(pos);
// Expanding primary acoustic ping + delayed 2nd-bounce echo shell
float cycle = fract(t * 0.24 * P_PING_SPEED);
float pingR = cycle * 11.2;
float dPing = length(pos - ro);
float wave1 = exp(-max(pingR - dPing, 0.0) * 1.35) * smoothstep(pingR + 0.18, pingR - 0.06, dPing);
float echoR = fract(cycle - 0.18) * 11.2;
float wave2 = 0.55 * exp(-max(echoR - dPing, 0.0) * 1.9) * smoothstep(echoR + 0.16, echoR - 0.05, dPing);
float acoustic = clamp(wave1 + wave2 + 0.10 * exp(-dPing * 0.22), 0.0, 1.35);
// Quantized 3D acoustic ray-hit point cloud lattice on hit surfaces
float density = 9.5;
vec3 cell = floor(pos * density);
vec3 f = fract(pos * density) - 0.5;
vec3 jitter = vec3(hash31(cell), hash31(cell + 17.1), hash31(cell + 53.7)) - 0.5;
float ptDist = length(f - jitter * 0.52);
float pt = smoothstep(0.24, 0.06, ptDist);
// Incidence weighting: surfaces facing the sonar emitter return brighter pings
float facing = 0.28 + 0.72 * abs(dot(n, -rd));
float energy = pt * acoustic * facing * (1.25 / (1.0 + 0.14 * dPing * dPing));
// Surface tag color coding: cyan architecture, amber crates, hot coral hazard pylon
vec3 tagCol = vec3(0.18, 0.92, 0.88);
if (mat > 1.5 && mat < 2.5) tagCol = vec3(1.00, 0.68, 0.22);
else if (mat > 2.5) tagCol = vec3(1.00, 0.26, 0.42);
// Faint wavefront contour ring on floor/walls
float ringLine = smoothstep(0.14, 0.0, abs(dPing - pingR)) * 0.42 * facing;
return tagCol * (energy * 2.15 + ringLine) + vec3(0.006, 0.014, 0.020);
}
vec3 rgb2yiq(vec3 c) {
return vec3(
dot(c, vec3(0.299, 0.587, 0.114)),
dot(c, vec3(0.596, -0.274, -0.322)),
dot(c, vec3(0.211, -0.523, 0.312))
);
}
vec3 yiq2rgb(vec3 y) {
return vec3(
dot(y, vec3(1.0, 0.956, 0.621)),
dot(y, vec3(1.0, -0.272, -0.647)),
dot(y, vec3(1.0, -1.106, 1.703))
);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
bool useCRT = uv.x > 0.0;
vec2 suv = vec2(useCRT ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
suv.x *= 1.85;
vec3 col = vec3(0.0);
if (!useCRT) {
col = evalSonarRaw(suv, iTime);
} else {
// CRT barrel distortion on right panel coordinates
vec2 c = suv * vec2(1.08, 1.06);
float r2 = dot(c, c);
vec2 dUv = c * (1.0 + P_CRT_CURVE * r2);
float bezel = smoothstep(0.52, 0.48, abs(dUv.x)) * smoothstep(0.51, 0.47, abs(dUv.y));
// VHS horizontal tracking jitter per scanline
float lineIdx = floor((dUv.y + 0.5) * 210.0);
float trackBand = smoothstep(0.86, 0.99, sin(dUv.y * 9.0 - iTime * 2.1));
float jitterX = (hash11(lineIdx + floor(iTime * 24.0) * 13.7) - 0.5) * (0.0045 + 0.018 * trackBand) * P_VHS_JITTER;
vec2 jUv = vec2(dUv.x + jitterX, dUv.y);
// NTSC composite YIQ band-limiting: sharp luma + horizontally smeared I/Q chroma + ringing
float dx = 0.0075 * max(P_CHROMA_BLEED, 0.15);
vec3 s0 = evalSonarRaw(jUv, iTime);
vec3 sL = evalSonarRaw(jUv - vec2(dx, 0.0), iTime);
vec3 sR = evalSonarRaw(jUv + vec2(dx, 0.0), iTime);
vec3 sL2 = evalSonarRaw(jUv - vec2(dx * 2.2, 0.0), iTime);
vec3 sR2 = evalSonarRaw(jUv + vec2(dx * 2.2, 0.0), iTime);
vec3 y0 = rgb2yiq(s0);
vec3 yL = rgb2yiq(sL);
vec3 yR = rgb2yiq(sR);
vec3 yL2 = rgb2yiq(sL2);
vec3 yR2 = rgb2yiq(sR2);
// VHS luma peaking + subcarrier cross-color fringe
float luma = y0.x * 1.18 - 0.09 * (yL.x + yR.x);
float chromaI = (yL2.y * 0.14 + yL.y * 0.24 + y0.y * 0.30 + yR.y * 0.20 + yR2.y * 0.12);
float chromaQ = (yL2.z * 0.18 + yL.z * 0.25 + y0.z * 0.24 + yR.z * 0.20 + yR2.z * 0.13);
float subPhase = sin(dUv.x * 190.0 + lineIdx * 3.14159 + iTime * 12.0);
chromaI += (y0.x - yL.x) * 0.16 * subPhase * P_CHROMA_BLEED;
vec3 ntsc = max(yiq2rgb(vec3(max(luma, 0.0), chromaI * (1.0 + 0.22 * P_CHROMA_BLEED), chromaQ * (1.0 + 0.22 * P_CHROMA_BLEED))), 0.0);
// Phosphor bloom / persistence trail
vec3 bloom = (sL + sR + sL2 + sR2) * 0.22;
ntsc += bloom * vec3(0.65, 1.05, 0.95) * 0.42;
// Subtle VHS tape snow on tracking band
float snow = hash11(dot(floor(fragCoord.xy * 0.5), vec2(12.7, 78.3)) + floor(iTime * 30.0));
ntsc += vec3(0.18) * smoothstep(0.92, 1.0, snow) * (0.22 + trackBand) * P_VHS_JITTER;
// CRT scanlines + RGB phosphor shadow-mask triad modulation
float scan = 0.72 + 0.28 * cos((dUv.y + 0.5) * 210.0 * 6.2831853);
float triad = mod(floor(fragCoord.x), 3.0);
vec3 mask = triad < 0.5 ? vec3(1.12, 0.88, 0.88) : (triad < 1.5 ? vec3(0.88, 1.12, 0.88) : vec3(0.88, 0.88, 1.12));
col = ntsc * scan * mask * bezel * (1.0 - 0.35 * r2);
}
col = col / (1.0 + col * 0.55);
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
Multi-Bounce Acoustic Ray-Traced Echolocation Point-Cloud Visualization traces primary and multi-bounce acoustic rays from an emitter, stamps hit positions with travel-time arrival timestamps and attenuation, and rasterizes active echoes into a dark, high-contrast ldr-image as expanding time-gated rings of decaying points. Physically Modeled NTSC Composite / VHS Tape & CRT Electron-Beam Emulation takes that ldr-image, encodes it into luma and quadrature chroma on a band-limited composite carrier, injects VHS head-switching noise, chroma delay, and horizontal timebase wobble, then decodes and displays the signal through phosphor mask, scanline beam bloom, and subtle glass curvature.
How to build it
In WebGL2 or WebGPU, cast a burst of 10k-50k acoustic rays against a scene BVH or analytical SDF on each ping, recording up to two specular/diffuse wall bounces into a ring buffer of (position, arrivalTime, energy, surfaceTag). Each frame, project and draw points whose arrivalTime falls within the trailing acoustic decay window, fading brightness smoothly with time and distance into a 4:3 intermediate render target (e.g., 640x480). Run a two-pass composite signal post-process: Pass 1 converts RGB to YIQ, modulates chroma onto a subcarrier with phase alternating per scanline, low-pass filters chroma aggressively, and applies VHS luma sharpening plus per-line horizontal jitter; Pass 2 demodulates YIQ back to RGB, applies phosphor persistence/bloom for bright pings, and composites CRT scanlines and barrel curvature.
Field marks
- Single-pixel sonar points can alias or disappear completely between CRT scanlines unless points are drawn as soft 2-3 px splats before signal encoding.
- Aggressive NTSC chroma low-pass filtering smears thin colored echoes sideways; keep primary acoustic intensity in luma and reserve color for material tags.
- Excessive VHS horizontal wobble harms spatial legibility when navigating dark corridors by echo alone.
- Multi-bounce acoustic rays can crowd the ring buffer in small enclosed rooms without distance or energy culling.
Prior art
- spite/codevember-2026. Open-source interactive experiment pairing acoustic ray-traced echolocation point clouds with NTSC composite VHS/CRT signal emulation; listed here as an untested Arena cross awaiting a standalone WebGL2 reproduction.