Abstract
We present a method for differentiable rendering of 3D surfaces that supports both explicit and implicit representations, provides derivatives at occlusion boundaries, and is fast and simple to implement. The method first samples the surface using non-differentiable rasterization, then applies differentiable, depth-aware point splatting to produce the final image. Our approach requires no differentiable meshing or rasterization steps, making it efficient for large 3D models and applicable to isosurfaces extracted from implicit surface definitions. We demonstrate the effectiveness of our method for implicit-, mesh-, and parametric-surface-based inverse rendering and neural-network training applications. In particular, we show for the first time efficient, differentiable rendering of an isosurface extracted from a neural radiance field (NeRF), and demonstrate surface-based, rather than volume-based, rendering of a NeRF.
Introduction
Differentiable rendering is the essential engine behind inverse graphics, allowing for the optimization of 3D scene parameters—such as shape, pose, or texture—to match target 2D images. However, traditional rendering pipelines are fraught with discontinuities, particularly at occlusion boundaries. When an object moves slightly, a pixel at its edge may abruptly transition from the object to the background, rendering the derivative undefined or zero in standard engines.
Existing solutions typically fall into two camps: mesh-specific techniques that require complex edge-sampling logic, or volumetric rendering, which is naturally differentiable but computationally expensive, requiring hundreds of samples per ray. This research introduces Rasterize-then-Splat (RtS), a framework that combines the speed of rasterization with the differentiability of volume rendering, applicable to any geometry representation.
The Rasterize-then-Splat (RtS) Framework
The core innovation of RtS is the decoupling of surface identification from surface shading. By using a non-differentiable "oracle" to find the surface, the system avoids the need for complex differentiable ray-marching or mesh-processing kernels.
The pipeline follows a three-step process:
- Non-Differentiable Sampling: A standard GPU Z-buffer (for meshes) or Marching Cubes (for volumes) identifies where rays intersect the surface. Since only the values are needed at this stage, and not the derivatives of the search process itself, this step is extremely efficient.
- Differentiable Evaluation & Shading: Once hit points are identified, their attributes—including position, normals, and colors—are computed using differentiable functions.
- Depth-Aware Splatting: Each sample is treated as a small, fuzzy "splat" (a Gaussian kernel). These splats are accumulated into the final image using a multi-layer strategy that sorts them into "front," "at-depth," and "behind" buffers. This ensures smooth gradients even during complex occlusions.
Experimental Evaluation
The RtS method was evaluated across various tasks, including pose estimation on the YCB toy airplane model and converting volumetric NeRFs into efficient surface representations.
Key Results
- Efficiency: RtS achieved a 128× speedup for rendering NeRF scenes compared to traditional volume rendering, with a negligible impact on image quality (~0.3 PSNR). This allows for "Surface NeRFs" that require only one network evaluation per pixel.
- Scalability: In pose estimation benchmarks, the method was up to 20× faster than PyTorch3D and Redner for high-resolution meshes exceeding 2 million triangles.
- Versatility: The approach successfully handles topology changes in implicit surfaces and complex self-occlusions that often challenge simpler differentiable renderers.
Conclusion
RtS provides a simple yet powerful solution for differentiable rendering. By treating the surface search as a non-differentiable "oracle" and focusing differentiability on the shading and splatting steps, the method achieves significant performance gains across meshes, parametric surfaces, and implicit volumes. While currently limited to opaque surfaces and primary visibility, it represents a significant step toward efficient, high-fidelity inverse rendering.
Summary updated