Sequential and nonsequential simulation of volume holographic gratings
Abstract
Background
In the development process of holographic displays like holographic HeadMounted Displays (hHMD) the simulation of the complete optical system is strongly required. This especially includes the correct behaviour of the volume holographic grating (VHG) in terms of its optical function and its diffraction efficiency. The latter is not supported by the current version of Zemax®; OpticStudio 17, one of the most popular optic simulation tools.
Methods
To solve this problem we implemented a C++ code for each raytracing mode of Zemax®;, namely the sequential and nonsequential. The C++ code calculates the grating vector for every single ray traced. Based on the ksphere formalism the propagation direction of the diffracted light is determined. Furthermore, its diffraction efficiency is defined according to Kogelnik’s coupledwave theory. The C++ code is compiled and linked into Zemax®; using the Windows Dynamic Link Library (DLL).
Results and discussion
The aforementioned DLL enables the simulation of planar and arbitrarily spherical curved VHG and their diffraction efficiency within Zemax®; OpticStudio. This allows the fast, easy and reliable simulation of optical systems which include holograms or holographic optical elements, e.g. hHMD. Especially the simulation of VHG in nonsequential mode can be helpful in order to identify possible stray light paths.
Conclusion
The implemented C++ code enables the user to simulate VHG and its diffraction efficiency within Zemax®; Optic Studio.
Keywords
Holography Holographic optical elements Hoe Head mounted display Diffraction efficiency Kogelnik ZemaxAbbreviations
 DLL
Dynamic link library
 hHMD
Holographic headmounted display
 HOE
Holographic optical element
 VHG
Volume holographic grating
 UDS
User defined surface
Background
Recently, new display technologies using holographic approaches have been reported [1, 2, 3, 4]. VHG have several advantages compared to conventional optics: they can be spacesaving, lightweight and they offer a high degree of freedom in the optical design process. On the other hand their strong dependency on wavelength and incidence angle can be problematic if a robust and reliable optical design is required. Additionally, holographic optical systems tend to suffer from stray light due to reflections at glassair boundaries and multiple interactions with the VHG. In order to avoid disturbing stray light paths it is crucial to simulate VHG and their diffraction efficiencies during the design process. Unfortunately, most of the commercially available optic simulation tools like Zemax®; OpticStudio don’t provide this possibility. There have been different approaches to overcome this problem. In Ref [5, 6, 7] the Born approximation is used to estimate the diffraction efficiency. This approximation assumes a weak interaction of the lightfield with the VHG. As in display technologies high diffraction efficiencies are favourable, simulations based on the Born approximation lead to inaccurate results. A suitable description of highly efficient (planar) VHG is given by Kogelnik’s coupledwave theory [8]. In Ref [9] aperiodic and multiplexed VHG are analyzed based on the coupledwave theory within Zemax®;. In order to simulate nonplanar gratings the hologram plane is split into a large number of sampling zones. For every sampling zone the assumption of a planar grating holds [10] if the grating vector is slowly varying. Finally, the diffraction efficiency is averaged over all sampling zones.
Methods
Holographic optical elements
HOE are (V)HG utilized as optical elements like lenses or mirrors. They are spacesaving, lightweight, wavelength and angleselective, transparent and potentially lowcost. Additionally HOE do have the advantage of adding freedom to the optical design process, as incidence and exit angle can be chosen independently. In the recent past new holographic materials have been introduced to the market [11, 12, 13, 14, 15]. They allow the recording of color VHG without the need of chemical or thermal processing, which makes them suitable for massproduction. Therefore, HOE could be the key to satisfy the growing demand for compact and lightweight HMD systems.
with \(\hat {{\mathbf {x}}}\) and \(\hat {{\mathbf {y}}}\) denoting the unit base vectors in the hologram plane. Based on these equations the propagation direction of the diffracted light rays is calculated within the DLL.
Kogelnik’s coupledwave theory

hologram thickness d ≫λ, the used wavelength,

the light field is monochromatic,

reconstruction of the hologram near the Bragg angle,

only reference and object wave are present,

the holographic grating is sinusoidal,

