AppGen

Yue Dong, Xin Tong, Fabio Pellacini, Baining Guo

TL;DR

This paper introduces AppGen, an interactive system that allows users to model realistic materials from a single image with minimal effort. By combining user-provided strokes with novel algorithms for diffuse-shading separation and two-scale normal reconstruction, AppGen significantly speeds up the material creation process for artists.

What Problem Does This Paper Address?

Creating realistic materials for 3D rendering is a time-consuming and complex process. Traditionally, artists use tools like Photoshop and specialized software to generate spatially-varying diffuse, specular, and roughness properties, along with detailed normal maps, from a single texture image. This manual process can take hours and often doesn't yield the highest quality results due to the inherent difficulty of inferring detailed material properties from a single image. The paper aims to bridge this gap by providing an interactive system that drastically reduces the time and effort required for material modeling while maintaining high visual fidelity.

Methods

AppGen employs a four-step pipeline:

  1. Highlight and Shadow Removal: The system first removes specular highlights and shadows from the input image using thresholding and image inpainting, leaving an image representing only the diffuse component.
  2. Diffuse Shading Separation: This is a core contribution. The system interactively decomposes the diffuse image into a diffuse albedo map and a diffuse shading map. It uses an optimization-based approach, similar to Expectation-Maximization, guided by user strokes to refine the separation when assumptions about local albedo or shading are violated.
  3. Two-Scale Normal Reconstruction: Another key innovation, this algorithm reconstructs per-pixel normals from the diffuse shading map. It first computes a coarse height field from a smoothed shading map and then refines it by fitting detailed normals to match the original, detailed shading map. This approach preserves both large-scale geometry and fine-scale surface details.
  4. Specular Assignment: The system assigns specular properties (coefficient and roughness) to each pixel. It uses user-drawn strokes to specify specular BRDFs for a sparse set of pixels, then classifies the material type for other pixels based on their diffuse albedo and the user-specified examples. Finally, it blends the specular properties based on this classification.

Datasets

The paper does not explicitly mention the use of specific datasets for training or evaluation. Instead, it demonstrates the system's capabilities using various input texture images of natural and man-made surfaces, showcasing the results generated by the system and comparing them to artist-created materials and results from other methods.

Key Insights and Ideas

  • Minimal User Interaction is Key: The core idea is that by intelligently combining a few user strokes with robust algorithms, complex material properties can be inferred, significantly reducing manual effort.
  • Two-Scale Normal Reconstruction: Separating normal reconstruction into a coarse height field and fine-grained perturbations allows for the preservation of both overall shape and intricate surface details, which is crucial for realistic rendering.
  • Interactive Refinement for Ill-Posed Problems: For inherently ill-posed problems like intrinsic image decomposition and normal reconstruction from a single image, user guidance is essential. The paper demonstrates how targeted strokes can effectively guide the system to correct artifacts.
  • Material Type as a Driving Factor for Specular Properties: The insight that specular properties are largely determined by material type rather than subtle diffuse color variations simplifies the specular assignment process.

Key Results

  • Speedup: AppGen can generate convincing materials within minutes of interaction, compared to hours for experienced artists using traditional tools. For example, an artist could regenerate example materials in minutes using AppGen, whereas it took them an hour with standard tools.
  • Quality: The system produces high-quality materials that are visually comparable to those created by experienced artists. Renderings under different lighting conditions demonstrate the robustness of the reconstructed normals and reflectance properties.
  • Versatility: The system works well for a wide variety of material types, including natural surfaces (metals, woods, rocks, leathers) and man-made ones (textiles, papers, concrete), showcasing its broad applicability.
  • Efficiency: The computational cost for each step is low, allowing for responsive feedback during user interaction. For a typical 768x768 image, separation takes ~1.8 seconds, normal reconstruction ~1.5 seconds, and specular assignment <0.2 seconds.

Limitations and Future Work

  • Planarity Assumption: The system assumes the input image is from a nearly planar surface lit by directional lighting. It may fail for images with strong geometric structures or non-directional lighting.
  • Highlight/Shadow Sensitivity: Images with large regions of clamped highlights or shadows can pose challenges, as the system primarily relies on the diffuse component.
  • Grayscale Albedo Issues: For materials with grayscale albedo variations (e.g., text on paper), the system's reliance on chroma variations for initial separation can lead to artifacts, potentially requiring more user input.
  • Future Work: The authors suggest extending the system to handle environmental lighting, model materials with complex meso-structures (leading to inter-reflections and complex shadowing), and leverage measured material datasets to further accelerate the process.

Summary updated

Abstract

We present AppGen, an interactive system for modeling materials from a single image. Given a texture image of a nearly planar surface lit with directional lighting, our system models the detailed spatially-varying reflectance properties (diffuse, specular and roughness) and surface normal variations with minimal user interaction. We ask users to indicate global shading and reflectance information by roughly marking the image with a few user strokes, while our system assigns reflectance properties and normals to each pixel. We first interactively decompose the input image into the product of a diffuse albedo map and a shading map. A two-scale normal reconstruction algorithm is then introduced to recover the normal variations from the shading map and preserve the geometric features at different scales. We finally assign the specular parameters to each pixel guided by user strokes and the diffuse albedo. Our system generates convincing results within minutes of interaction and works well for a variety of material types that exhibit different reflectance and normal variations, including natural surfaces and man-made ones.
BibTeX
@article{dong2011appgen,
  author = {Yue Dong and Xin Tong and Fabio Pellacini and Baining Guo},
  title = {{AppGen}},
  journal = {ACM Trans. Graphics},
  year = {2011},
  url = {https://openreview.net/forum?id=se5rwDpg7JIF},
}
Figure