Skip to main content

The renderer's light, checked against known answers

BWS5 min readBYTHECLOUD ENT

The production path tracer is checked for energy against closed-form answers, then, in a cloud volume, against a converged reference.

Abstract

A path tracer can look plausible and still lose or invent energy. The production renderer runs on scenes with exact answers: white furnaces for surfaces and participating media, and single scattering from a sun. Each result is compared with its closed form and its statistical error. A cloud's shadow is compared with a dense numerical integral. Among the furnaces, the diffuse sphere is furthest from the exact answer, at 1.0096. In a cloud, where no exact answer exists, the GPU render's convergence is measured against a converged reference.

Key findings

  1. 1Against closed forms for scattering volumes and a diffuse surface, the furthest result is the diffuse sphere, at 1.0096, where a perfect result keeps all of the light.
  2. 2Shadow transmittance through a cloud has a mean absolute error of 0.00116 against a fine numerical integral of the same cloud.
  3. 3At 1,024 samples per pixel, the backlit GPU cloud reaches 42.4 dB against its converged render. Energy is preserved.

1Exact answers first

Soft light hides mistakes. A renderer that loses a little energy per bounce produces images that read as mood rather than error. A cloud that is slightly too dark reads as style. Agreement with another renderer shows only that two programs agree. The first check is therefore against mathematics: scenes whose correct brightness can be written down.

Diagram 1Method
  1. 01

    Solvable scene

    A furnace or single-scattering setup whose radiance has a closed form.

  2. 02

    Production render

    The production path tracer, on the same code path used for client work.

  3. 03

    Error estimate

    Each furnace and single-scattering value carries a standard error from the spread of the render's pixels.

2Energy conservation

In a white furnace, every surface and particle scatters all the light it receives, and the environment is uniformly bright. Whatever the geometry, the camera must see exactly the incoming radiance. Any darkening is energy the renderer lost. Any brightening is energy it invented.

Figure 1White-furnace radiance against the exact answer
  • Measured
  • ± 2 standard error
  • Exact answer
Homogeneous volume, g = 0.9
0.9993 ± 0.0040
Metaball volume, g = 0.9
1.0018 ± 0.0030
Metaball volume, g = 0
1.0000 ± 0.0036
Metaball volume, g = −0.5
0.9969 ± 0.0036
Cloud volume, dual lobe (0.85 / −0.3)
0.9985 ± 0.0024
Diffuse sphere, albedo 1
1.0096 ± 0.0030

Axis does not start at zero

Each dot is the rendered radiance relative to the incoming light. Whiskers span two standard errors. The exact answer is one for every case.

Source: White-furnace tests · measured September 30, 2026

View data as table
MeasuredStd. errorExact answer
Homogeneous volume, g = 0.90.99930.00201.0000
Metaball volume, g = 0.91.00180.00151.0000
Metaball volume, g = 01.00000.00181.0000
Metaball volume, g = −0.50.99690.00181.0000
Cloud volume, dual lobe (0.85 / −0.3)0.99850.00121.0000
Diffuse sphere, albedo 11.00960.00151.0000

All five volume cases sit on the answer within their error bars, including strongly forward and backward scattering. The diffuse sphere is furthest from it, at 1.0096, inside the suite's tolerance.

3Single scattering

With the sun behind the medium, light scattered once toward the camera follows the phase function's forward lobe. With the sun behind the camera, only the backward lobe contributes. Both have exact integrals. The table compares them for three phase settings, so an error in one lobe cannot hide behind the other.

Table 1Single-scattering radiance against the exact integral

CaseExactRenderedRelative error (%)
Forward, sun behind the medium, g = 0.80.969270.97173+0.25
Backward, sun behind the camera, g = 0.80.002410.00241−0.13
Forward, sun behind the medium, g = 00.021540.02159+0.25
Backward, sun behind the camera, g = 00.039060.03901−0.13
Forward, sun behind the medium, g = −0.40.006590.00661+0.25
Backward, sun behind the camera, g = −0.40.151900.15170−0.13

Relative error is the rendered value minus the exact value, divided by the exact value.

Source: Single-scattering tests · measured September 30, 2026

In each direction the same offset repeats for every phase setting, so it is unlikely to come from the phase function.

4Cloud shadows

A cloud's shadow depends on how much light survives the path through it. The renderer's transmittance is compared with a dense numerical integral at sample points across the cloud. Its mean absolute error is several times smaller than that of the coarser quadrature it replaced, on the same cloud.

0.00116

Mean absolute error against the integral

Cloud shadow transmittance · measured September 30, 2026

5Volume bounces

Exact answers stop at simple media. For a full cumulus under a low sun, energy is measured against a reference rendered with up to 512 volume bounces. Single scattering alone gives only 20% of the reference's brightness. With 64 bounces the cloud reaches 94%. Clouds look bright because light bounces many times inside them. A renderer that stops early draws them grey.

Figure 2Cloud energy by maximum number of volume bounces
0255075100%
100%
0141664512

Maximum volume bounces

Energy relative to the converged reference. Bounce limits are spaced as tested, not to scale.

Source: Multiple scattering in a cumulus cloud · measured September 30, 2026

View data as table
Maximum volume bouncesEnergy
020%
127%
443%
1672%
6494%
512100%

6GPU convergence

Production renders run the same transport on the GPU. Against a converged reference of the same scene, peak signal-to-noise rises as samples per pixel increase from 256 to 1,024. No energy is lost or gained to three decimal places. The side-lit shot reaches 38.2 dB at 1,024 samples per pixel.

Figure 3Peak signal-to-noise against the converged render
  • Backlit
  • Side-lit
30354045 dB
42.4 dB38.2 dB
2565121,024

Samples per pixel

Axis does not start at zero

Two lighting setups of the same cumulus, rendered on the GPU. Higher is closer to the converged image.

Source: GPU cloud against its converged render · measured September 30, 2026

View data as table
Samples per pixelBacklitSide-lit
25636.4 dB31.7 dB
1,02442.4 dB38.2 dB

Data sources

DatasetMeasured
Renderer exactness suite, summarySeptember 30, 2026
White-furnace testsSeptember 30, 2026
Single-scattering testsSeptember 30, 2026
Cloud shadow transmittanceSeptember 30, 2026
Multiple scattering in a cumulus cloudSeptember 30, 2026
GPU cloud against its converged renderSeptember 30, 2026

More from AI research notes from Vancouver

  1. StorMStorM 0.111.0
  2. BWSLoudness metering, checked against the broadcast standard
  3. StorM Web EngineWhere the sun is, checked against an ephemeris