Mesh2NeRF: Direct Mesh Supervision for Neural Radiance Field Representation and Generation

Yujin Chen, Yinyu Nie, Benjamin Ummenhofer, Reiner Birkl, Michael Paulitsch, Matthias Müller, Matthias Nießner

Abstract

Neural Radiance Fields (NeRFs) have revolutionized 3D scene representation, yet their reliance on 2D image-based supervision often introduces geometric ambiguities and computational inefficiencies. We present Mesh2NeRF, an analytic method designed to convert 3D textured meshes directly into ground-truth NeRF representations. By bypassing the traditional multi-view rendering pipeline, Mesh2NeRF provides direct 3D point-wise guidance, significantly enhancing the accuracy and geometric consistency of both single-scene representations and generative 3D models. Our approach demonstrates a 3.12dB improvement in PSNR on standard benchmarks and superior generalization to real-world data.

1. Introduction

The standard paradigm for training Neural Radiance Fields (NeRFs) involves minimizing the discrepancy between rendered 2D images and ground-truth pixels. While effective, this 2D-to-3D supervision pipeline is fundamentally flawed when applied to large-scale 3D datasets like ShapeNet. Researchers typically render thousands of synthetic images to "fit" a NeRF for each object, a process that is computationally wasteful and prone to information loss due to occlusions.

Furthermore, standard NeRF training suffers from weak supervision. Because a single pixel's color supervises all points along a ray simultaneously, the model faces mathematical ambiguity regarding the exact placement of density and color. This often results in "floaters," blurry geometry, or hollow shells where solid surfaces should exist.

2. Methodology

Mesh2NeRF addresses these limitations by treating the 3D mesh as the absolute ground truth for the radiance field. Instead of supervising integrated rays, the method supervises individual points in space analytically.

2.1 Analytic Density and Color Fields

The core of Mesh2NeRF lies in its ability to derive NeRF parameters directly from mesh geometry:

  • Analytic Density Field: The density of a scene is characterized using an occupancy function. To make the density field compatible with discrete neural sampling, the authors define a "surface thickness" ($h$). A sampled point $(x, y, z)$ is assigned an occupancy (alpha) of 1 if it falls within distance $h$ of the mesh surface; otherwise, it is 0.
  • Analytic Color Field: To determine spatial color, the method identifies the first intersection of a ray with the mesh. It then applies a Bidirectional Reflectance Distribution Function (BRDF)—specifically the Phong reflection model—incorporating mesh textures, surface normals, and environment lighting to calculate view-dependent colors.

2.2 Direct Point-wise Supervision

During training, the model receives explicit instructions for specific coordinates: "this point at $(x,y,z)$ must have a density of 0.8 and a color of $(r,g,b)$." The loss function comprises three terms: an alpha (density) loss, a color loss, and an optional integral loss to ensure the final rendered ray aligns with the expected output. This removes the ambiguity inherent in ray-wise supervision.

3. Experimental Results

The researchers evaluated Mesh2NeRF across diverse synthetic and real-world datasets, including ABO (Amazon Berkeley Objects), ShapeNet, Objaverse, and KITTI.

3.1 Performance and Fidelity

  • Single Scene Fitting: On the ABO dataset, Mesh2NeRF achieved a 3.12dB improvement in PSNR over Instant NGP, demonstrating the power of direct geometric guidance.
  • Geometric Consistency: In unconditional generation tasks, Mesh2NeRF produced significantly cleaner meshes. While baseline models often struggle with complex topology—such as "sealing" the tops of mugs—Mesh2NeRF correctly captured intricate interior geometries.
  • Real-World Generalization: Models trained on synthetic ShapeNet data using Mesh2NeRF supervision performed markedly better when reconstructing real-world vehicles from the KITTI dataset. This suggests that direct 3D supervision helps the model learn more robust, globally consistent features that transfer better to "in-the-wild" scenarios.

4. Discussion and Key Insights

The primary contribution of Mesh2NeRF is the shift from ray-wise to point-wise supervision. By defining the mesh surface as a finite thickness rather than an infinitely thin shell, the authors bridge the gap between continuous geometry and discrete neural representations. Furthermore, Mesh2NeRF eliminates the "fitting bottleneck" by providing ground-truth values instantly, saving massive amounts of pre-processing time compared to traditional optimization loops.

5. Limitations and Future Work

Despite its advantages, Mesh2NeRF currently utilizes the Phong reflection model, which "bakes" lighting into the radiance field, limiting dynamic relighting capabilities. Additionally, the method still relies on virtual camera viewpoints to select which rays to supervise. Future research could explore more efficient 3D space sampling techniques and the extension of this analytic framework to large-scale, unbounded outdoor environments.

Summary updated

Abstract

We present Mesh2NeRF, an approach to derive ground-truth radiance fields from textured meshes for 3D generation tasks. Many 3D generative approaches represent 3D scenes as radiance fields for training. Their ground-truth radiance fields are usually fitted from multi-view renderings from a large-scale synthetic 3D dataset, which often results in artifacts due to occlusions or under-fitting issues. In Mesh2NeRF, we propose an analytic solution to directly obtain ground-truth radiance fields from 3D meshes, characterizing the density field with an occupancy function featuring a defined surface thickness, and determining view-dependent color through a reflection function considering both the mesh and environment lighting. Mesh2NeRF extracts accurate radiance fields which provides direct supervision for training generative NeRFs and single scene representation. We validate the effectiveness of Mesh2NeRF across various tasks, achieving a noteworthy 3.12dB improvement in PSNR for view synthesis in single scene representation on the ABO dataset, a 0.69 PSNR enhancement in the single-view conditional generation of ShapeNet Cars, and notably improved mesh extraction from NeRF in the unconditional generation of Objaverse Mugs.
BibTeX
@inproceedings{chen2024mesh,
  author = {Yujin Chen and Yinyu Nie and Benjamin Ummenhofer and Reiner Birkl and Michael Paulitsch and Matthias Müller and Matthias Nießner},
  title = {{Mesh2NeRF: Direct Mesh Supervision for Neural Radiance Field Representation and Generation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72673-6\_10},
}
Figure