NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Material Editing Using a Physically Based Rendering Network

Guilin Liu, Duygu Ceylan, Ersin Yumer, Jimei Yang, Jyh-Ming Lien

Abstract

This paper introduces an end-to-end neural network architecture designed to perform material editing on objects within single 2D images. By integrating a differentiable, physically based rendering layer, the model learns to disentangle an image into its core physical components: surface normals, illumination, and material properties. This physics-constrained approach enables realistic material swapping while maintaining the original object's shape and lighting environment.

Introduction: The Inverse Rendering Challenge

Editing the material of an object in a standard photograph—such as changing a fabric sofa to leather—is a classic inverse rendering problem. The color of every pixel is a "baked-in" result of the object's geometry, the incident light, and the surface's Bidirectional Reflectance Distribution Function (BRDF). Disentangling these properties is inherently ill-posed, as many combinations of light and material can produce identical pixel values. Previous deep learning methods often relied on abstract feature spaces that are difficult to manipulate. This research proposes replacing these black-box decoders with a layer that understands the fundamental physics of light transport.

Methodology

The proposed framework consists of three specialized prediction modules and a final differentiable rendering layer:

  1. Normal Prediction: Estimates 3D surface orientation for every pixel.
  2. Illumination Prediction: Estimates the lighting environment as a High Dynamic Range (HDR) environment map.
  3. Material Prediction: Predicts 108 parameters defining the object's BRDF using a Directional Statistics model to accommodate both diffuse and specular surfaces.
  4. Differentiable Rendering Layer: This layer takes the predicted shape, light, and material to re-synthesize the image via the rendering equation.

The network is trained using a joint loss function that combines parameter-level errors with a perceptual loss (via VGG16) to ensure the re-synthesized images are visually consistent with the originals. For real-world images lacking ground truth, a post-optimization step refines the network's initial predictions.

Datasets and Training

To overcome the lack of labeled real-world data, the authors developed a synthetic pipeline generating over 720,000 unique configurations. This pipeline utilized 280 3D models from ShapeNet (cars, chairs, sofas, monitors), 80 measured materials from the MERL database, and 10 high-quality HDR environment maps. Evaluation was conducted on the SMASHINg challenge dataset and various real-world product photographs.

Results and Discussion

The model demonstrates significant capability in material swapping, successfully transferring properties like the "shininess" of a chrome car to a wooden chair while preserving the chair's original geometry and lighting.

Material transfer results showing input images (left) and the objects re-rendered with target materials (right) while preserving shape and lighting.

Quantitatively, the "combined" approach using the rendering layer outperformed standalone prediction modules, reducing the L2 error in material prediction from 544.1 to 355.5. Key insights include:

  • Physics as a Constraint: Forcing predictions through a physical rendering equation ensures the learned parameters are physically meaningful.
  • Perceptual Loss: This loss prevents "uncanny" visual artifacts that standard pixel-wise losses might miss.
  • Joint Learning: Predicting shape, light, and material simultaneously allows the network to account for the natural dependencies between these properties.

Conclusion and Future Work

While the model generalizes well to real photographs, it currently operates under simplified physics, assuming translation-invariant lighting and ignoring local self-shadowing or inter-reflections. Future work aims to expand the diversity of training lighting, handle complex materials like those with subsurface scattering, and automate the segmentation of multi-material objects.

Summary updated

BibTeX
@inproceedings{liu2017material,
  author = {Guilin Liu and Duygu Ceylan and Ersin Yumer and Jimei Yang and Jyh-Ming Lien},
  title = {{Material Editing Using a Physically Based Rendering Network}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.248},
}
Figure