In Light Sampling and the Area Jacobian, we established an admissible light sampling density over directional measure . Earlier, Importance Sampling: Phong Lobe vs Cosine evaluated two BSDF probability density functions for a single surface integral, both parameterized natively in . Here, we unify both strategies to evaluate direct illumination from an area source across a kiln mouth.
We consider two distinct sampling distributions to evaluate the direct radiance integral. The first is driven by a Phong–Lambert BSDF. The second draws samples uniformly across a planar rectangular emitter and transforms that area measure via the geometric Jacobian. Evaluated against their respective sampling densities, each independent estimator is strictly unbiased; crucially, their variance profiles are complementary, exhibiting high variance in domains where the alternate strategy remains well-behaved. The balance heuristic combines both techniques by weighting each sample according to its normalized relative density:
Under an equal sample allocation across techniques, the sample counts cancel identically, preserving the canonical balance weight formulation . The resulting combined estimator remains provably unbiased. The area-to-solid-angle conversion in the light-sampling density retains the quadratic distance term ; neglecting this term or omitting the emitter foreshortening factor introduces a systematic bias, an error mode analyzed in detail in our area Jacobian discussion.
The variance characteristics of dual-BSDF sampling, including the normalization distinction between in the sampling PDF and in the evaluated BRDF under a horizon boundary rule, are preserved from Importance Sampling: Phong Lobe vs Cosine. From Light Sampling and the Area Jacobian, the emitter density transformed to directional measure is defined as:
We instantiate this directional density directly as . Furthermore, the projected solid angle subtended by the diffuse component uses the signed contour formulation established in Solid Angle and the Rendering Equation.
The test environment comprises the kiln-mouth glaze shelf benchmark: a planar rectangular muffle aperture set flush within an array of firebrick, illuminating a pale ceramic glaze tile on a stoneware support alongside two pyrometric cones and a wooden rib serving as scale references. The virtual camera is positioned at low grazing angles along the shelf, oriented toward the aperture.

Numerical benchmarks were executed on Mesa 25.0.7 llvmpipe in linear Rec.709, displaying via Khronos PBR Neutral () under pseudorandom seed 20260926. Surface reflectance parameters are specified as , , and specular exponent . Source emitter radiance is configured to , yielding a luminance of . The aperture area spans , with an exact bounding product of .
Two probe locations on the receiver tile exhibit divergent integrand behaviors:
- At the specular highlight boundary (the lip), , the aperture subtends a projected solid angle of , yielding exitant luminance and a specular-to-diffuse ratio of .
- At an off-specular observation point (the miss), , the projected solid angle is , with and a specular-to-diffuse quotient of , rendering the specular contribution negligible relative to the Lambertian diffuse component.
Evaluating the minimum root-mean-square error demonstrates that the BSDF sampling arm dominates at the lip across sample counts and , whereas the light sampling arm dominates at the miss location across the same allocations (winner_lip_N64, winner_lip_N1024, winner_miss_N64, winner_miss_N1024).
Convergence was tracked across sample budgets . At the lip position, the relative RMSE evolves as follows:
- BSDF sampling:
- Light sampling:
- Balance heuristic:
At the off-specular miss location, the error convergence is:
- BSDF sampling:
- Light sampling:
- Balance heuristic:
Spatial standard error evaluated over a 12 mm radius measurement disk at corroborates these variance regimes. At the lip probe, light sampling exhibits an elevated disk mean standard error of (reported in summary as 0.308) compared to for BSDF sampling, while the combined balance estimator achieves . Conversely, at the miss probe, BSDF sampling degrades to a disk mean error of versus for light sampling, with the balance heuristic settling at .
Evaluating the directional densities and assigned weights directly along the perfect specular reflection vector at the lip reveals:
All integration tolerances and validation suites satisfy the test harness constraints (53 pass / 0 fail).
The variance distribution across the tile provides the central experimental comparison. The standard error map across the evaluations illustrates that the light-sampling technique exhibits pronounced variance spikes along the specular perimeter (screen-right, ) while maintaining minimal noise across off-specular regions (screen-left, ). Conversely, the BSDF sampling distribution exhibits severe variance across the off-specular region where rays fail to hit the aperture. The balance heuristic tracks close to the optimal low-variance arm in both regimes, bounding variance across the spatial domain without requiring explicit a priori classification of the dominant transport mode.

