Stochastic ray tracing is used for rendering photorealistic images formed by augmented reality optical systems that combine the image generated by an optoelectronic device with the image of...
18 September 2011 in Programming and Computer Software
This paper analyzes color rendering problems arising in computer imaging of scenes with complex optical properties. The sources of these errors for imagery constructed on the basis of the RGB space are analyzed and an efficient and correct algorithm is proposed for spectral imagery. These solutions are applied to problems of direct stochastic and inverse deterministic ray tracing. In addition, complex scenes with mixed optical properties defined in different (including RGB) models are proposed to be treated by an efficient and correct algorithm for reducing all optical properties into a single spectral model.
One of the main problems of mixed reality devices is the lack of universal methods and algorithms for the visualization of virtual world objects in real space. The key point of natural perception of virtual objects in the real world is the creation of natural lighting conditions for virtual world objects by light sources located in the real world, i.e. the formation of natural glares on virtual objects and shadows cast by these objects in the real world. The paper proposes a method for adequately determining the position of the main light sources of the real world in mixed reality systems. Modern technologies that combine the capability of forming 2.5D images created by depth cameras and their subsequent computer processing using neural networks make it possible to identify real-world objects, recognize their shadows, and correctly restore the light sources that create these shadows. The results of the proposed method are presented, the accuracy of restoring the position of the light sources is estimated, and the visual difference between the image of the scene with the original light sources and the same scene with the restored parameters of the light sources is demonstrated.
This paper proposes using the Monte Carlo method to design optical systems with an indeterminate ray path. The main algorithms for direct stochastic ray tracing and programmed implementation of the given algorithms are considered. The work is illustrated with examples in which the scattered light is calculated in lens-based optical systems.
We provide an analysis of the existing methods for calculating parasitic illumination, methods for its analysis, and visualization. To search for and analyze the sources of stray light in optical devices, a software model of the beam propagation criterion in an optical device is proposed, which makes it possible to select beams that satisfy a given criterion. We consider the possibility of using the method of bidirectional progressive stochastic ray tracing with inverse photon maps to calculate the stray illumination of an image and analyze the causes of its occurrence. To analyze the sources of stray illumination on the radiation detector, it was proposed to use progressive photon maps, which calculated the caustic and secondary components of the illumination and fixed the image illumination on a static regular mesh attached to the surfaces of the optical device. Special visualization tools allow the display of this illumination over the image of an optical device and determination of the elements of the device that have the greatest impact on the level of stray illumination of the image. We present examples of calculation, analysis, and visualization of parasitic illumination of a number of optical systems of lenses with real mechanical structures.
This paper explores the possibility of using dual representation of geometry to speed up ray tracing and ensure robustness of light propagation simulation in complex optical systems with freeform surfaces defined by high-degree polynomials (up to order 34) or Jacobi polynomials. Traditional methods for representing this geometry both as a triangular mesh and as an analytical expression are analyzed. The analysis demonstrates the disadvantages of the traditional approaches due to the insufficient accuracy of calculating coordinates of the point at which the ray intersects the triangular mesh, as well as the non-robustness of the conventional procedures for finding the point of intersection between the tangent ray and the analytical surface. Thus, it is proposed to use a dual representation of geometry as a rough approximation of the surface by a triangular mesh, which is subsequently used as an initial approximation to find the point at which the ray intersects the surface defined by an analytical expression. This approach significantly speeds up convergence of the analytical methods and improves robustness of their solutions. The use of the Intel® Embree library to quickly find the point of intersection between the ray and the rough triangular mesh, as well as a vector model to refine the coordinates of the point of intersection between the ray and the analytically represented geometry, allows us to develop and implement a ray tracing algorithm for an optical system that has surfaces with dual representation of geometry. Experiments carried out using the developed algorithm show a significant speedup of ray tracing while preserving computational accuracy and high robustness of the results. The results are demonstrated by evaluating the point spread function and glare for two lenses with freeform surfaces defined by Jacobi polynomials. In addition, for these two lenses, an image formed by an RGB-D object that simulates a real scene is calculated.