the light field is polarized perpendicular to the plane of incidence.
where n is the surface normal of the hologram plane and Δn is the refractive index modulation of the holographic material.
Transmission holograms
with the reconstruction ray impinging on the VHG with an angle Θ, the grating spacing \(\Lambda = \frac {2\pi }{ \mathbf {K}_{G}}\) and integer value m, specifying the diffraction order. In Kogelnik’s coupled wave theory higher diffraction orders are neglected, therefore m equals 1.
Equation 4 will be used to calculate the diffraction efficiency of transmissiontype HOE in the C++code for sequential and nonsequential mode.
Reflection holograms
Here, special attention has to be paid as the argument of the square root can be negative. In these cases, the hyperbolic sine has a complex argument and therefore will transfer into a sinefunction with a realvalued argument. Similarly to transmission HOE, reflection HOE are most efficient if 𝜗=ξ=0 holds. Equation 6 will be used to calculate the diffraction efficiency of reflectiontype HOE in the C++code for sequential and nonsequential mode.
Implementation of the DLL
The goal of this work is to enhance the commercially available optic simulation tool Zemax®; OpticStudio to allow the fast and easy simulation of optical systems which include arbitrarily spherical curved VHG. Therefore, for the sequential and nonsequential raytracing mode a C++code has been implemented which is compiled to a DLL and linked into Zemax®;.

unit vector \(\hat {{\mathbf {k}}}_{\mathrm {R}}\) of the incoming ray,

wavelength λ of incoming ray (note that \({\mathbf {k}}_{\mathrm {R}} = \frac {2\pi }{\lambda } \cdot \hat {{\mathbf {k}}}_{\mathrm {R}}\)),

interception point (x_{ H },y_{ H },z_{ H }) of the incoming ray with the hologram surface (see Fig. 3),

refractive index of the materials surrounding the hologram surface.
Additionally, userdefined paramters specify the optical function and the material properties of the hologram. The coordinates (x_{ R,rec },y_{ R,rec },z_{ R,rec }) and (x_{ O,rec },y_{ O,rec },z_{ O,rec }) define the point sources of spherical reference and object wave used during recording. Note that if a plane wave is preferred, the distance of the point source should be located in great distance to the hologram surface (e.g. \(\sqrt {x_{R,rec}^{2}+y_{R,rec}^{2}+z_{R,rec}^{2}} \gg 10^{6}{mm}\) for a plane reference wave). Furthermore, the wavelength λ_{ rec } used during recording, the thickness d of the hologram as well as the average refractive index n and its modulation Δn need to be specified.
 Based on the geometry depicted in Fig. 3 k_{ R,rec } and k_{ O,rec } are calculated as followswith i=R,O.$${}\begin{aligned} {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{x}}} &= (x_{H}x_{i,rec})/N_{i}, \\ {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{y}}} &= (y_{H}y_{i,rec})/N_{i}, \\ {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{z}}} &= (z_{H}z_{i,rec})/N_{i}, \\ N_{i} &= \frac{\lambda_{rec}}{2\pi}\sqrt{\!(x_{H}\,\,x_{i,rec})^{2}\,+\,(y_{H}\,\,y_{i,rec})^{2}\,+\,(z_{H}\,\,z_{i,rec})^{2}}, \end{aligned} $$

k_{R},k_{ R,rec } and k_{ O,rec } are refracted according to Snell’s law,

k_{G} is calculated based on Eq. 3,

k_{O} is calculated based on Eq. 1,

depending on the position of the given point sources a distinction of cases between transmission and reflection holograms is made,

the diffraction efficiency is calculated based on Eq. 4 in case of a transmission and Eq. 6 in case of a reflection hologram,

k_{O} is refracted according to Snell’s law,