Scene
The radiometric pipeline operates entirely in scene-referred linear Rec.709. For visualization, tone mapping utilizes Khronos PBR Neutral with parameters , , , and , followed by the IEC 61966-2-1 sRGB opto-electronic transfer function (OETF) evaluated at 64-bit precision.
- Kiln environment: Visualized using the balance heuristic at combined with an analytic diffuse component at resolution, illustrating the aperture, surrounding masonry, and reference geometry.
- Three-arm comparative evaluation: Direct visual comparisons of BSDF sampling, emitter sampling, and the balance heuristic at across 640 by 720 subpanels (assembled into a 1920 by 720 frame). The optical setup maintains a 46 degree vertical field of view under Khronos PBR Neutral. Noticeable high-frequency variance appears in the BSDF frame where specular samples miss the light source, whereas emitter sampling generates isolated high-luminance outliers on the specular reflection boundary.

- Variance error plate: Renders the per-pixel empirical standard error of the estimator across all three configurations under a unified colormap scale. The scale ceiling is normalized to the peak single-pixel variance observed on the tile,
stderr_scale_max. The mean error within the 12 mm measurement disk at the lip under light sampling () reaches roughly one third of this absolute peak. Off-tile background elements are masked outside the metric scale. - Convergence ladder: Compares relative RMSE across discrete budgets evaluated against high-precision reference quadrature for both probe coordinates. Each row uses an independent vertical normalization.

- Run metrics summary: Summary capture containing configuration parameters (seed 20260926, projected solid angle , exitant luminance , RMSE convergence ladders, localized disk standard errors, convergence winners, and verification suite assertions 53 pass / 0 fail).

