Abstract
Mathematically representing the shape of an object is a key ingredient for solving inverse rendering problems. Explicit representations like meshes are efficient to render in a differentiable fashion but have difficulties handling topology changes. Implicit representations like signed-distance functions, on the other hand, offer better support of topology changes but are much more difficult to use for physics-based differentiable rendering. We introduce a new physics-based inverse rendering pipeline that uses both implicit and explicit representations. Our technique enjoys the benefit of both representations by supporting both topology changes and differentiable rendering of complex effects such as environmental illumination, soft shadows, and interreflection. We demonstrate the effectiveness of our technique using several synthetic and real examples.
Introduction
Inverse rendering is the process of estimating an object's 3D shape and material properties (appearance) from a set of 2D images. Historically, researchers have had to choose between two geometric representations: explicit polygonal meshes and implicit signed-distance functions (SDFs).
Explicit representations are efficient to render and compatible with physics-based differentiable renderers but are "topologically rigid," making it difficult to handle genus changes (like turning a sphere into a donut) during optimization. Implicit representations handle topology changes naturally but are computationally expensive and mathematically difficult to differentiate under complex lighting models. This paper presents a hybrid approach that combines the strengths of both.
Methods
The core innovation is a two-stage hybrid pipeline that utilizes differentiable iso-surface extraction as a bridge between representations.
Stage 1: The Implicit Stage
The object is initially represented as an SDF. To render it, the authors use a differentiable iso-surface extraction method (specifically a variant of Marching Cubes called MeshSDF) to convert the implicit function into a temporary mesh. This mesh is then fed into a physics-based differentiable renderer. Because the conversion is differentiable, gradients from the image pixels can flow back to update the SDF's parameters, allowing the system to handle complex topology changes and find a coarse shape.
Stage 2: The Explicit Stage
Once the topology is settled, the SDF is converted into a high-resolution mesh for final optimization. This stage uses Boundary First Flattening (BFF) to create UV maps and optimizes spatially varying BRDF (SVBRDF) textures and vertex positions. By using a path-tracing-based renderer in both stages, the system accounts for environmental lighting, soft shadows, and interreflections.
Key Insights
- The Differentiable Bridge: Converting the implicit function to a mesh differentiably allows the use of high-end mesh-based differentiable rendering machinery while retaining the topological freedom of SDFs.
- Efficiency: The authors found that rendering a coarse mesh extracted from an SDF is approximately 3.2x faster than performing differentiable sphere tracing directly on the SDF.
- Handling Discontinuities: By using an intermediate mesh, the pipeline can employ established "edge sampling" techniques to obtain unbiased gradients at visibility boundaries, which is significantly harder to achieve with purely implicit surfaces.
Key Results
The method was evaluated on synthetic scenes like "Bunny Temple" and "Chair," as well as real-world objects including a decorative teapot and a leopard statue.
As shown in the comparison, the hybrid approach successfully recovers complex topologies—such as the holes in the chair back—where purely mesh-based methods fail. Quantitatively, on the "Bunny Temple" benchmark, the proposed method achieved a Chamfer distance of 0.0002, significantly outperforming the IDR baseline (0.0191*). The two-stage approach also allowed for the recovery of highly detailed texture maps that closely matched ground truth under complex environmental lighting.
Limitations and Future Work
Despite its robustness, the method faces challenges when camera views are limited, which can lead to lighting effects being "baked" into diffuse textures. Additionally, the current reliance on a regular voxel grid for MeshSDF limits the resolution of the implicit stage. Future work may explore adaptive grids or octrees to enable even finer initial reconstructions.
This research was presented at the Eurographics Symposium on Rendering (EGSR) 2022.
Summary updated