the diffraction efficiency and the unit vector \(\hat {{\mathbf {k}}}_{\mathrm {O}}\) are transferred to Zemax®;.
The data transfer between the DLL and Zemax®; differs for sequential and nonsequential mode, as different data structures are predefined by Zemax®;. The parameters UD → rel_surf_tran and UD → l,m,n serve to transfer the diffraction efficiency and the propagation direction of the diffracted light in sequential mode, respecively. In the nonsequential mode, we made use of the parameters data[30], data[32], data[33] and data [34]. Note that the whole procedure is repeated for every single ray that interacts with the hologram surface. In Zemax®; rays interact with a surface at a single (intercept) point. To model the behaviour of a volume hologram, a single incident ray’s interaction with the VHG is assumed to be limited to a small suface region of the VHG, in which the grating can be assumed to be plane. However, the orientation of the grating vector can vary across the hologram surface. As previously mentioned this enables us to simulate not only plane, but also any spherical curved VHG.
Results and discussion
In this section examples of use of the DLL in the sequential and nonsequential mode of Zemax®; are given. They prove the benefits of the developed DLL when designing holographic optical systems in sequential mode and evaluating their behaviour in terms of parasitic effects in nonsequential mode.
Sequential raytracing mode
The sequential mode is used to design and optimize optical systems, for example hHMD systems. By the use of the DLL the design process is greatly accelerated, as the characteristica of the HOE can be considered instantly.
The DLL is integrated into Zemax®; as a User Defined Surface (UDS). Once loaded the userdefined parameters have to be set.
Userdefined hologram parameters
Transmission  Reflection  

