Diffusion-based G-buffer generation and rendering
Bowen Xue, Giuseppe Claudio Guarnera, Shuang Zhao, Zahra Montazeri
TL;DR
This work tackles the limited editability of text-to-image diffusion systems by introducing a diffusion-based two-stage pipeline that first generates a G-buffer from a text prompt and then renders a final image with a modular neural renderer. A partially frozen diffusion backbone paired with a ControlNet produces geometry, material, and lighting channels (albedo, normals, depth, roughness, metallic, irradiance) which can be edited or augmented via channel-level operations, object insertion, or masking for lighting changes. The second-stage renderer employs geometry, material, and lighting sub-networks that follow a physically based rendering decomposition, improving realism for reflections, shadows, and transparency, and enabling post-generation edits without re-running full diffusion. The approach demonstrates enhanced editability and generalization from indoor to outdoor scenes, while preserving the broad capabilities of large pre-trained models, and it uses mask-guided fine-tuning and a branching architecture to maintain stability during training and rendering.
Abstract
Despite recent advances in text-to-image generation, controlling geometric layout and material properties in synthesized scenes remains challenging. We present a novel pipeline that first produces a G-buffer (albedo, normals, depth, roughness, and metallic) from a text prompt and then renders a final image through a modular neural network. This intermediate representation enables fine-grained editing: users can copy and paste within specific G-buffer channels to insert or reposition objects, or apply masks to the irradiance channel to adjust lighting locally. As a result, real objects can be seamlessly integrated into virtual scenes, and virtual objects can be placed into real environments with high fidelity. By separating scene decomposition from image rendering, our method offers a practical balance between detailed post-generation control and efficient text-driven synthesis. We demonstrate its effectiveness on a variety of examples, showing that G-buffer editing significantly extends the flexibility of text-guided image generation.
