A Simple Approach to Differentiable Rendering of SDFs
Zichen Wang, Xi Deng, Ziyi Zhang, Wenzel Jakob, Steve Marschner
TL;DR
This paper tackles the non-differentiability of physically based rendering caused by visibility boundaries by introducing a boundary-relaxation strategy that widens sampling from the exact silhouette boundary $\mathcal{B}$ to a thin nearby region $\mathcal{A}$ around the surface represented by Signed Distance Fields (SDF). It derives a relaxed-boundary integral that reuses forward samples and scales with $\varepsilon$, yielding a simple, low-variance differentiable renderer suitable for end-to-end inverse rendering tasks. The approach achieves competitive or superior results compared to prior methods in both forward derivative accuracy and end-to-end reconstruction quality, while maintaining architectural simplicity and broad applicability across shapes and scales. The work highlights a practical bias-variance tradeoff controlled by $\varepsilon$, demonstrating robust performance across scenes and suggesting avenues for extending the framework to other representations and improved bias handling in future work.
Abstract
We present a simple algorithm for differentiable rendering of surfaces represented by Signed Distance Fields (SDF), which makes it easy to integrate rendering into gradient-based optimization pipelines. To tackle visibility-related derivatives that make rendering non-differentiable, existing physically based differentiable rendering methods often rely on elaborate guiding data structures or reparameterization with a global impact on variance. In this article, we investigate an alternative that embraces nonzero bias in exchange for low variance and architectural simplicity. Our method expands the lower-dimensional boundary integral into a thin band that is easy to sample when the underlying surface is represented by an SDF. We demonstrate the performance and robustness of our formulation in end-to-end inverse rendering tasks, where it obtains results that are competitive with or superior to existing work.
