Ray-tracing image simulations of transparent objects with complex shape and inhomogeneous refractive index

Armin Kalita, Bryan Oller, Thomas Paula, Alexander Bußmann, Sebastian Marte, G. Blaj, Raymond G. Sierra, Sandra Mous, Kirk A. Larsen, Xinxin Cheng, Matt J. Hayes, Kelsey Banta, Stella Lisova, Peter K. Nguyen, Serge Guillet, Divya Thanasekaran, Silke Nelson, Mengning Liang, Stefan Adami, Nikolaus A. Adams, Claudiu A. StanarXiv 2025 · DOI · arXiv

Abstract

Optical images of transparent three-dimensional objects can be different from a replica of the object's cross section in the image plane, due to refraction at the surface or in the body of the object. Simulations of the object's image are thus needed for the visualization and validation of physical models, but previous image simulations for fluid dynamics showed significant differences from experiments. We report ray tracing image simulations that replicate with high fidelity brightfield microscopy images of drops with complex shapes, and images of pressure and shock waves traveling inside them. For high fidelity, the simulations must replicate the spatial and angular distribution of illumination rays, and both the experiment and the simulation must be designed for accurate optical modeling. These techniques are directly applicable to optical microscopy and expand the type and the accuracy of three-dimensional information that can be extracted from optical images.

Introduction

When observing transparent objects—such as raindrops or glass lenses—the resulting image is rarely a simple cross-section. Refraction at the surface and internal density variations (which alter the refractive index) distort the visual data. In the field of fluid dynamics, this presents a significant challenge. Researchers utilize Computational Fluid Dynamics (CFD) to predict fluid motion and shock wave propagation, but comparing these 3D models to 2D experimental "shadowgraph" or "brightfield" images is difficult because the camera captures a refracted version of the physical reality.

Previous attempts to simulate these images often yielded results that were "too sharp" or lacked the subtle intensity gradients observed in real-world experiments. This research addresses the need for a "digital twin" of the entire optical system to accurately translate 3D physical models into the 2D images captured under a microscope.

Methods

The researchers developed a high-fidelity ray-tracing framework using Ansys Zemax Optic Studio to model the entire optical pipeline, from the light source to the camera sensor.

Comparison of the experimental brightfield microscopy setup and the corresponding ray-tracing simulation model.

Key technical innovations include:

  • Virtual Light Field Source: Instead of assuming perfectly parallel light, the team modeled a "4D light field" that replicates both the spatial and angular distribution of the experimental illumination. This was calibrated by imaging a pinhole to map the light cone.
  • Angular Corrector: To account for reflection losses at steep angles (governed by Fresnel equations), a virtual "corrector" consisting of concentric rings with calibrated transmission factors was implemented.
  • CFD Integration: For complex shapes and internal density gradients, the ALPACA (Adaptive Level-set PArallel Code) multiphase flow solver provided the 3D refractive index maps used as input for the ray tracer.
  • Idealized Lens Modeling: High-end microscope objectives were modeled as paraxial lens combinations matching known physical parameters like Numerical Aperture (NA) and focal length.

Experimental Validation

The framework was validated against three specific experimental scenarios involving water droplets:

  1. Static Spherical Drops: 46-µm droplets used for focus scans (moving the objective ±20 µm).
  2. Merging Drops: Non-spherical, asymmetric shapes formed by the collision of three droplets.
  3. Laser-Ablated Drops: Water drops hit by a femtosecond X-ray laser, creating internal cylindrical shock waves and converging negative pressure waves.

Key Results and Insights

The study revealed that high-fidelity simulation depends heavily on matching the illumination's 4D light field rather than just the object itself. This matching was the single most important factor in achieving parity with experimental data.

Comparison between experimental focusing and ray-tracing simulations for a 46-µm water droplet at various focus positions, demonstrating high fidelity across a 40-µm range.

Key findings include:

  • Focus Scans: Simulations perfectly reproduced intensity distributions within a 46-µm drop across a 40-µm focus range—ten times larger than the objective's depth of field.
  • Complex Shapes: The ray tracer successfully replicated complex "caustic" patterns caused by asymmetric surfaces in merging drops.
  • Shock Waves: The model accurately captured the width and intensity of 100 MPa pressure waves, outperforming previous analytical methods. The framework proved sensitive enough to detect density changes as small as 4 kg/m³ (approx. 8 MPa of pressure).

Conclusion and Future Work

While the current model achieves high fidelity, it relies on geometric optics and omits wave optics effects like diffraction and the Point Spread Function (PSF), leading to simulated images that are slightly sharper than experimental ones. Future work will aim to solve the "inverse problem"—using these high-fidelity forward models to reconstruct 3D fluid dynamics directly from single 2D microscope images using iterative algorithms or AI.

Summary updated

Abstract

Optical images of transparent three-dimensional objects can be different from a replica of the object's cross section in the image plane, due to refraction at the surface or in the body of the object. Simulations of the object's image are thus needed for the visualization and validation of physical models, but previous image simulations for fluid dynamics showed significant differences from experiments. We report ray tracing image simulations that replicate with high fidelity brightfield microscopy images of drops with complex shapes, and images of pressure and shock waves traveling inside them. For high fidelity, the simulations must replicate the spatial and angular distribution of illumination rays, and both the experiment and the simulation must be designed for accurate optical modeling. These techniques are directly applicable to optical microscopy and expand the type and the accuracy of three-dimensional information that can be extracted from optical images.
BibTeX
@misc{kalita2025ray,
  author = {Armin Kalita and Bryan Oller and Thomas Paula and Alexander Bußmann and Sebastian Marte and G. Blaj and Raymond G. Sierra and Sandra Mous and Kirk A. Larsen and Xinxin Cheng and Matt J. Hayes and Kelsey Banta and Stella Lisova and Peter K. Nguyen and Serge Guillet and Divya Thanasekaran and Silke Nelson and Mengning Liang and Stefan Adami and Nikolaus A. Adams and Claudiu A. Stan},
  title = {{Ray-tracing image simulations of transparent objects with complex shape and inhomogeneous refractive index}},
  year = {2025},
  eprint = {2507.23145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.23145},
  howpublished = {arXiv},
}

Loading related content...

Figure