RenderNet: A deep convolutional network for differentiable rendering from 3D shapes

Thu Nguyen-Phuoc, Chuan Li, Stephen Balaban, Yong-Liang Yang

TL;DR

RenderNet is a differentiable rendering convolutional network that learns to transform 3D voxel shapes into 2D images. By replacing traditional, non-differentiable graphics operations with a novel "projection unit," it enables end-to-end training for both generating images and solving complex inverse graphics tasks like 3D shape reconstruction from a single photo.

What Problem Does This Paper Address?

In traditional computer graphics, rendering is a "forward" process: you take a 3D scene (geometry, light, texture) and produce a 2D image. However, the math behind this—specifically visibility testing (deciding which object is in front of another) and ray-object intersection—is discrete and non-differentiable. This creates a massive hurdle for "inverse rendering," where we want to start with a 2D image and calculate the 3D parameters that created it using gradient-based optimization (the bread and butter of deep learning).

Existing differentiable renderers often rely on hand-crafted approximations or are limited to specific styles (like simple silhouettes). The authors of RenderNet sought to create a renderer that is entirely a neural network, capable of learning complex shading and occlusion effects while remaining fully differentiable.

Methods

RenderNet uses a specialized Convolutional Neural Network (CNN) architecture designed to mimic the stages of a traditional graphics pipeline.

RenderNet Architecture
  1. 3D Transformation: The input is a 3D voxel grid. The network first applies a rigid-body transformation (rotation and translation) to align the object with the camera's coordinate system.
  2. 3D Convolutions: A series of 3D convolutional layers extracts spatial features from the voxel grid.
  3. The Projection Unit (The Core Innovation): To bridge the gap between 3D and 2D, the authors developed a "projection unit." Instead of simple max-pooling (which only captures silhouettes), this unit reshapes the 4D feature tensor and passes it through a Multi-Layer Perceptron (implemented as a 1x1 convolution). This allows the network to learn how to resolve visibility and occlusion along the depth axis.
  4. 2D Convolutions: Finally, 2D convolutional layers process the projected features to calculate pixel colors, effectively acting as a "learnt shader."

Because the entire pipeline is a neural network, it can be trained using standard backpropagation.

Datasets

The authors evaluated RenderNet on several datasets to test its versatility:

  • ShapeNet Core: Specifically the "chair" category (6,778 objects) for general rendering and reconstruction.
  • Basel Face Dataset: Used for texture mapping and face reconstruction tasks.
  • Custom Shader Datasets: They generated training data using Blender3D (for Ambient Occlusion) and VTK (for suggestive contours and cartoon shading) to show the network can learn different artistic styles.

Key Insights and Ideas

  • Learnt Visibility: Unlike traditional renderers that use a hardcoded "Z-buffer," RenderNet learns visibility. This makes it more robust to "noisy" or low-resolution 3D inputs that would cause traditional mesh-based renderers to produce artifacts.
  • Inductive Biases Matter: Rather than using a generic "black box" encoder-decoder, RenderNet's architecture is structured to respect the 3D nature of the world. This "geometry-grounded" approach allows it to generalize to unseen object categories (e.g., training on chairs but successfully rendering a Stanford Bunny).
  • Differentiability as a Bridge: Because the renderer is differentiable, it can be used as a "likelihood term" in an optimization loop. To reconstruct a 3D shape from a 2D image, you can simply "ask" the network: "What 3D shape, when rendered, would look most like this photo?"

Key Results

Rendering Quality Comparison
  • Superior Shading: RenderNet outperformed baseline encoder-decoder models (like DC-IGN) in rendering quality. For Phong shading on chairs, RenderNet achieved a PSNR of 25.39, significantly higher than the baseline's 20.88. As shown above, it produces smooth surfaces compared to the artifacts seen when rendering voxels via marching cubes.
  • Robustness: The model successfully rendered plausible images even when the input voxel grid was corrupted with 50% random noise or downsampled by half.
  • Inverse Graphics: The model was able to recover shape, pose, lighting, and texture from single images. In face reconstruction, it achieved an Intersection-over-Union (IoU) of 42.99 for the reconstructed 3D volumes.
  • Multi-Style Rendering: The same architecture proved capable of learning vastly different styles, from realistic Phong shading to abstract line drawings and complex Ambient Occlusion.

Limitations and Future Work

  • Voxel Constraints: The current model relies on voxel grids, which are memory-intensive. While the authors mention octrees as a solution, the paper primarily sticks to a $64^3$ resolution.
  • Perspective Projection: The current projection unit is optimized for orthographic views. Incorporating true perspective transformation explicitly into the network is noted as a future step.
  • Data Dependency: As a supervised model, it requires a large amount of rendered 2D/3D pairs for training, though the authors suggest future work could explore using unlabeled data via adversarial losses.

Summary updated

BibTeX
@inproceedings{nguyenphuoc2018rendernet,
  author = {Thu Nguyen-Phuoc and Chuan Li and Stephen Balaban and Yong-Liang Yang},
  title = {{RenderNet: A deep convolutional network for differentiable rendering from 3D shapes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=BkVJVvZdbS},
}
Figure