x_{ R,rec }[mm]  40  40 
y_{ R,rec }[mm]  0  0 
z_{ R,rec }[mm]  20  20 
x_{ O,rec }[mm]  0  0 
y_{ O,rec }[mm]  0  0 
z_{ O,rec }[mm]  200  200 
λ_{ rec }[µm]  0.550  0.550 
d[µm]  5  9 
n  1.5  1.5 
Δ n  0.05  0.05 
The examples should give the reader an idea how the DLL can be used to optimize HOEs in sequential mode. Integration of the HOE into a more complex optical system is very straightforward. By the use of the userdefined parameters and the operand IMAE meritfunctions can be defined. This enables the user to simultaneously optimize the optical system and the HOE.
Nonsequential raytracing mode
In the nonsequential mode of Zemax®; rays don’t hit the optical surfaces in a predefined order, but can intersect the same surface many times and multiple surfaces in any order. Furthermore, an intersecting ray can split up into many rays according to the laws of refraction, reflection and diffraction. This enables us to consider the notdiffracted part, by adding an additional order with efficiency η_{ nd }=1−η_{ i }, i=T,R. The nonsequential mode can be used to identify possible parasitic effects of the optical system previously developed in the sequential mode. That means we focus on effects like double images and stray light.
To include the DLL into the nonsequential mode it is used as a diffractive property of an existing surface, e.g. the Hologram Lens. As an example, a reflection hologram defined by the same parameters as in the sequential mode is used (see Table 1).
It has been shown that the implemented DLL enables the simulation of parasitic effects like double images and stray light in the nonsequential mode. This is a crucial task when evaluating holographic optical system like hHMD.
Conclusions
This paper dealt with an extension written for the optical simulation tool Zemax®; OpticStudio. For both raytracing modes, namely the sequential and the nonsequential mode, a DLL has been implemented which mimics the behaviour of an HOE including its diffraction efficiency. The basic concept of the underlying coupledwave theory has been introduced. It was shown how to integrate the DLL into Zemax®; and examples of use for both raytracing modes were given. Especially the possibility of simulating HOEs with proper diffraction efficiencies in the nonsequential mode, which enables the simulation of stray light effects or double images, can be of great use for future work. It also should be mentioned that combining the DLL with the useful optimization tools of Zemax®; simplifies the design process of holographic optical systems. The presented DLL is restricted to simulate HOEs defined by diverging waves or plane (TypeIHOE). For the case of a converging reference or object wave (TypeIIHOE) an additional DLL has been implemented. It can be used exactly in the same manner as the described DLL with the only difference that one point source is now treated as a point sink (compare to TypeI and TypeIIHOE of Zemax®;, mentioned in ref. [18]).
It is left for the future to adapt the DLL to spherical or cylindrical surfaces as currently the surface of the HOE needs to be plane. Furthermore, defining the optical function of the HOE by the use of Zernike polynomials instead of two spherical waves could lead to more complex optical functions for the simulated HOE. Subsequently, aberrations of the optical system could be simulated and corrected by adjusting the HOE function.
Notes
Acknowledgements
This work was supported by Prof. Dr. Norbert Lindlein (Universität Erlangen) and Patrick Wissmann [6].
Availability of data and materials
The data has been provided in the manuscript.
Authors’ contributions
MK implemented the C++code and wrote the manuscript. WS and RF made contribution to the development of the idea and read and approved the final manuscript.
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
 1.Kasai, I, Tanijiri, Y, Endo, T, Ueda, H: A practical seethrough head mounted display using a holographic optical element. Opt. Rev. 8(4), 241–244 (2001).CrossRefGoogle Scholar
 2.Maimone, A, Georgiou, A, Kollin, JS: Holographic neareye displays for virtual and augmented reality. ACM Trans. Graph. 36(4), 85–18516 (2017).CrossRefGoogle Scholar
 3.Hsieh, PY, Oi, R, Senoh, T, Sasaki, H, Ichihashi, Y, Okui, M, Huang, YP, Yamamoto, K, Wakunami, K: Projectiontype seethrough holographic threedimensional display. Nat. Commun. 7, 12954–12961 (2016).ADSCrossRefGoogle Scholar
 4.Hong, J, Yeom, J, Kim, Y, Park, J, Cho, J, Hong, S, Jung, KM, Kang, H, Lee, B: Seethrough threedimensional display using printed holographicopticalelement. In: Digital Holography & 3D Imaging Meeting, pp. 2–4. Optical Society of America (2015).Google Scholar
 5.Sinha, A, Barbastathis, G: Broadband volume holographic imaging. Appl. Opt. 43(27), 5214–5221 (2004).ADSCrossRefGoogle Scholar
 6.Wissmann, P, Oh, SB, Barbastathis, G: Simulation and optimization of volume holographic imaging systems in zemax®;,. Opt. Express. 16(10), 7516–7524 (2008).ADSCrossRefGoogle Scholar
 7.Kalkum, F: Fast numerical simulation of diffraction from large volume holograms. J. Opt. Soc. Am. A. 26(11), 2393–2397 (2009).ADSCrossRefGoogle Scholar
 8.Kogelnik, H: Coupled wave theory for thick hologram gratings. Bell Syst. Tech. J. 48(9), 2909–2947 (1969).CrossRefGoogle Scholar
 9.Luo, Y, Castro, J, Barton, JK, Kostuk, RK, Barbastathis, G: Simulations and experiments of aperiodic and multiplexed gratings in volume holographic imaging systems. Opt. Express. 18(18), 19273–19285 (2010).ADSCrossRefGoogle Scholar
 10.Syms, R, Solymar, L: Localized onedimensional theory for volume holograms. Optical & Quantum Electronics. 13(5), 415–419 (1981).CrossRefGoogle Scholar
 11.Jurbergs, D, Bruder, FK, Deuber, F, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Volkov, A: New recording materials for the holographic industry. In: Proc. SPIE 7233, Practical Holography XXIII: Materials and Applications, pp. 72330–7233010 (2009).Google Scholar
 12.Jurbergs, D, Bruder, FK, Deuber, F, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Volkov, A: Reactiondiffusion model applied to high resolution bayfol ®;hx photopolymer. In: Proc. SPIE 7619, Practical Holography XXIV: Materials and Applications, pp. 76190–7619015 (2010).Google Scholar
 13.Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Jurbergs, D: Holographic recording aspects of highresolution bayfol ®;hx photopolymer. In: Proc. SPIE 7957, Practical Holography XXV: Materials and Applications, pp. 79570–7957015 (2011).Google Scholar
 14.Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Walze, G, Weiser, MS: Holographic recordings with high beam ratios on improved bayfol ®;hx photopolymer. In: Proc. SPIE 8776, Holography: Advances and Modern Trends III, vol. 8776, pp. 877603–87760312 (2013).Google Scholar
 15.Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Walze, G, Jurbergs, D: Bayfol hx photopolymer for fullcolor transmission volume bragg gratings. In: Proc. SPIE 9006, Practical Holography XXVIII: Materials and Applications, vol. 9006, pp. 900602–90060210 (2014).Google Scholar
 16.Lindlein, N: Analyse und optimierung diffraktiver optischer systeme. FriedrichAlexanderUniversität ErlangenNürnberg (1996). PhD thesis.Google Scholar
 17.Bragg, WL: The diffraction of short electromagnetic waves by a crystal. In: Proceedings of the Cambridge Philosophical Society, pp. 43–57 (1913).Google Scholar
 18.Zemax: OpticStudio 16 SP2 Help Files (2016).Google Scholar
Copyright information
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.