PRIF: Primary Ray-Based Implicit Function

Brandon Yushan Feng, Yinda Zhang, Danhang Tang, Ruofei Du, Amitabh Varshney

Abstract

Implicit Neural Representations (INRs) have revolutionized 3D geometry modeling, yet traditional methods like Signed Distance Functions (SDFs) suffer from significant rendering bottlenecks due to iterative sampling requirements. This paper introduces the Primary Ray-based Implicit Function (PRIF), a novel representation that maps oriented rays directly to surface hit points. By utilizing a unique ray reparameterization and a single-pass MLP architecture, PRIF achieves rendering speeds up to 175x faster than conventional SDFs while maintaining superior reconstruction accuracy across diverse datasets, including non-watertight and complex geometries.

1. Introduction

In computer vision and graphics, modeling complex 3D geometry often relies on Implicit Neural Representations (INRs). Most state-of-the-art methods utilize Signed Distance Functions (SDFs) or Occupancy Functions (OFs), which represent shapes by predicting values at specific $(x, y, z)$ coordinates. While effective for representation, these point-based methods create a substantial "rendering bottleneck." To determine where a camera ray intersects a surface, one must typically employ computationally expensive techniques such as sphere-tracing—which requires iterative sampling along every ray—or extract a polygon mesh via a dense 3D grid evaluation.

PRIF addresses these inefficiencies by shifting the focus from spatial points to oriented rays. By making the representation "ray-aware," PRIF eliminates the need for iterative processes, allowing for direct surface prediction in a single forward pass.

2. Methodology

The core innovation of PRIF is a mapping function that takes an oriented ray as input and directly outputs the corresponding surface hit point.

2.1 Ray Reparameterization

A significant challenge in ray-based learning is "ray aliasing." A standard $(origin, direction)$ representation is redundant; moving the origin along the ray's direction does not change the physical ray, yet it changes the input values to the neural network. To ensure a unique mapping, PRIF represents a ray using its perpendicular foot ($f_r$)—the point on the ray closest to the coordinate origin. This ensures that every point along a specific ray maps to the same unique input vector.

2.2 Architecture and Hit Point Calculation

The PRIF architecture utilizes a Multi-Layer Perceptron (MLP) that processes the ray's normalized direction ($d_r$) and its perpendicular foot ($f_r$). The network produces two outputs:

  1. $s_r$: A scalar representing the signed displacement from the perpendicular foot to the hit point.
  2. $a_r$: A probability indicating whether the ray hits the object (the background mask).

The final 3D hit point is calculated as:
$h_r = s_r \cdot d_r + f_r$

This calculation is entirely differentiable and requires only one evaluation per ray, making it inherently compatible with real-time rendering and gradient-based optimization tasks.

3. Experimental Results

The authors evaluated PRIF against standard benchmarks, including the Stanford 3D Scanning Repository, ShapeNetCore, and Renderpeople.

3.1 Efficiency and Speed

PRIF demonstrates a massive leap in rendering efficiency. In head-to-head tests, PRIF rendered a $512 \times 512$ depth image in 0.005 seconds, whereas DeepSDF required 1.01 seconds. This represents an approximately 175x speedup, moving implicit representations closer to real-time application requirements.

3.2 Reconstruction Accuracy

Beyond speed, PRIF improves upon the accuracy of traditional methods. On the Stanford models (e.g., Bunny, Dragon, Lucy), PRIF achieved a mean Chamfer Distance (CD) roughly 2x to 4x lower than comparable SDF and OF methods using the same network capacity. This suggests that the ray-based prior is a more efficient way to encode geometric information.

3.3 Versatility and Generative Power

PRIF is not limited to single-shape reconstruction. When trained on ShapeNet, it successfully learned latent spaces for various categories (Cars, Chairs, Tables), enabling shape completion from noisy or sparse point clouds. Furthermore, the differentiable nature of the network allows for inverse rendering, such as recovering unknown camera poses from simple silhouette images by optimizing parameters through the PRIF network.

4. Key Insights

  • Breaking the Watertight Constraint: Unlike SDFs, which require a strict "inside vs. outside" definition, PRIF only models the surface intersection. This allows it to represent self-intersecting, open, and non-watertight surfaces that typically cause failures in traditional implicit models.
  • Outlier Removal: To handle potential "ghost" points caused by neural interpolation at sharp edges, the authors implemented a gradient-based pruning method. By checking the gradient of the predicted displacement relative to the ray position, the system can identify and remove artifacts.

5. Limitations and Future Work

While PRIF offers significant advantages, some challenges remain. Ensuring perfect multi-view consistency (preventing "popping" artifacts when moving the camera) may require additional consistency losses during training. Additionally, while the current model uses a global MLP per object, future iterations could incorporate spatial partitioning (like octrees) to scale to massive, high-detail scenes. Finally, while color rendering was demonstrated, integrating view-dependent color directly into the geometry learning process remains an area for further exploration.

6. Conclusion

PRIF represents a paradigm shift in implicit 3D modeling. By reparameterizing the problem as a ray-to-hit-point mapping, it bypasses the most significant computational hurdles of SDFs. Its combination of extreme rendering speed, high accuracy, and the ability to handle complex, non-watertight geometry makes it a powerful tool for the next generation of 3D computer vision and graphics applications.

Summary updated

BibTeX
@inproceedings{feng2022prif,
  author = {Brandon Yushan Feng and Yinda Zhang and Danhang Tang and Ruofei Du and Amitabh Varshney},
  title = {{PRIF: Primary Ray-Based Implicit Function}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20062-5\_9},
}
Figure