Abstract
RenderFormer is a "universal" neural rendering pipeline that converts triangle meshes directly into images with full global illumination—without requiring any per-scene training or fine-tuning. By formulating rendering as a sequence-to-sequence transformer task, it simulates complex light transport (shadows, reflections, and inter-reflections) up to 100x faster than traditional path tracing.
Introduction
In computer graphics, achieving high visual fidelity at interactive speeds remains a significant challenge. Traditional physics-based methods, such as Monte Carlo path tracing, produce photorealistic results with complex global illumination (GI) but are computationally intensive. Conversely, recent neural rendering techniques like Neural Radiance Fields (NeRF) or 3D Gaussian Splatting offer rapid inference but typically necessitate hours of scene-specific optimization.
RenderFormer bridges this gap by introducing a generalizable neural renderer. The model is designed to ingest unseen triangle meshes and immediately produce renders with realistic lighting effects, bypassing both the heavy simulations of traditional engines and the optimization overhead of current neural methods.
Methodology
The core innovation of RenderFormer is treating the rendering process as a sequence-to-sequence transformation. This approach leverages the Transformer architecture's inherent ability to model long-range dependencies, which serves as a mathematical proxy for light bouncing between distant surfaces in a scene.
The pipeline is divided into two distinct stages:
- View-Independent Stage: This stage processes a sequence of "triangle tokens" containing geometry, normals, and BRDF material properties. Through self-attention, the model simulates triangle-to-triangle light transport, outputting tokens that represent the converged radiance distribution of the scene.
- View-Dependent Stage: This stage utilizes "ray-bundle tokens" (representing 8x8 pixel patches) to query the processed triangle tokens via cross-attention. A DPT decoder then translates these into final HDR pixel values.
Technical refinements include a 3D Relative Spatial Positional Encoding based on Rotary Positional Embedding (RoPE) to help the model understand physical distances in world space, and the use of register tokens to stabilize global scene information.
Experimental Setup
To achieve generalization, RenderFormer was trained on a massive synthetic dataset comprising 2 million scenes. These scenes were constructed by placing objects from the Objaverse dataset into various template environments. Ground truth data consisted of 16 million HDR images rendered using Blender Cycles at 4,096 samples per pixel, ensuring high-quality reference for global illumination effects. Materials were randomized using GGX microfacet BRDF parameters to ensure the model learned a wide range of reflectance behaviors.
Results and Discussion
RenderFormer demonstrates significant improvements in rendering efficiency. It can render a scene in approximately 0.07 seconds, representing a nearly 60x speedup compared to Blender Cycles (3.97 seconds) on equivalent hardware while maintaining comparable visual quality.
The model successfully captures complex optical phenomena, including soft and hard shadows, diffuse indirect lighting, and multiple specular reflections. Key insights from the study suggest that the "all-to-all" nature of self-attention effectively approximates the Rendering Equation. Furthermore, by decoupling light transport from camera projection, the model remains robust; the view-independent stage only needs to be computed once for a static scene, regardless of camera movement.
Conclusion and Future Work
While RenderFormer represents a leap toward universal neural rendering, it faces limitations regarding triangle counts due to the $O(N^2)$ complexity of standard Transformers. Current performance is optimal for meshes up to 4,096 triangles. Future work will explore hierarchical attention mechanisms to scale to more complex geometries. Additionally, while the model handles constant reflectance per triangle, full support for spatially varying textures and higher-order recursive reflections (e.g., complex mirror arrays) remains an area for further development.
Summary updated