When to Sample an Edge: Optimal Visibility Gradients in a Closing Gap
Unbiased differentiable rendering of moving visibility boundaries faces a persistent algorithmic choice: differentiate discontinuities directly by sampling silhouettes (edge sampling), push boundary motion into the interior via a continuous velocity field (warped-area sampling), or combine both in a hybrid estimator. We analyze this trade-off exactly on a period-one horizontal strip D = (0, 1] x (s, s + h] inside the unit pixel, bounded by two independently moving graphs with finite trigonometric-polynomial vertical velocities a(x) and b(x) and shaded by a balanced bank of periodic textures with uniform second moment c and isotropic gradient-to-value ratio lambda > 0. For a single-sample hybrid estimator with area-branch probability p in [0, 1], full-pixel area proposal density q <= L (1 <= L <= 1/h), and a single shared horizontally periodic C^1 warp V, we prove an exact attained minimum average variance law over all admissible C^1 periodic competitors (satisfying unbiasedness endpoint-trace and coverage conditions) and all measurable capped densities. The globally optimal warp is the gradient of a finite superposition of screened Helmholtz potentials solving Delta phi = lambda phi, carrying the exact mode-wise warp fraction r_{sigma,k} = 2 p L / (2 p L + (1 - p) d_{sigma,k}) for each co-moving (sigma = +) and squeezing (sigma = -) Fourier mode k, where d_{+,k} = (lambda / kappa_k) tanh(kappa_k h/2) and d_{-,k} = (lambda / kappa_k) coth(kappa_k h/2) with kappa_k = sqrt((2 pi k)^2 + lambda). A single mode prefers pure warped-area sampling (p = 1) when d_{sigma,k} <= 2L and pure edge sampling (p = 0) when d_{sigma,k} >= 2L; for multi-mode motions, the minimum variance is convex in p in [0, 1]. Evaluating the exact law on an explicit eight-texture nonnegative bank (c = 3/2, lambda = (2 pi)^2 / 6) as the gap closes (h -> 0+) yields sharp, contrasting constants for pure translation versus pure squeezing. All 16 numbered results in Sections 2-5 are formally verified in Lean 4 against Mathlib with zero sorry and no custom axioms.
Authors
- Chengrui Li
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24669796
- Primary Topic
- Computer Graphics and Visualization Techniques
- Type
- preprint