A12 Directional surfaces and sun glint¶
Independent RPV and wind-roughened water formulas test multi-angle BRF, forward/backward simulation and reciprocity when illumination and observation directions are exchanged.
Scene and inputs¶
A horizontal surface fills a 10 m × 10 m periodic unit. There is no atmosphere. Normal solar irradiance is 1 W m⁻² nm⁻¹ at 550 nm.
| Model | Settings | Views |
|---|---|---|
| RPV | Solar zenith 30°; \((\rho_0,k,\Theta,\rho_c)\): (0.2, 1, 0, 1), (0.12, 0.7, −0.2, 0.8), (0.15, 1.3, 0.25, 0.5) | Nadir; zenith 30° and 60° at azimuths 0°, 90°, 180° |
| Water | Solar zenith 40°; wind speeds 1, 5, 10 m s⁻¹, wind azimuth 0° or 90°; index 1.34 or 1.5; no water-leaving radiance | Nadir, principal-plane views from 30° to 60°, and glint-side azimuths 160°, 200° |
Water uses Gaussian Cox–Munk slopes, Fresnel reflection and Smith masking. All parameter combinations are in the inputs.
Independent formulas¶
The RAMI RPV definition gives
Here \(\mu_i,\mu_o\) are zenith cosines, \(g\) is the angle between directions, and \(G\) is the distance between their horizontal tangent vectors. BRDF is BRF divided by \(\pi\).
Water reflectance follows
Upwind and crosswind slope variances are \(0.00316U\) and \(0.003+0.00192U\), respectively; see Cox and Munk. The reference evaluates these formulas directly without directional sampling.
Results¶
| Backend | Maximum directional BRF error | Maximum forward BRF error | Maximum reciprocity difference | Result |
|---|---|---|---|---|
| optix | 0.00000059 | 0.00000037 | 0.00000095 | Pass |
| vulkan | 0.00001208 | 0.00001178 | 0.00000034 | Pass |
| embree | 0.00000047 | 0.00000036 | 0.00000072 | Pass |
All 171 directional comparisons, 21 forward-BRF groups and 21 reciprocity checks pass. The directional error bound is \(2\times10^{-5}+2\times10^{-4}|\mathrm{BRF}_{ref}|\). Reciprocity must agree within 2×10⁻⁵; forward-BRF maximum and RMS error limits are 0.002 and 0.001.
Backward imaging uses 1, 16 and 64 samples per pixel with seeds 17, 29 and 43. Uniform-surface responses remain stable with sampling budget. Forward simulation uses 262144 photons and has maximum BRF error 0.0000118. The largest reciprocity difference is 0.000000954.
Reproduce¶
Download the inputs, simulation script, helper, and independent formulas. Preserve the scripts/ and data/directional-surfaces/ paths. With LESS, NumPy and Matplotlib installed, run:
The complete results include every direction, forward response and reciprocity check.