Cleft Labs Research Monograph · Acoustic Raytracing & Embodied Simulation
CleftAudio: Listener-Centric Adaptive Voxel Level-of-Detail for Real-Time CPU Raytraced Acoustics in Embodied Virtual Worlds
Target Platform: Cleftverse (https://cleftverse.com/) · Native Engine: C++20/OpenMP (g++ 16.2.1) · Verified on AMD Ryzen 5 5500U
Abstract
Physically faithful acoustic simulation in dynamic virtual environments faces a fundamental tension between geometric precision near the listener (where early reflections, head-adjacent obstructions, and direct-path occlusion govern spatial perception and biological mechanosensation) and computational efficiency across large multi-scale spaces. Motivated by Cleftverse, an embodied whole-brain emulation environment in which a spiking Drosophila melanogaster connectome flies inside a physically simulated 4.0 × 3.5 × 2.6 m furnished room, and inspired by Vercidium's real-time CPU raytraced audio pipeline, we introduce CleftAudio: a deterministic C++20/OpenMP acoustic raytracer built around Listener-Centric Distance-Adaptive Voxel Level-of-Detail (Adaptive Voxel LOD).
CleftAudio maintains a dyadic voxel mipmap pyramid (hℓ = 2ℓh0) wrapped in listener-centered power-of-two clipmap shells and traversed by a seamless cross-shell 3D Amanatides–Woo Digital Differential Analyzer (DDA) using O(1) integer-only shell checks. Radial traversal complexity drops from Θ(D/h0) to Θ((R0/h0) log2(D/R0)) while compressing active clipmap memory by up to 94.0% on a 1.62M-voxel multi-scale cathedral hall and 72.4× (10.72 MB → 0.148 MB) on a 224³ cubic scaling domain. Beyond two-band game muffling, CleftAudio computes 8-band (63 Hz–8 kHz) directional room impulse responses (RIRs), Beer–Lambert thickness-proportional material permeation (0.0000 dB max error vs. analytic), ISO 9613-1 atmospheric absorption, escaping-ray outdoor ambience, Vercidium-style wall-hit visualization buffers, and 3-axis near-field particle-velocity IRs (√(1 + (kr)−2), reaching 13.04× / +22.30 dB at r = 2 cm and 210 Hz) for Drosophila Johnston's organ audition.
Across four parametric voxel scenes (5 seeds × 2,048 rays), Conservative Adaptive Voxel LOD reduces DDA steps by 44.4%–70.2% and delivers 1.32×–1.56× OpenMP speedup on large halls while keeping 0.95%–3.03% RT60 error, 0.00 dB direct occlusion error, and 1.06° DOA error (vs. up to 100.70% RT60 error and 17.43 dB occlusion error under Uniform Coarse). Combining Adaptive LOD with a complete spatial movement cache in the Cleftverse v6 room yields a 75.0% cache hit rate and 1.53 ms mean latency (3.01× speedup), while preserving ≤ 0.069 dB 8-band LSD inside the fly's near field (r ≤ 20 cm). Extending the same Amanatides–Woo DDA inward to a millimeter pinna micro-voxel shell (L_ear, 0.5–2.0 mm) unifies room acoustics with coherent outer-ear reflection raytracing across six biological species presets and custom-sculpted ears: Human pinnae yield 13.13 dB front–back contrast (vs. 0.00 dB sphere), Barn Owl vertical asymmetry (Δz = 1.2 cm) creates a 22.68 dB vertical ILD flip (−11.78 → +10.90 dB), Cat swivel steers peak directivity cleanly, and Microbat pinnae at 0.5 mm voxels deliver +7.63 dB forward gain. Finally, we prove and empirically confirm a thin-wall containment failure under Majority downsampling (95.32% sky leakage and 56.91% RT60 collapse in a sealed room), establishing Conservative max-occupancy mipmapping as a requirement for multi-resolution voxel acoustics.
Keywords: raytraced audio, adaptive voxel LOD, clipmaps, Amanatides–Woo DDA, pinna HRTF, ISO 3382, Beer–Lambert permeation, Drosophila Johnston's organ, Cleftverse.
1. Introduction
1.1 Honest Physics Requires Honest Acoustics
Evaluating synaptic-weight hypotheses (Weightomes) inferred from nanoscale connectomics requires placing an emulated nervous system inside a physically honest sensorimotor closed loop [28]. If a virtual world leaks ground-truth coordinates, range vectors, or scripted cues to the brain, flawed synaptic weights can appear behaviourally competent. Cleftverse v6 enforces strict receptor-level honesty inside a furnished 4.0 × 3.5 × 2.6 m virtual room (V = 36.4 m³, S = 67.0 m², mean free path ℓ̄ = 2.173 m, Schroeder frequency fS ≈ 234 Hz): aerodynamics integrate at 5,000 Hz via blade-element vortex models [23, 24] for a 2.5 mm, 1 mg Drosophila melanogaster beating its wings at 210 Hz; compound-eye vision casts BVH rays at 250 Hz into 1,400 ommatidia; airflow, convection, odor plumes, and 50 Hz electric fields arise from continuum physics; and the spiking brain runs at 500 Hz (2 ms step) receiving only leak-audited receptor outputs.
Crucially, Cleftverse v6 explicitly includes the antennal hearing organ (Johnston's organ) among its sensory modalities. Unlike vertebrate tympanic pressure ears, Drosophila audition transduces acoustic particle velocity u(x, t) via rotational deflection of the distal antennal arista and funiculus, a moderately damped harmonic oscillator tuned near 200 Hz [21, 22]. At the 210 Hz wingbeat fundamental (λ = 1.633 m at c = 343 m/s), the near-field boundary kr = 1 lies at r = 26.0 cm, encompassing close-range courtship song and self-wingbeat reflections off the desk and fruit bowl. Simultaneously, human researchers inspecting Cleftverse's 3D viewer benefit from stereo binaural audio (hearing multi-bounce room decay, thickness-dependent wall muffling, and rain entering the open window) paired with visual sound-hit markers alongside airflow and odor overlays.
1.2 Inspiration from Vercidium and Research Hypothesis
Static reverb zones break whenever doors open, furniture moves, or voxel geometry changes. Vercidium's real-time CPU raytraced audio system [25], originating in the destructible voxel game Sector's Edge, proved that compelling dynamic acoustics require neither GPU RT-cores nor baked acoustic probes, using background-threaded CPU raytracing, persistent trail caching, thickness-based wall permeation, echogram reverb, escaping-ray outdoor ambience, and deaf-accessibility wall-hit painting.
Extending this paradigm into a scientific acoustic engine surfaces three challenges: upgrading two-band EAX filtering to 8-band ISO 3382 impulse responses, overcoming the Θ(D/h0) step cost and Θ((D/h0)³) memory footprint of dense voxel grids, and outputting 3-axis near-field particle velocity for biological hearing. We investigate Listener-Centric Distance-Adaptive Voxel LOD: keeping full base resolution h0 inside a near shell R0 around the listener while dyadically coarsening outer shells (hℓ = 2ℓh0), hypothesizing that this dominates the accuracy–efficiency Pareto frontier over both Uniform Fine and Uniform Coarse traversal.
2. Related Work
Wave-based numerical acoustics (FEM, BEM, FDTD) accurately resolve standing room modes and low-frequency diffraction below fS [5], but their O(fmax⁴) spatiotemporal cost precludes broadband real-time simulation up to 8 kHz in mutable scenes [8, 9]. Above fS, geometrical acoustics employs image sources [10], stochastic ray tracing [11], or beam/frustum tracing [12]. Interactive game engines span offline baked voxel FDTD wave fields (Project Acoustics [13]), triangle-mesh ray tracing with static listener probes (Steam Audio [26]), lightweight Ambisonic shoebox zones (Resonance Audio [27]), temporally coherent dynamic mesh propagation [14], and pure-CPU primitive/voxel permeation raytracing (Vercidium Audio [25]). On voxel grids, Amanatides and Woo's DDA [1] minimizes uniform-grid stepping cost, while Clipmaps [15] and Voxel Cone Tracing [16] introduced viewer-centric dyadic mipmaps in computer graphics. CleftAudio adapts viewer-centric clipmaps to bidirectional multi-bounce 8-band acoustics and bioacoustic particle-velocity transport.
3. Mathematical and Acoustic Formulation
3.1 Dyadic Voxel Pyramid and Thin-Wall Containment
Let 𝒢0 be a base 3D voxel grid of edge h0 > 0 storing material identifiers over 8 ISO octave bands fb ∈ {63, 125, 250, 500, 1000, 2000, 4000, 8000} Hz (Table 1). Each coarse voxel c at level ℓ ≥ 1 (hℓ = 2ℓh0) aggregates its 2×2×2 child block 𝒞(c) ⊂ 𝒢ℓ−1 via either Conservative (max-occupancy) downsampling (solid if Nsolid(c) ≥ 1; modal solid material) or Majority (volume-weighted) downsampling (solid if Nsolid(c) ≥ 4).
Table 1. Default 8-band acoustic material properties in engine/include/acoustics.hpp (selected octave bands shown; full 8-band vectors used in simulation).
| Material | α125 | α1k | α4k | s1k | γ125 (dB/m) | γ1k (dB/m) | γ8k (dB/m) | Scene Role |
|---|---|---|---|---|---|---|---|---|
| Concrete | 0.01 | 0.03 | 0.04 | 0.18 | 55.0 | 98.0 | 165.0 | Thick walls, cathedral vaults |
| Wood | 0.12 | 0.07 | 0.08 | 0.26 | 24.0 | 54.0 | 105.0 | Desk, partitions, bookshelf |
| Glass | 0.14 | 0.04 | 0.02 | 0.06 | 18.0 | 42.0 | 84.0 | Glazed windows, dividers |
| Carpet / Fabric | 0.08 | 0.48 | 0.72 | 0.55 | 12.0 | 36.0 | 78.0 | Rug, armchair, cloth |
| Metal | 0.01 | 0.02 | 0.02 | 0.08 | 80.0 | 135.0 | 210.0 | Radiator, steel fixtures |
| Plaster | 0.05 | 0.05 | 0.07 | 0.22 | 36.0 | 72.0 | 130.0 | Cleftverse interior walls |
| Foliage | 0.22 | 0.72 | 0.88 | 0.75 | 6.0 | 22.0 | 52.0 | Plant, porous absorber |
| Sky Portal | 1.00 | 1.00 | 1.00 | 0.00 | 0.0 | 0.0 | 0.0 | Outdoor weather escape boundary |
3.2 Concentric Clipmap Shells & Cross-Shell Amanatides–Woo DDA
Given listener base-voxel position bL = (xL − ow)/h0 and shell radii 0 < R0 < R1 < … < RL−2 < ∞, we snap nested axis-aligned Chebyshev shells 𝒮ℓ to multiples of 2ℓ+1 so every shell plane coincides identically with voxel faces at both levels ℓ and ℓ+1:
Exact Voxel-Face Start Symmetry: When a ray originates exactly on an integer voxel boundary (pa(0) = ⌊pa(0)/Sℓ⌋·Sℓ > 0) with negative direction (da < 0), decrementing ca by 1 enforces exact mirrored ±-axis step symmetry and prevents spurious t = 0 self-hits. On exiting outer_c[ℓ] (coarsening ℓ → ℓ+1) or entering inner_c[ℓ] (refining ℓ → ℓ−1), re-indexing at p(t+ε) preserves exact C⁰ continuity in t with zero seam misses, yielding radial step count Θ((R0/h0) log2(D/R0)) and active working-set footprint:
Algorithm 1: Seamless Cross-Shell Adaptive Voxel LOD DDA
1. t ← 0; ℓ ← lod.level_at(floor(o)); RESYNC(0, ℓ); last_axis ← -1
2. while t ≤ max_t:
if c outside G_ℓ: return ESCAPED
mat ← G_ℓ[c]; stats.cell_lookups++
if mat == MAT_SKY: return SKY_HIT(t)
if mat != MAT_AIR: return SOLID_HIT(t, normal = -step[last_axis]·e_{last_axis}, mat, ℓ)
a* ← argmin_{a∈{x,y,z}} tMax[a]
t ← tMax[a*]; c[a*] += step[a*]; tMax[a*] += tDelta[a*]; last_axis ← a*; stats.dda_steps++
if lod.mode == ADAPTIVE_LOD:
if ℓ < active_levels - 1 and c ∉ outer_c[ℓ]: ℓ++; stats.lod_transitions++; RESYNC(t, ℓ)
else if ℓ > 0 and c ∈ inner_c[ℓ]: ℓ--; stats.lod_transitions++; RESYNC(t, ℓ)
Figure 1. Listener-centric Adaptive Voxel LOD concentric shells (L0–L3), outbound coarsening and return-path refinement nodes, analytical DDA step-count reduction, and Conservative vs. Majority 2×2×2 mipmap downsampling modes.
3.3 Permeation, Multi-Bounce Transport, ISO 3382, and Johnston's Organ Physics
Direct jittered bundles integrate solid path length Δsk through material k to compute 8-band Beer–Lambert loss Lperm,b = Σk γk,bΔsk (dB) and transmission τb = 10−Lperm,b/10. Atmospheric attenuation αair(fb) follows ISO 9613-1 [7] at 20 °C, 50% RH, 101.325 kPa. Multi-bounce rays launch on a deterministic Fibonacci sphere combining specular capture apertures with diffuse Next-Event Estimation (NEE), while escaping rays populate a 16-sector outdoor sky histogram. Room decay is validated against Norris–Eyring RT60 [2, 3] and Schroeder backward integration E(t) = ∫tT h²(τ) dτ [4] for ISO 3382-1 metrics (EDT, T20, T30, C50, C80, D50) [6].
Human stereo RIRs combine an exact unity-sum 8-band LR4 filterbank [20], Woodworth ITD (a/c)(sin|θ|+|θ|) [18] with windowed-sinc fractional delays, Brown–Duda spherical head-shadow ILD [19], and sparse Optimal Velvet Noise late tails [17]. For Cleftverse's embodied Drosophila, Euler's momentum equation yields the monopole near-field velocity boost:
3.4 Multi-Scale Room-to-Pinna Micro-Voxel Raytracing (Lear)
While Woodworth ITD and Brown–Duda spherical head shadowing capture lateral azimuth, vertical elevation localization and front–back disambiguation across the cone of confusion arise from coherent acoustic reflections inside the folded outer ear (pinna) [29, 30, 31]. CleftAudio appends a millimeter Pinna Micro-Voxel Shell (L_ear, hear = 0.5–2.0 mm) as the innermost cascade of its listener-centric Adaptive Voxel LOD hierarchy (L3 → L2 → L1 → L0 → L_ear, spanning a 3,200× scale range). Each ear side is independently parameterized and voxelized (or loaded from arbitrary user-sculpted 3D uint8_t grids) with 5×5×5 occupancy-gradient surface normals.
For each incoming head-local direction d̂, coherent reciprocal Kirchhoff multi-bounce 3D Amanatides–Woo DDA (1,024 wavefront rays/ear, up to 5 bounces) accumulates strictly causal extra path lengths Δdk = pathk − (ph − pc)·d̂local via 8-tap fractional-delay windowed-sinc taps into a 256-sample, 48 kHz HRIR, naturally producing destructive elevation notches fnotch = (2m−1)c/(2Δd) across Human [29, 30, 31], Cat/Fox/Rabbit steerable funnels [32, 33], Barn Owl asymmetric facial ruffs (Δz = 1.2 cm) [34, 35], and Microbat tragus cavities at 0.5 mm voxels [36, 37].
Figure 10. Multi-scale Room (L3–L0) to Millimeter Pinna (L_ear) micro-voxel reflection cascade and comparative species ear morphologies (Human, Cat/Fox/Rabbit, Barn Owl vertical ILD, Microbat tragus & Custom Designer).
4. System Architecture and Implementation
CleftAudio compiles cleanly with g++ 16.2.1 -O3 -std=c++20 -fopenmp -march=native -fPIC -Wall -Wextra -Wpedantic (0 warnings) into engine/build/libcleftaudio.so, with lock-free deterministic OpenMP reduction, complete spatial cache keying (world pointer, monotonic version(), listener pose and orientation, emitter states, full LodConfig and TraceConfig), the ear_model.hpp/.cpp micro-voxel pinna raytracer, and a pure-Python 3.14 stdlib DSP/ISO-3382/ear stack (python/cleftaudio/) bound via byte-exact ctypes. Independent auditing verified 16/16 C++ tests (10 core + 6 bioacoustic ear tests), ASan + UBSan + LSan cleanliness (0 leaks, 0 UB, 0 seam misses across 14,018 transitions), and 28/28 Python tests.
Figure 2. Vercidium-inspired three-stage CPU raytraced audio pipeline extended with 8-band Adaptive Voxel LOD, flat C ABI, binaural DSP, and Johnston's organ particle-velocity output.
Figure 3. Dual-scale acoustic integration inside the exact 4.0 × 3.5 × 2.6 m Cleftverse v6 room (Pathway A: embodied Drosophila Johnston's organ loop; Pathway B: human observer binaural & wall-hit overlay).
5. Experimental Protocol
All experiments ran natively against engine/build/libcleftaudio.so on an AMD Ryzen 5 5500U (6 physical cores / 12 logical threads, AVX2 + FMA, Arch Linux 7.3.6-arch1-2, g++ 16.2.1, Python 3.14.10 stdlib, timestamp 2026-12-06T10:41:49Z; total suite runtime 20.92 s). Zero synthetic values appear anywhere in this paper. Four canonical scenes were evaluated across 7 traversal configurations × 5 deterministic seeds ([42, 101, 202, 303, 404]) at 2,048 rays/trace: S1 Shoebox (8×6×4 m, h0=0.20 m, 29.6k vox), S2 Cleftverse v6 Room (4.0×3.5×2.6 m, h0=0.05 m, 348.1k vox), S3 Occlusion Corridor (h0=0.125 m, 240.2k vox), and S4 Cathedral Pillars (32×24×16 m, h0=0.20 m, 1.62M vox), alongside analytical physics validation (Exp 2), OpenMP/memory/cache scaling (Exp 3), and the 210 Hz Johnston's organ near-field sweep (Exp 4).
6. Quantitative Results
6.1 Experiment 2: Analytical Physics Validation
Table 2. Physics validation against Norris–Eyring RT60 (8×6×4 m shoebox, 80 bounces, 4,096 rays), Beer–Lambert permeation slabs (0.1–1.0 m), and free-field inverse-square spreading (1–16 m).
| Validation Assay | Reference / Regime | Analytic | CleftAudio Measured | Error |
|---|---|---|---|---|
| Shoebox RT60 (ᾱ = 0.10) | Sabine = 1.487 s | Eyring 1.411 s | Est 1.393 s (T20 1.365 / T30 1.332) | 1.34% |
| Shoebox RT60 (ᾱ = 0.25) | Sabine = 0.595 s | Eyring 0.517 s | Est 0.510 s (T20 0.544 / T30 0.532) | 1.42% |
| Shoebox RT60 (ᾱ = 0.50) | Sabine = 0.297 s | Eyring 0.214 s | Est 0.210 s (T20 0.235 / T30 0.236) | 2.15% |
| Shoebox RT60 (ᾱ = 0.75) | Sabine = 0.198 s | Eyring 0.107 s | Est 0.104 s (T20 0.116 / T30 0.122) | 3.05% |
| Beer–Lambert Concrete (1 kHz) | 0.2 / 0.5 / 1.0 m | 21.00 / 52.50 / 105.00 dB | 21.00 / 52.50 / 105.00 dB | 0.0000 dB |
| Beer–Lambert Wood (1 kHz) | 0.2 / 0.5 / 1.0 m | 11.00 / 27.50 / 55.00 dB | 11.00 / 27.50 / 55.00 dB | 0.0000 dB |
| Beer–Lambert Glass (1 kHz) | 0.2 / 0.5 / 1.0 m | 14.40 / 36.00 / 72.00 dB | 14.40 / 36.00 / 72.00 dB | 0.0000 dB |
| Free-Field 1/r² Law | 1 → 16 m (−6.02 dB/dbl) | −24.0824 dB @ 16 m | −24.0824 dB @ 16 m | 0.0000 dB |
Figure 4. Measured vs. analytic Beer–Lambert multi-band thickness attenuation (0.0000 dB error across Concrete, Glass, and Wood) and shoebox RT60 convergence tracking Norris–Eyring within 1.34%–3.05% even where Sabine diverges by +85%.
6.2 Experiment 1: Master Adaptive Voxel LOD Matrix & Downsampling Ablation
Table 3. Complete 28-configuration benchmark matrix (4 scenes × 7 configs × 5 seeds, 2,048 rays/trace; mean ± std for runtime, RT60 relative error, and 8-band LSD).
| Scene | Config | Time (ms) | Spd. | Step Red. | Mem (KB) | Mem Red. | RT60 Err (%) | LSD (dB) | Occ Err | DOA (°) | Sky |
|---|---|---|---|---|---|---|---|---|---|---|---|
| S1 | UF | 11.99 ± 1.77 | 1.00× | 0.0% | 28.9 | 0.0% | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.00 | 0.00° | 0.000 |
| S1 | UC-1 | 8.18 ± 0.60 | 1.49× | 54.3% | 3.6 | 87.5% | 7.62 ± 0.16 | 0.62 ± 0.05 | 0.00 | 10.19° | 0.000 |
| S1 | UC-2 | 6.14 ± 0.65 | 1.98× | 79.7% | 0.5 | 98.2% | 17.30 ± 0.09 | 1.52 ± 0.11 | 0.00 | 17.72° | 0.000 |
| S1 | LOD-Tight-Cons | 11.65 ± 0.46 | 1.03× | 49.8% | 6.8 | 76.3% | 12.71 ± 0.07 | 1.02 ± 0.15 | 0.00 | 15.89° | 0.000 |
| S1 | LOD-Balanced-Cons | 11.81 ± 0.67 | 1.01× | 26.9% | 17.3 | 40.2% | 6.37 ± 0.17 | 0.46 ± 0.15 | 0.00 | 6.91° | 0.000 |
| S1 | LOD-Wide-Cons | 11.95 ± 1.29 | 1.00× | 9.0% | 26.2 | 9.3% | 2.57 ± 0.06 | 0.08 ± 0.05 | 0.00 | 8.93° | 0.000 |
| S1 | LOD-Balanced-Maj | 5.85 ± 0.29 | 2.06× | 75.0% | 17.3 | 40.2% | 56.91 ± 1.11 | 3.65 ± 0.20 | 0.00 | 12.93° | 0.953 |
| S2 | UF | 12.01 ± 0.57 | 1.00× | 0.0% | 339.9 | 0.0% | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.00 | 0.00° | 0.409 |
| S2 | UC-1 | 6.91 ± 1.13 | 1.77× | 51.9% | 42.5 | 87.5% | 6.97 ± 0.98 | 0.21 ± 0.07 | 0.00 | 19.22° | 0.404 |
| S2 | UC-2 | 6.12 ± 0.16 | 1.96× | 76.0% | 5.5 | 98.4% | 13.26 ± 1.10 | 1.48 ± 0.25 | 0.00 | 21.55° | 0.347 |
| S2 | LOD-Tight-Cons | 12.34 ± 0.30 | 0.97× | 43.3% | 66.2 | 80.5% | 4.23 ± 1.11 | 0.58 ± 0.45 | 0.00 | 21.76° | 0.341 |
| S2 | LOD-Balanced-Cons | 12.78 ± 0.36 | 0.94× | 30.1% | 141.7 | 58.3% | 6.34 ± 1.03 | 0.39 ± 0.11 | 0.00 | 12.74° | 0.408 |
| S2 | LOD-Wide-Cons | 13.02 ± 1.25 | 0.93× | 9.2% | 286.9 | 15.6% | 1.64 ± 0.69 | 0.23 ± 0.12 | 0.00 | 10.58° | 0.409 |
| S2 | LOD-Balanced-Maj | 12.35 ± 0.20 | 0.97× | 29.9% | 141.7 | 58.3% | 6.03 ± 0.86 | 0.37 ± 0.16 | 0.00 | 12.44° | 0.409 |
| S3 | UF | 12.52 ± 0.62 | 1.00× | 0.0% | 234.6 | 0.0% | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.00 | 0.00° | 0.216 |
| S3 | UC-1 | 7.00 ± 0.72 | 1.81× | 50.6% | 29.3 | 87.5% | 100.70 ± 3.10 | 1.48 ± 0.83 | 0.00 | 50.52° | 0.210 |
| S3 | UC-2 | 6.25 ± 0.17 | 2.01× | 76.6% | 3.8 | 98.4% | 81.76 ± 1.21 | 1.84 ± 0.72 | 17.43 | 67.76° | 0.188 |
| S3 | LOD-Tight-Cons | 10.96 ± 1.01 | 1.15× | 39.0% | 51.8 | 77.9% | 32.67 ± 1.09 | 1.11 ± 0.38 | 0.00 | 47.99° | 0.166 |
| S3 | LOD-Balanced-Cons | 10.71 ± 2.08 | 1.21× | 20.3% | 104.7 | 55.4% | 23.79 ± 1.22 | 0.77 ± 0.40 | 0.00 | 37.08° | 0.179 |
| S3 | LOD-Wide-Cons | 12.10 ± 0.19 | 1.04× | 10.0% | 168.9 | 28.0% | 12.08 ± 0.80 | 1.43 ± 0.61 | 0.00 | 28.23° | 0.190 |
| S3 | LOD-Balanced-Maj | 9.04 ± 1.52 | 1.42× | 35.6% | 104.7 | 55.4% | 11.61 ± 0.96 | 5.33 ± 1.86 | 0.00 | 47.57° | 0.568 |
| S4 | UF | 15.47 ± 0.91 | 1.00× | 0.0% | 1582.7 | 0.0% | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.00 | 0.00° | 0.056 |
| S4 | UC-1 | 11.04 ± 0.83 | 1.41× | 51.6% | 197.8 | 87.5% | 27.66 ± 1.06 | 1.55 ± 0.50 | 0.00 | 1.83° | 0.048 |
| S4 | UC-2 | 5.88 ± 0.35 | 2.64× | 77.3% | 26.1 | 98.4% | 14.63 ± 1.58 | 1.45 ± 0.51 | 0.00 | 7.36° | 0.031 |
| S4 | LOD-Tight-Cons | 11.54 ± 0.61 | 1.34× | 70.2% | 95.2 | 94.0% | 0.95 ± 0.71 | 1.47 ± 0.63 | 0.00 | 2.63° | 0.027 |
| S4 | LOD-Balanced-Cons | 11.73 ± 1.07 | 1.32× | 57.0% | 241.5 | 84.7% | 3.03 ± 0.68 | 1.68 ± 0.53 | 0.00 | 5.60° | 0.037 |
| S4 | LOD-Wide-Cons | 11.52 ± 1.11 | 1.35× | 44.4% | 446.7 | 71.8% | 2.22 ± 0.35 | 1.35 ± 0.67 | 0.00 | 1.06° | 0.045 |
| S4 | LOD-Balanced-Maj | 10.61 ± 0.96 | 1.47× | 65.4% | 241.5 | 84.7% | 42.36 ± 0.97 | 2.50 ± 1.27 | 0.00 | 1.89° | 0.621 |
Figure 5. Accuracy–efficiency Pareto frontier across all four scenes. Conservative Adaptive Voxel LOD achieves up to 70.2% fewer DDA steps and 94.0% lower active memory on S4 while keeping RT60 error at 0.95%–3.03%.
Table 4. Conservative vs. Majority mipmap downsampling ablation (LOD-Balanced, 5 seeds), empirically confirming Proposition 1's thin-wall thickness threshold.
| Scene | Outer Wall Thickness | Sky (UF) | Sky (Cons) | Sky (Maj) | RT60 Err (Cons) | RT60 Err (Maj) | LSD (Cons) | LSD (Maj) |
|---|---|---|---|---|---|---|---|---|
| S1 Shoebox | 1 vox (0.20 m) | 0.0000 | 0.0000 | 0.9532 | 6.37% | 56.91% | 0.46 dB | 3.65 dB |
| S2 Cleftverse | 2+ vox (0.10 m) | 0.4090 | 0.4078 | 0.4094 | 6.34% | 6.03% | 0.39 dB | 0.37 dB |
| S3 Corridor | 1 vox outer | 0.2161 | 0.1790 | 0.5681 | 23.79% | 11.61% | 0.77 dB | 5.33 dB |
| S4 Cathedral | 1 vox outer | 0.0561 | 0.0373 | 0.6206 | 3.03% | 42.36% | 1.68 dB | 2.50 dB |
Figure 6. Thin-wall containment ablation: Majority downsampling leaks 95.32% of rays out of sealed S1 and 62.06% out of S4, whereas Conservative max-occupancy downsampling preserves acoustic containment.
Figure 7. Schroeder Energy Decay Curves (EDC) and 8-band spectral profiles comparing Uniform Fine, Conservative Adaptive LOD, Majority Adaptive LOD, and Uniform Coarse.
6.3 Experiment 3: OpenMP Scaling, Clipmap Memory & Spatial Cache
Table 5. OpenMP scaling (4,096 rays, 12 bounces on AMD Ryzen 5 5500U, 6C/12T) and cubic clipmap active working-set scaling (h0 = 0.25 m).
| Threads | S4 UF (ms) | S4 LOD (ms) | LOD Spd. | S2 LOD (ms) | Clipmap Grid N³ | UF (MB) | LOD (MB) | Compress. | Step Ratio |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 103.80 | 71.62 | 1.45× | 56.93 | 64³ (16 m) | 0.250 | 0.067 | 3.7× | 1.64× |
| 2 | 51.81 | 36.63 | 1.42× | 28.60 | 96³ (24 m) | 0.844 | 0.092 | 9.1× | 2.32× |
| 4 | 26.82 | 18.07 | 1.49× | 14.50 | 128³ (32 m) | 2.000 | 0.113 | 17.6× | 2.92× |
| 6 | 22.83 | 14.61 | 1.56× | 11.78 | 160³ (40 m) | 3.906 | 0.123 | 31.8× | 3.66× |
| 12 | 20.97 | 16.23 | 1.29× | 12.78 | 192³ (48 m) | 6.750 | 0.138 | 49.0× | 4.35× |
| -- | -- | -- | -- | -- | 224³ (56 m) | 10.719 | 0.148 | 72.4× | 5.00× |
In the 40-frame Cleftverse room spatial cache walkthrough (threshold r = 0.12 m), 30/40 frames hit the cache (75.0%), reducing mean frame latency from 4.62 ms → 1.53 ms (3.01× speedup) with cache hits returning in 5–13 µs.
Figure 8. OpenMP multi-thread speedup (4.90×–4.95× on 6 physical cores) and cubic active clipmap memory scaling showing 72.4× memory compression and 5.00× DDA step reduction at 224³.
6.4 Experiment 4: Cleftverse 210 Hz Drosophila Johnston's Organ Near-Field
Sweeping fly-to-source distance from r = 2 cm (kr = 0.077) to 1.85 m (kr = 7.117) at 210 Hz inside the 4.0×3.5×2.6 m Cleftverse v6 room confirms a 13.04× (+22.30 dB) particle-velocity boost at r = 2 cm and 2.79× (+8.90 dB) at r = 10 cm with strong bilateral antennal asymmetry (+0.465). Inside the biological near-field (r ≤ 20 cm), Adaptive Voxel LOD maintains ≤ 0.069 dB 8-band LSD (0.001 dB at 2 cm) and 2.02% mean arista RMS error (0.153% at 2 cm) while cutting DDA steps ~28%.
Figure 9. Near-field particle velocity boost vs. far-field pressure across r ∈ [2 cm, 1.85 m] at 210 Hz inside the Cleftverse v6 room, plus Adaptive LOD arista RMS fidelity.
6.5 Experiment 5: Outer-Ear Pinna Reflections & Comparative Species Bioacoustics
Evaluating all 7 built-in presets plus Cat (Swivel +55°) and a user-authored Custom Sculpted 3D micro-voxel cup across 25 azimuths, 9 elevations, and full Room→Pinna synthesis inside S2 (1,024 rays/ear × 5 bounces @ 48 kHz; 6.19–9.92 ms per 25-dir OpenMP batch) confirms that removing the pinna collapses front–back contrast and elevation cues to 0.00 dB, whereas Human pinnae deliver 13.13 dB front–back contrast and +5.79 dB forward gain; Barn Owl's Δz = 1.2 cm vertical asymmetry flips ILD by 22.68 dB (−11.78 → +10.90 dB) at az = 0° [34, 35]; Cat +55° swivel steers peak directivity cleanly to 60° [32, 33]; Microbat at 0.50 mm voxels achieves +7.63 dB forward gain [36, 37]; and a custom user-sculpted voxel cup produces 7.04 dB front–back and 6.08 dB elevation discriminability.
Table 6. Experiment 5 comparative outer-ear micro-voxel raytracing across 9 ear models (1,024 rays/ear × 5 bounces @ 48 kHz; experiments/results/ear_species_table.csv).
| Ear Model | a (mm) | Vox (mm) | Grid | ITD90 (µs) | ILD90 (dB) | Fwd Gain | F–B (dB) | Elev Cue | Vert ILD (−30→+30°) | Bounces | 25-Dir (ms) | Room LSD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Human (H. sapiens) | 87.5 | 1.50 | 43×54×67 | +655.8 | +12.24 | +5.79 | 13.13 | 2.35 | +0.05 → −0.21 (0.26) | 2.51 | 9.92 | 6.89 |
| Cat (F. catus) | 45.0 | 1.50 | 50×59×59 | +236.8 | +10.72 | +2.83 | 14.50 | 5.10 | +0.02 → −0.02 (0.04) | 1.37 | 8.59 | 5.61 |
| Red Fox (V. vulpes) | 52.0 | 2.00 | 51×57×73 | +265.9 | +7.31 | +3.27 | 17.56 | 5.02 | +0.03 → +0.01 (0.02) | 1.46 | 8.67 | 5.79 |
| Barn Owl (T. alba) | 38.0 | 1.50 | 46×55×48 | +248.6 | +10.83 | +3.54 | 20.41 | 7.31 | −11.78 → +10.90 (22.68) | 1.23 | 7.99 | 5.46 |
| Microbat (E. fuscus) | 11.0 | 0.50 | 70×91×82 | +61.7 | +5.55 | +7.63 | 12.89 | 1.18 | −0.01 → +0.03 (0.04) | 1.15 | 9.39 | 4.39 |
| Rabbit (O. cuniculus) | 42.0 | 2.00 | 43×50×76 | +212.2 | +9.77 | +0.64 | 15.80 | 6.70 | +0.08 → −0.01 (0.10) | 1.46 | 8.43 | 4.67 |
| Pinna-Less Sphere | 87.5 | 2.00 | 14×20×20 | +655.8 | +14.68 | 0.00 | 0.00 | 0.00 | 0.00 → 0.00 (0.00) | 0.00 | 6.19 | 0.00 |
| Cat (Swivel +55°) | 45.0 | 1.50 | 50×59×59 | +236.8 | +12.63 | +0.57 | 12.98 | 3.19 | +2.02 → −5.13 (7.14) | 1.37 | 8.92 | 4.52 |
| Custom Sculpted Cup | 87.5 | 1.50 | 24×34×44 | +655.8 | +23.12 | −5.71 | 7.04 | 6.08 | +0.03 → −0.09 (0.12) | 2.52 | 8.67 | 4.75 |
Figure 11. Coherent micro-voxel HRTF spectra across elevations (−30°, 0°, +30°, +60°) comparing Human pinna reflections against Pinna-Less Sphere, plus front–back and elevation discriminability across 8 models.
Figure 12. Azimuthal pinna directivity and Cat ear swivel steering (+12° → +55°), paired with Barn Owl's asymmetric vertical elevation ILD crossover (−11.78 → +10.90 dB, 22.68 dB swing) vs. symmetric mammalian ears.
7. Discussion and Limitations
- Compact-Room Overhead Crossover: In small rooms (S1, S2) whose entire Uniform Fine grid fits in CPU L2/L3 cache (29–340 KB), per-step shell-check and
RESYNCoverhead cancels out 27%–50% DDA step savings (0.94×–1.03× raw trace speedup). Adaptive Voxel LOD shines in large multi-scale spaces (S4, 224³) where Uniform Fine overflows cache (up to 1.56× OpenMP speedup, 5.00× fewer steps, 72.4× memory compression), while spatial caching delivers the primary 3.01× latency reduction (1.53 ms) inside compact rooms. - Below-Schroeder Low-Frequency Regime: In the 36.4 m³ Cleftverse room (fS ≈ 234 Hz), the 210 Hz fly wingbeat lies slightly below fS, where standing room modes and edge diffraction exceed pure geometrical ray optics. Our analytic near-field boost captures the dominant close-range physics (r ≤ 26 cm); pairing CleftAudio with a coarse low-frequency modal/FDTD solver below 250 Hz is a clear next step.
- Voxel Staircase Normals & Portal Narrowing: Axis-aligned voxel faces quantize oblique reflections into ±x, ±y, ±z normals, and Conservative downsampling slightly narrows distant open windows (sky fraction 0.0373 vs. 0.0561 on S4). Dual-mask portal-preserving mipmaps can eliminate this bias.
- Listener-Centric Asymmetry: Fine geometry around a distant emitter is traversed coarsely until rays approach the listener, causing higher reflected arista RMS variance at r = 0.40–1.40 m (22%–41% even while LSD remains 0.15–0.47 dB). Dual-focus listener+emitter clipmaps offer a clean remedy.
8. Conclusion and Future Work
CleftAudio demonstrates that Listener-Centric Adaptive Voxel LOD with Conservative max-occupancy mipmapping and O(1) integer-checked cross-shell Amanatides–Woo DDA enables deterministic, pure-CPU 8-band raytraced acoustics with exact Beer–Lambert permeation (0.0000 dB), Norris–Eyring agreement (1.34%–3.05%), up to 70.2% fewer DDA steps and 72.4× working-set memory compression, 1.53 ms cached frame latency, and near-field particle velocity tailored to Drosophila Johnston's organ audition. Future work for Cleftverse v6/v7 includes binding CleftAudio directly into the 2 ms spiking-brain loop to drive JO-A/JO-B populations in the imported 166,884-neuron connectome, hybrid low-frequency modal coupling below 234 Hz, and portal-preserving dual-mask mipmaps.
@techreport{cleftlabs2026cleftaudio,
author = {{Cleft Labs -- CleftAudio Research Initiative}},
title = {CleftAudio: Listener-Centric Adaptive Voxel Level-of-Detail for Real-Time CPU Raytraced Acoustics in Embodied Virtual Worlds},
institution = {Cleft Labs},
year = {2026},
month = dec,
url = {https://cleftverse.com/}
}
References
- Amanatides, J., & Woo, A. (1987). A fast voxel traversal algorithm for ray tracing. Proc. Eurographics '87, 3–10.
- Sabine, W. C. (1922). Collected Papers on Acoustics. Harvard University Press.
- Eyring, C. F. (1930). Reverberation time in "dead" rooms. J. Acoust. Soc. Am., 1(2A), 217–241.
- Schroeder, M. R. (1965). New method of measuring reverberation time. J. Acoust. Soc. Am., 37(3), 409–412.
- Schroeder, M. R. (1996). The "Schroeder frequency" revisited. J. Acoust. Soc. Am., 99(5), 3240–3241.
- ISO 3382-1:2009. Acoustics: Measurement of room acoustic parameters, Part 1: Performance spaces.
- ISO 9613-1:1993. Acoustics: Attenuation of sound during propagation outdoors, Part 1: Atmospheric absorption.
- Savioja, L., & Svensson, U. P. (2015). Overview of geometrical room acoustic modeling techniques. J. Acoust. Soc. Am., 138(2), 708–730.
- Vorländer, M. (2020). Auralization (2nd ed.). Springer.
- Allen, J. B., & Berkley, D. A. (1979). Image method for efficiently simulating small-room acoustics. J. Acoust. Soc. Am., 65(4), 943–950.
- Krokstad, A., Strøm, S., & Sørsdal, S. (1968). Calculating the acoustical room response by ray tracing. J. Sound Vib., 8(1), 118–125.
- Funkhouser, T., et al. (2004). A beam tracing method for interactive architectural acoustics. J. Acoust. Soc. Am., 115(2), 739–756.
- Raghuvanshi, N., et al. (2010). Precomputed wave simulation for real-time sound propagation. ACM Trans. Graph., 29(4), 68:1–11.
- Schissler, C., & Manocha, D. (2016). Interactive sound propagation and rendering for large multi-source scenes. ACM Trans. Graph., 36(1), 2:1–12.
- Tanner, C. C., Migdal, C. J., & Jones, M. T. (1998). The clipmap: A virtual mipmap. Proc. SIGGRAPH '98, 151–158.
- Crassin, C., et al. (2011). Interactive indirect illumination using voxel cone tracing. Comput. Graph. Forum, 30(7), 1921–1930.
- Välimäki, V., Lehtonen, H.-M., & Takanen, M. (2013). A perceptual study on velvet noise and its variants. IEEE TASLP, 21(7), 1481–1488.
- Woodworth, R. S. (1938). Experimental Psychology. Henry Holt and Company.
- Brown, C. P., & Duda, R. O. (1998). A structural model for binaural sound synthesis. IEEE TSAP, 6(5), 476–488.
- Linkwitz, S. H. (1976). Active crossover networks for noncoincident drivers. J. Audio Eng. Soc., 24(1), 2–8.
- Göpfert, M. C., & Robert, D. (2002). The mechanical basis of Drosophila audition. J. Exp. Biol., 205(9), 1199–1208.
- Kamikouchi, A., et al. (2009). The neural basis of Drosophila gravity-sensing and hearing. Nature, 458(7235), 165–171.
- Dickinson, M. H., Lehmann, F.-O., & Sane, S. P. (1999). Wing rotation and the aerodynamic basis of insect flight. Science, 284(5422), 1954–1960.
- Sane, S. P., & Dickinson, M. H. (2002). Aerodynamic effects of wing rotation and a revised quasi-steady model. J. Exp. Biol., 205(8), 1087–1096.
- Vercidium (2023–2026). A First Look At Raytraced Audio & Vercidium Audio SDK Documentation.
- Valve Corporation (2018–2025). Steam Audio SDK.
- Google (2018). Resonance Audio SDK.
- Cleft Labs (2026). Cleftverse: A Physically Faithful World for an Emulated Fly Brain (v6) (https://cleftverse.com/).
- Batteau, D. W. (1967). The role of the pinna in human localization. Proc. R. Soc. Lond. B, 168(1011), 158–180.
- Shaw, E. A. G. (1974). Transformation of sound pressure level from the free field to the eardrum in the horizontal plane. J. Acoust. Soc. Am., 56(6), 1848–1861.
- Blauert, J. (1997). Spatial Hearing: The Psychophysics of Human Sound Localization (Rev. ed.). MIT Press.
- Musicant, A. D., Chan, J. C. K., & Hind, J. E. (1990). Direction-dependent spectral properties of cat external ear. J. Acoust. Soc. Am., 87(2), 757–781.
- Rice, J. J., May, B. J., Spirou, G. A., & Young, E. D. (1992). Pinna-based spectral cues for sound localization in cat. Hearing Research, 58(2), 132–152.
- Payne, R. S. (1971). Acoustic location of prey by barn owls (Tyto alba). J. Exp. Biol., 54(3), 535–573.
- Knudsen, E. I., & Konishi, M. (1979). Mechanisms of sound localization in the barn owl (Tyto alba). J. Comp. Physiol., 133(1), 13–21.
- Wotton, J. M., Haresign, T., & Simmons, J. A. (1995). Spatially dependent acoustic cues generated by the external ear of Eptesicus fuscus. J. Acoust. Soc. Am., 98(3), 1423–1445.
- Aytekin, M., Grassi, E., Sahota, M., & Moss, C. F. (2004). The bat head-related transfer function reveals binaural cues for sound localization. J. Acoust. Soc. Am., 116(6), 3594–3605.