[Paper Review] Ray-transfer functions for camera simulation of 3D scenes with hidden lens design
This paper presents a polynomial ray-transfer function (RTF) model that enables accurate, physically based camera simulation of 3D scenes using black-box lens data from Zemax, preserving lens designers' intellectual property. The method achieves high fidelity in simulating relative illumination and edge spread functions by fitting nonlinear RTFs to Zemax-generated ray data, and it is integrated into PBRT for end-to-end simulation with open-source tools for reuse and validation.
Combining image sensor simulation tools (e.g., ISETCam) with physically based ray tracing (e.g., PBRT) offers possibilities for designing and evaluating novel imaging systems as well as for synthesizing physically accurate, labeled images for machine learning. One practical limitation has been simulating the optics precisely: Lens manufacturers generally prefer to keep lens design confidential. We present a pragmatic solution to this problem using a black box lens model in Zemax; such models provide necessary optical information while preserving the lens designer's intellectual property. First, we describe and provide software to construct a polynomial ray transfer function that characterizes how rays entering the lens at any position and angle subsequently exit the lens. We implement the ray-transfer calculation as a camera model in PBRT and confirm that the PBRT ray-transfer calculations match the Zemax lens calculations for edge spread functions and relative illumination.
Motivation & Objective
- To address the challenge of simulating camera optics when lens designs are confidential, limiting accurate soft prototyping and machine learning training.
- To develop a practical, privacy-preserving method for modeling unknown lens systems using only black-box optical data from Zemax.
- To enable high-fidelity simulation of 3D scenes with depth, occlusion, and spectral effects by embedding a polynomial RTF into a physically based ray tracer.
- To provide open-source tools that allow researchers to reproduce, validate, and integrate the RTF model into existing simulation pipelines like PBRT and Zemax.
Proposed method
- The authors derive a 6D nonlinear ray-transfer function (RTF) that maps incoming ray position and direction to outgoing ray position and direction, using polynomial approximations of Zemax-generated ray data.
- The RTF is constructed by sampling rays from the sensor plane through the lens, computing their exit points and directions in Zemax, and fitting a multivariate polynomial to the input-output ray pairs.
- A ray-pass function is implemented to determine whether a given input ray will pass through the lens, defining the valid domain of the RTF and accounting for vignetting.
- The RTF is encoded in a JSON file and integrated into PBRT as a custom camera model, enabling full 3D scene rendering with depth-dependent optical effects.
- The method supports curved output surfaces by including the z-component of ray position and direction, enabling accurate simulation of wide-angle and non-planar optical systems.
- The approach is validated by comparing PBRT simulations against Zemax results for relative illumination and edge spread functions across six diverse lenses.
Experimental results
Research questions
- RQ1Can a polynomial ray-transfer function accurately model the optical behavior of real lenses when only black-box Zemax data is available?
- RQ2How well can the RTF replicate key optical metrics like relative illumination and edge spread function across different lens types?
- RQ3To what extent can the RTF model capture depth-dependent effects such as occlusion and multiple reflections in 3D scenes?
- RQ4Can the RTF be effectively integrated into a physically based ray tracer like PBRT to enable accurate, end-to-end camera simulation?
- RQ5How does the RTF performance vary with polynomial degree and input ray sampling strategy, especially for wide-angle and complex lenses?
Key findings
- The RTF model achieves high accuracy in replicating Zemax-calculated relative illumination profiles across six diverse lenses, including a double Gauss and a 200° wide-angle lens.
- For edge spread functions, a fifth-degree polynomial RTF achieved a good fit to Zemax data when the input ray circle was limited to 0.8 mm radius, reducing the required polynomial complexity.
- The method successfully models complex optical effects such as vignetting and non-planar ray propagation, including rays with negative dz components, by extending the RTF to 3D ray vectors.
- The PBRT implementation using the RTF closely matches Zemax results for both edge spread functions and relative illumination, validating the fidelity of the approximation.
- The open-source software stack—including Zemax macros, MATLAB processing scripts, and a PBRT-compatible RTF JSON interface—enables reproducible and extensible simulation workflows.
- The approach enables machine learning applications to generate large-scale, physically accurate, pixel-labeled training data even when the lens design is unknown.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.