The renderer's light, checked against known answers
· BWS · 5 min read · BYTHECLOUD ENT
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
- 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.
- 2Shadow transmittance through a cloud has a mean absolute error of 0.00116 against a fine numerical integral of the same cloud.
- 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.
01
Solvable scene
A furnace or single-scattering setup whose radiance has a closed form.
02
Production render
The production path tracer, on the same code path used for client work.
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.
- Measured
- ± 2 standard error
- Exact answer
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.
View data as table
| Measured | Std. error | Exact answer | |
|---|---|---|---|
| Homogeneous volume, g = 0.9 | 0.9993 | 0.0020 | 1.0000 |
| Metaball volume, g = 0.9 | 1.0018 | 0.0015 | 1.0000 |
| Metaball volume, g = 0 | 1.0000 | 0.0018 | 1.0000 |
| Metaball volume, g = −0.5 | 0.9969 | 0.0018 | 1.0000 |
| Cloud volume, dual lobe (0.85 / −0.3) | 0.9985 | 0.0012 | 1.0000 |
| Diffuse sphere, albedo 1 | 1.0096 | 0.0015 | 1.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
| Case | Exact | Rendered | Relative error (%) |
|---|---|---|---|
| Forward, sun behind the medium, g = 0.8 | 0.96927 | 0.97173 | +0.25 |
| Backward, sun behind the camera, g = 0.8 | 0.00241 | 0.00241 | −0.13 |
| Forward, sun behind the medium, g = 0 | 0.02154 | 0.02159 | +0.25 |
| Backward, sun behind the camera, g = 0 | 0.03906 | 0.03901 | −0.13 |
| Forward, sun behind the medium, g = −0.4 | 0.00659 | 0.00661 | +0.25 |
| Backward, sun behind the camera, g = −0.4 | 0.15190 | 0.15170 | −0.13 |
Relative error is the rendered value minus the exact value, divided by the exact value.
Source: Single-scattering tests · measured
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
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.
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
View data as table
| Maximum volume bounces | Energy |
|---|---|
| 0 | 20% |
| 1 | 27% |
| 4 | 43% |
| 16 | 72% |
| 64 | 94% |
| 512 | 100% |
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.
- Backlit
Side -lit
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
View data as table
| Samples per pixel | Backlit | |
|---|---|---|
| 256 | 36.4 dB | 31.7 dB |
| 1,024 | 42.4 dB | 38.2 dB |