To avoid misinterpreting the data, two methodological representations are strictly delineated:
- Rendered photographs depict display-referred outputs transformed via Khronos PBR Neutral and sRGB transfer functions. Radiometric quantities, solid angles, and absolute errors cannot be extracted from display code values; at low sampling rates (), extreme sample weights under light sampling may compress to the display white point.
- Instrumentation plates and tables represent uncompressed double-precision numerical evaluations computed directly from the Monte Carlo estimators. Absolute physical metrics should always be referenced from the tabulated data.
Method
Two legal arms on one mouth
The rendering equation evaluated at a coordinate on the receiver tile demands an integral over directional measure. The BSDF sampling arm constructs this domain from a mixture distribution: with probability , it draws from a cosine-weighted hemisphere about the surface normal, and with complementary probability, it draws from a Phong lobe centered on the ideal reflection of the view vector. The light sampling arm draws a uniform areal sample from the planar aperture, transforming this area density to directional measure via the geometric Jacobian. Both estimators evaluate outgoing radiance , fully accommodating the specular component.
The analytic diffuse form serves as ground truth strictly for the Lambertian contribution. Assessing a glossy estimator against and identifying the residual as bias represents a methodological error. At the specular boundary (the lip), the specular contribution dominates the diffuse component by approximately a factor of four. At the off-specular location (the miss), the specular term vanishes, and the estimators converge cleanly to the diffuse ground truth.
Lip. The ideal reflection vector cast from intersects the emitter plane exactly at . (The numerical output in the metrics table evaluates this intersection precisely as ). This coordinate lies 80 mm above the sill and 0.22 m from either lateral edge. Because the Phong lobe (with exponent 160) is centered precisely on this intersection, the specular sampling distribution heavily favors the active emitter. The aperture subtends a solid angle of . An exponent of this magnitude restricts the effective lobe support to a cap of approximately , rendering the aperture approximately eight times larger than the primary lobe region. Consequently, a uniform areal draw across the emitter frequently misses the high-density peak, but infrequently places a sample directly within it. These sparse, high-density hits induce extreme variance (fireflies) under light sampling. The BSDF arm, aligned natively with the lobe peak, maintains bounded variance. In visual evaluation, this light sampling failure manifests as localized speckling along the lower boundary of the reflected aperture.
Miss. The ideal reflection vector cast from fails to intersect the emitter. The computed intersection evaluates to , missing laterally past the left edge and vertically below the sill. The maximum dot product across the entire emitter domain evaluates to , located roughly off the ideal reflection axis. Furthermore, this observation angle is significantly more grazing: at the miss, compared to at the lip. The specular integral evaluates numerically to zero in this configuration. The entire evaluated radiance derives from the Lambertian component distributed cleanly over the aperture. Nevertheless, the mixture density statically assigns of its samples to a specular lobe that fails to intersect the emitter. A given cosine-weighted sample intersects the aperture with probability , approximately at this location. Light sampling, conversely, correctly stratifies every sample across the active emitter. Given the low frequency of the Lambertian integrand across the rectangular domain, the area-sampled estimator exhibits minimal variance. Visually, the BSDF sampling failure manifests as pronounced high-frequency noise on the tile where the specular highlight has detached from the active light source.
Balance. Under the balance heuristic, each sample weight is formulated as its generating density normalized by the sum of all evaluated densities. When an area-sampled ray lands directly within the narrow specular lobe—where evaluates to an extreme magnitude—it receives a severely attenuated weight. This mechanism rigorously suppresses the firefly variance at the lip. Evaluated precisely at the mirror intersection, the light sample weight is throttled to , while the BSDF sample, drawn natively from the optimal density, dominates at .
Conversely, when a BSDF sample intersects the emitter far along the Lambertian flank—where represents the optimal area density—it is similarly down-weighted. If either constituent density evaluates to zero, the opposing weight resolves to 1. Sample rays that miss the emitter entirely evaluate to zero integrand regardless. The combined estimator remains provably unbiased provided each constituent technique is individually unbiased and the resulting weights form a valid partition of unity over the non-zero integrand support.
The balance heuristic successfully bounds the maximum error, tracking consistently below the inferior sampling technique across all discrete budgets from through , and constraining the localized error within the spatial standard error disks. It does not strictly guarantee lower variance than the optimal single technique for a given spatial location. At the lip probe, the pure BSDF arm achieves lower absolute error. At the miss probe, the pure light arm minimizes error. The balance heuristic tracks just above the BSDF error curve at the lip (bounding far below the light arm) and tracks just above the light error curve at the miss.
All three sampling strategies evaluated here represent mathematically valid estimators. The tone mapping (Neutral) is applied consistently across all panels in the visual comparisons because none of the evaluated techniques suffers from divergent weighting errors.
The balance weight
We establish the foundational geometry and radiometric quantities for a single evaluation point , an outgoing direction , and a rectangular source region:
| symbol | meaning | unit |
|---|---|---|
| shade point on the tile | ||
| point on the mouth | ||
| , tile toward the mouth | unitless | |
| direction from toward the eye | unitless | |
| tile normal, | unitless | |
| mouth normal, , into the room | unitless | |
| unitless | ||
| unitless | ||
| mouth area | ||
| on the mouth, else 0 | ||
| unitless | ||
| Phong exponent, 160 on the hero | unitless | |
| Lambert weight, Phong weight | unitless | |
| , | unitless | |
| constant one-sided mouth radiance | linear Rec.709 | |
| mouth integrand | linear Rec.709 | |
| outgoing radiance from the mouth | linear Rec.709 | |
| projected solid angle of the mouth | ||
| the two densities | ||
| integrand evaluations in one estimate | count | |
| , the count of each technique inside balance | count |
We note that both directional cosines are strictly positive across every evaluation point on the source for both camera instrument positions. The measured spatial minima evaluate to at the lip and at the miss, alongside at the lip and at the miss.
BSDF. The scattering function comprises a Lambertian component and a Lafortune-parameterized Phong lobe aligned with the reflection vector . The formulation remains achromatic, sharing the exact decomposition detailed in our prior importance-sampling analysis.
Our locked geometric reflection parameters are , , and . This parameterization yields discrete mixture weights of and . The evaluation pipeline strictly logs these as and .
Observe that the BRDF normalization utilizes the constant , whereas the probability density normalizes by . At , this distinction amounts to a fractional offset of exactly . Consequently, evaluating a standard white furnace test at our primary exponent provides limited sensitivity to a swapped normalization term. However, the ratio affords a direct algebraic verification. To expose a swapped constant empirically, the furnace must be evaluated over a broader distribution, such as . At this exponent, the numerical mean evaluates to against the reference albedo , thereby exposing a relative discrepancy of approximately .
Evaluating the BSDF operates algorithmically as a unified sampling technique. We draw standard uniform variates . If , we sample the cosine-weighted hemisphere (, ). Otherwise, we sample the Phong lobe centered on (, ). The cumulative geometric contribution is subsequently divided by the total marginal density . It is critical that the balance heuristic evaluates this complete marginal mixture; dividing solely by the active component density fundamentally alters the statistical expectation. If , the integrand converges to 0, the sample contributes to the fixed budget, and remains unrenormalized, strictly preserving the importance-sampling horizon constraint. At both focal points, the lobe axis rests safely above the geometric horizon, yielding horizon fractions of identically 0.
Light density. Assuming the light source resides in the positive half-space and the generated ray successfully intersects the rectangular bound, the spatial density transforms to solid angle as:
Otherwise, . This expression formalizes the standard area-to-solid-angle Jacobian mapping. A sample failing to intersect the geometric bound contributes exactly 0, as uniformly outside the active area. The underlying spatial sampling strategy, parameterized by , is defined as:
Integrand. For the direct illumination originating exclusively from the mouth (the analytic fill operates independently of these integration arms), the integrand is formulated as:
This holds strictly when the ray intersects the emitter and both bounding cosines remain positive. Otherwise, . The final outgoing radiance integral becomes:
The spatial formulation provides an algebraically equivalent expansion for the light-arm contribution:
The emitter cosine in the numerator fundamentally represents geometric foreshortening, precisely inverting the Jacobian transformation rather than duplicating it. Should an erroneous be introduced or the term be omitted, the expected Lambertian reduction will immediately diverge.
Balance heuristic (equal sampling). For any arbitrary technique drawing samples, the generalized multiple importance sampling weight is defined as . Because the present formulation allocates an identical sample count to both evaluated strategies, the discrete counts gracefully cancel:
Across the nonzero support of , both probability densities are strictly positive at our evaluation points. Because the source resides in the forward hemisphere, the cosine component of remains positive, and is strictly positive on the domain of the mouth. Consequently, . Floating-point evaluation confirms the lip-direction pair sums precisely to 1 within a numerical tolerance of .
Off the source entirely, . Should a BSDF ray fail to intersect the emitter, it receives a balance weight of , though its underlying integrand evaluates identically to 0. Conversely, any sampled direction where and simply receives . The combination cleanly partitions unity anywhere the target integrand has a chance to be nonzero. For unconditionally stable evaluation (used whenever ), we prefer , avoiding unnecessary overflow while yielding the exact same numeric outcome as the raw rational function.
Three-arm budget evaluation. We evaluate performance under total sample budgets of . Here, "budget" strictly denotes the total allocation of integrand evaluations. Evaluating the secondary PDF to compute the balance weight does not constitute an additional spatial sample.
The normalization factor is rigorously required. Applying a scale to the independent balance sums would inadvertently halve the statistical expectation. The technique allocation remains strictly deterministic: the first evaluations are drawn from the BSDF stream, and the subsequent originate from the spatial light stream.
Analytic Fill. Computed downstream of the stochastic evaluation, this diffuse-only term guarantees identical integration across all parallel estimators. Because both instrument configurations maintain the source strictly within the positive hemisphere, the fill component evaluates to:
The published empirical statistics and mean profiles explicitly exclude this fill radiance, comparing the stochastic mouth integral strictly against the partial quadrature . Matte surfaces natively leverage the analytic Lambertian expression parameterized by their local albedo and bypass Phong evaluation entirely. The resulting background fill radiance evaluates to , yielding a stable luminance of .
Ground truth. The diffuse integration component reduces analytically to the signed, four-corner projected solid angle. Vertex ordering inherently governs the sign. Our evaluation framework yields at both geometric points.
The specular integration lacks a closed-form equivalent. The total absolute outgoing radiance , including this specular reflection, is established via a tensor-product Gauss–Legendre quadrature over the domain of the rectangle. This employs an cell discretization with order 40 per cell (denoted systematically as gauss_legendre_8x40). A reduced integration rule maintains numerical agreement to within a relative threshold of on at both spatial positions. The diffuse-only quadrature similarly matches the analytic to within a relative . The published strictly reflects the heavy order 40 integration schema.
Exponent selection. The parameterized Phong distribution broadly localizes energy across a solid angle of approximately for . At the lip position, the source solid angle significantly exceeds this compact footprint; consequently, uniform area samples largely miss the primary specular lobe, whereas Phong samples naturally converge on the active region. Conversely, at the miss position, evaluating the narrow specular exponent over the source extent yields entirely negligible energy compared to the Lambertian response. If we utilized an exponent wide enough to artificially blanket this specific light source, it would trivially prevent the light arm from fireflying.
Error analysis. We evaluate convergence behavior using independent sequences, uniquely seeded at 20260926 via SplitMix64, which systematically maps the highest 53 bits directly to uniform variates in . The stream indexed at 0 initiates with the sequence , , . We quantify error on the linear Rec.709 channel (incorporating standardized spectral weights , , and ) directly against the quadrature baseline:
The draws are strictly IID. We evaluate convergence natively via the RMSE aggregated across the prefixes. A single realization of a heavy-tailed spatial light arm can experience massive variance while the cumulative estimator rigorously remains completely unbiased.
Standard error on the variance plate. This diagnostic metric leverages the identical sequences utilized for the three-arm composite. For an independent technique, the sample variance of the Rec.709 responses naturally uses degrees of freedom, yielding . Under balance heuristics, we strictly accumulate weighted evaluations per technique:
The two foundational techniques are strictly isolated during accumulation. The analytic fill resides externally as a spatial constant. The final quoted distribution figures reflect the arithmetic mean of this per-pixel standard error, evaluated continuously within a 12 mm radius.
Discussion
The kiln mouth
The environment operates in meters within a right-handed coordinate system, where represents the up vector. The sole emitter within the scene is the muffle mouth, bounded by the plane , with lateral extents and vertical extents , possessing an outward normal oriented toward . These dimensions define a width of and a height of , yielding a total area of . As emission is strictly one-sided, the region generates no radiance. The exposure is fixed at .
The eye position is derived via a reflection construction that cleanly maps the mirror ray of the lip onto the selected target, ensuring the inset evaluates to an identity mapping.
| Parameter | Value |
|---|---|
| eye | |
| target | |
| vertical FOV |
| Metric | lip | miss |
|---|---|---|
| specular / diffuse | ||
Because remains achromatic, and uniformly share a single scalar relationship across all color channels with . The mouth radiance substantially dominates the ambient fill at both evaluation points. The glaze tile acts as the sole Phong surface in the entire scene, with its top surface situated at . Both camera instruments—and the 12 mm evaluation disks localized around them—rest flush against this surface. All other environmental geometry (including the shelf, pyrometric cones, rib, firebrick, and floor) is strictly matte. Because the cones and rib are positioned exclusively on the camera side of both instruments, any line segment constructed from either instrument to the mouth avoids intersection. Consequently, the estimator operates entirely unoccluded. Structural corners oriented away from the mouth remain dark, as the back wall is coplanar with the mouth and the background fill provides only constant Lambertian ambient illumination without secondary bounces. Furthermore, there are no contact shadows beneath the cones.
Evaluating the distance ratios, we observe equal to for the lip and for the miss. This confirms that the Jacobian is non-constant across the source domain. We note, however, that these ratios do not constitute an omission floor, nor do we plot one in this analysis.
The ladder
At the lip position, we evaluate the relative RMSE against the reference :
| BSDF | light | balance | |
|---|---|---|---|
| 16 | |||
| 64 | |||
| 256 | |||
| 1024 |
At the miss position, we evaluate against :
| BSDF | light | balance | |
|---|---|---|---|
| 16 | |||
| 64 | |||
| 256 | |||
| 1024 |
Observe the monotonic convergence across all sampling strategies. Each error metric at exceeds its corresponding evaluation by a factor greater than five. Our primary validation criteria required strict reduction at each successive rung and an overall decrease of at least a factor of three. We did not establish a rigid numeric RMSE threshold a priori; the tabulated data represents the direct empirical output.
Analyzing the relative performance, the ratio of the light estimator to the BSDF estimator at the lip is approximately at and at . Conversely, at the miss position, the BSDF-to-light error ratio is roughly at and at . This structural behavior is consistent across and as well: the light arm systematically underperforms at the lip, the BSDF arm systematically underperforms at the miss, and the balance heuristic successfully maintains an error bounded below the poorer performing arm in all cases.
Crucially, the balance heuristic error strictly exceeds that of the single optimal technique at every tested configuration. At the lip for , the balance heuristic yields compared to the optimal BSDF arm's . At the miss for , it evaluates to against the superior light arm's . This performance gap to the superior arm constitutes the inherent statistical penalty of the balance heuristic's robustness.
The light arm at the lip position exhibits a heavy tail, where a small subset of fortuitous area samples dominates the reflected lobe. Although its RMSE converges rapidly—decreasing from to , an improvement rate exceeding that of the BSDF arm—it remains definitively the less efficient estimator at . Similarly, the BSDF arm at the miss position represents our secondary heavy tail and remains the suboptimal choice even at the highest sampling budget.
Signed relative means evaluated at :
| arm | lip | miss |
|---|---|---|
| BSDF | ||
| light | ||
| balance |
We verify unbiasedness using the condition for . In the presence of a persistent bias floor, the absolute mean would stall on the same order of magnitude as the RMSE. Every evaluated strategy at both sample positions definitively satisfies this threshold. The largest absolute mean at the lip occurs within the balance arm, measuring approximately one-third of its corresponding RMSE. At the miss position, the maximum absolute mean is observed in the BSDF arm, remaining strictly under one-quarter of its RMSE.
Finally, we report the disk-averaged means of the standard error, corresponding to the empirical data utilized in the primary visual analysis:
| disk | BSDF | light | balance |
|---|---|---|---|
| lip | |||
| miss |
Limits
Honesty gaps
- Analytical vs. Display Precision: The authoritative measurements are derived from the double-precision CPU contour, the double-precision Gauss–Legendre integration, and the double-precision estimator. The localized room rendering for display purposes utilizes float32. Metrics are not extracted post-rasterization. The exponential evaluation is strictly maintained in double precision; a float32 evaluation would aggressively underflow on the lobe shoulder, introducing severe bias at the lip. A representative source pixel yields 7.5 prior to tone mapping. The framebuffer maintains perfect linearity. We observe that a front-facing shelf pixel evaluated via the CPU double-precision Lambert formulation agrees with the float32 shading to within a relative on . A linear probe of the target pixel nearest the lip records the balance sample at 0.902, compared to an analytic Lambert reference at 0.184. These display-referred readings do not serve as metric keys.
- Tone-Mapping Interactions: The tone mapper may easily drive an 64 light-arm firefly into saturation. We strictly avoid clamping the estimator prior to evaluating the standard error. The absolute magnitude of a firefly maps directly to the standard error visualized on the variance plate. We make no rigorous claims regarding energy conservation after the Neutral operator is applied. Tone-mapping parameters remain locked as 1.00, 0.04, 0.76, and 0.15.
- Variance Visualization: The variance plate visualizes the float standard error mapped through an authored sRGB curve. It utilizes a unified scale clamped at 0.9246898237889386. Applying localized autoscaling per panel would technically preserve the theoretical inequalities but yield a misleading visual comparison. The evaluated disk means represent spatial averages, whereas the scale maximum is dictated by a singular tile pixel.
- Heuristic Bounding: The balance heuristic consistently yields an error bounded below the inferior single technique and above the superior technique. At the lip, it traces the BSDF series; at the miss, it traces the light series. The weighting correctly manages the PDF mixture, but this structural property precludes the balance heuristic from outperforming the single strategy that optimally matches the local integrand.
- Occlusion Simplifications: The integral is evaluated under strictly unoccluded conditions. Because the back geometry is coplanar with the emitter, it receives zero direct illumination. Ambient corners remain unlit as the fill acts as a constant Lambertian ambient source, and secondary bounces are systematically disabled. Specular fill is intentionally omitted to avoid introducing extraneous highlights that do not originate from the primary source. Contact shadows and generic visibility terms are completely excluded.
- Statistic Monotonicity: A single sampling sequence does not guarantee monotonic convergence. The primary validation relies on RMSE evaluated across 32 prefixes. The lip light arm exhibits a notably heavy tail; consequently, an individual path of length 1024 may exhibit significant variance despite the underlying weight formulation remaining structurally sound.
- Lambert Residual Checks: The Lambert residual validation evaluates the bounds at a peak sample count of 16384. This outputs
lambert_reduction_max_abs_mean_rel0.002711173413998751. This specific diagnostic enforces 0 at the lip over 8 independent replicates, utilizing the analytic contour as the absolute baseline. The reported metric constitutes the maximum absolute mean relative error across the three algorithms at that final evaluation budget. Under these conditions, the cosine arm functions as a binary hit-or-miss draw, with roughly equal to one-tenth. The absolute mean relative error measured 0.024 at 512 samples and 0.017 at 4096 samples—both exceeding —while the light arm remained stable. The expected error reduction from a prefix of 32 to 512 operates as a supplementary validation. Any structural defect—such as omitting , duplicating , or improperly scaling the balance average by 1/—will cause the estimator to violate this bound catastrophically. The count of 16384 serves strictly for this singular residual test and does not represent a standard rendering tier. - Furnace Sensitivity: The white furnace validation is deliberately executed at 8 to maximize sensitivity, yielding a mean of 0.619901030295896 against an albedo of 0.62. Fixture S, possessing 0.002397921970815975 , functions as the on-axis contour baseline.
- Display Formatting: Final image outputs are strictly 8-bit display-referred. All scientifically relevant quantities reside inside the double-precision estimator. The background geometry is rendered using a unified fragment shader on llvmpipe.
What this run can claim
| Parameter | Value |
|---|---|
GL_VERSION |
4.5 (Core Profile) Mesa 25.0.7-2+deb13u1 |
GL_RENDERER |
llvmpipe (LLVM 19.1.7, 256 bits) |
| OSMesa | core 3.3 request |
| FBO configuration | RGBA32F, and , nearest filtering |
GL_FRAMEBUFFER_SRGB |
disabled |
| MSAA | disabled |
| RNG | SplitMix64, seed 20260926. Top 53 bits map to 0,1. |
| Tone Mapping | 1.00 |
| Estimator Implementation | CPU double-precision overwrites rasterized tile pixels. |
Can claim: Within this specific OSMesa/llvmpipe environment, the double-precision CPU estimator correctly evaluated a Lambert–Phong mixture against a uniform area integration for a single, unoccluded rectangular source. The formulation accurately applied the solid-angle Jacobian and composited the independent sampling strategies via the balance heuristic using identical sample allocations. At both geometric focal points, the relative RMSE across 32 prefixes monotonically decreased from 16 to 1024 relative to the quadrature baseline , with the balance heuristic maintaining an error bound strictly below the poorer single arm across all evaluation tiers. The BSDF arm minimized error at the lip (64 and 1024), while the light arm minimized error at the miss position. The standardized variance plate maps the per-pixel standard error at 64, anchoring the lip light disk at 0.3079049113038804. The primary visualization reliably reflects the balance estimator evaluated at 1024 with an exposure of 1.00. The evaluation suite successfully reports 53 pass / 0 fail.
Cannot claim: This analysis asserts no claims regarding GPU performance, wavefront utilization, ray-tracing hardware, or frame-time efficiency. The integrated evaluation never retrieves metric data from the rasterized pixels. No physical claims are made post-tone-mapping. The balance heuristic is not guaranteed to outperform the optimal single technique, nor is it benchmarked against power heuristics, VNDF sampling, or complex multi-light environments. Floating-point evaluations of the specular power are explicitly avoided.
For this specific configuration: 53 pass / 0 fail. The underlying geometry, signed contour integrations, Gauss–Legendre alignments, directional PDFs, and balance weights were exhaustively validated prior to generating the primary figures. The Lambert reduction precisely achieves 0.002711173413998751.
Out of scope
Modifying the proportionality of , such as evaluating a power heuristic parameterized by 2, fundamentally alters the estimator and remains beyond the current scope. Balance here strictly denotes the direct mixture weight proportional to . Introducing secondary emitters, environment maps, emissive meshes, or bifurcating the BSDF into independent diffuse and specular arms falls outside this analysis. A single rectangular source is utilized specifically to induce decoupled failure modes within the individual sampling arms.
Additional occlusion terms, shadowing from local geometry, multi-bounce transport, Russian roulette, and non-direct path formulations are excluded. We similarly omit the half-vector Jacobian, Smith shadowing-masking functions, VNDF, GGX distributions, and Fresnel modulations. The application of the balance heuristic to the reflection-aligned Phong lobe is uniquely enabled by its native formulation as a density in .
w_i = p_i / (p_bsdf + p_light) # n_bsdf = n_light, so n_i cancels
p_bsdf = pi_d * (n·ω)/π + pi_s * (s+1)/(2π) (R·ω)_+^s
p_light = (1/A) * r^2 / cos_y # on the mouth, else 0
f_r = kd/π + ks * (s+2)/(2π) (R·ω)_+^s # s+1 is the pdf; s+2 is the BRDF
ell / p_light = f_r * Li * cos_x * cos_y * A / r^2
Lhat_bsdf = (1/N) sum ell / p_bsdf
Lhat_light = (1/N) sum ell / p_light
Lhat_bal = (1/n) sum w_bsdf * ell / p_bsdf
+ (1/n) sum w_light * ell / p_light # n = N/2
E = Li * Omega_perp # diffuse truth, signed contour
Lo = Gauss-Legendre 8x40 # mouth integral, specular included
Lo,Y lip = 0.8922731625666653
winner lip = bsdf # N=64 and N=1024
winner miss = light
stderr lip, light arm = 0.3079049113038804 # disk mean, N=64; lede 0.308
asserts = 53 pass / 0 fail
beauty 00, 01 = sRGB_OETF(Neutral(e * Lo)) # e=1.00
variance plate = authored sRGB of float stderr
The cover plate serves as the definitive evaluation of the balance heuristic at 1024. The variance plate highlights the spatial distribution of standard error across the 64 tier. The three-arm composite visualizes the independent formulation of the legal densities. The analytical sequence successfully shifts variance bounds while preserving strict statistical unbiasedness. Dense meters follow.
Appendix A — Meters (quote tables, not photographs)
The baseline evaluation utilizes a double-precision CPU estimator prior to tone mapping. The pseudorandom number generator is initialized with seed 20260926. Beauty renders are displayed using Khronos PBR Neutral with an exposure of , strictly maintaining the original, un-refit constants. The RMSE series correspond to the tabular data in the preceding section.
| Parameter | Value |
|---|---|
| seed / / | 20260926 / 32 / 16, 64, 256, 1024 |
| (three-arm & variance plates) / (cover) | 64 / 1024 |
| / / | 160 / 0.34 / 0.28 |
| / | 0.5483870967741935 / 0.4516129032258064 |
| stream 0, initial three uniform variates | 0.7466817377103402, 0.669510631620856, 0.5708748435191999 |
| RGB / | (7.5, 4.8, 2.2) / 5.186299999999999 |
| RGB / | (0.012, 0.014, 0.018) / |
| exposure / Neutral configuration | 1.00 / 0.04, 0.76, 0.15 |
| eye coordinate | (0.1453673781693574, 1.505862424473805, 1.453673781693575) |
| target coordinate / vertical FOV | (0, 1.18, 0.28) / 46 |
| lip target / miss target | (0.04, 0.90, 0.40) / (−0.28, 0.90, 0.28) |
| mouth / / | [−0.22, 0.22] / [1.05, 1.64] / 0.2595999999999999 |
| lip / miss | 0.3212572527424995 / 0.2742559005975028 |
| lip / miss | 1.666136489898425 / 1.422373377268829 |
| lip / miss | 0.1803182235985176 / 0.1539368726619603 |
| lip / miss | 0.8922731625666653 / 0.1539368726945163 |
| specular / diffuse ratio (lip / miss) | 3.948324937768523 / |
| panel / fill ratio (lip / miss) | 42.61218441186641 / 35.78152895218164 |
| lip / miss | 2.06098792642672 / 2.89530225013162 |
| lip / miss | 0.4966085446506598 / 0.4366167162249477 |
| across the mouth, miss | 0.8789249543972235 |
| / at the lip evaluation | 11.65879108669897 / 0.956701082414125 |
| / at the lip evaluation | 0.9241645851315697 / 0.07583541486843028 |
| superior arm, lip ( / ) | bsdf / bsdf |
| superior arm, miss ( / ) | light / light |
| disk stderr lip (BSDF / light / balance) | 0.1197899661872358 / 0.3079049113038804 / 0.1312898735904618 |
| disk stderr miss (BSDF / light / balance) | 0.0772988573354273 / 0.01309165077371938 / 0.01779797833390362 |
| maximum standard error scale | 0.9246898237889386 |
| horizon fraction (lip / miss) | 0 / 0 |
| fixture S, | 0.002397921970815975 |
| furnace evaluation (8) mean | 0.619901030295896 against 0.62 |
| Lambert reduction, | 0.002711173413998751 |
| ground truth integration | gauss_legendre_8x40 |
| diagnostic assertions | 53 pass / 0 fail |
Certain abbreviated values are provided strictly for typographical convenience. The lip light disk standard error of 0.308 functionally represents . The reported mouth area of 0.2596 substitutes the rigorous geometric bound product . These visual abbreviations do not supersede the full-precision internal tables.