Next Article in Journal
Numerical Simulation of a Compact Dual-Window In-Fiber Polarization Filter Using Gold-Deposited Square-Lattice Photonic Crystal Fiber
Previous Article in Journal
Trough-Shift Pointer for Weak Measurement with Large Range and High Spectral Resolution
Previous Article in Special Issue
Genetic-Algorithm-Based Research on Key Technologies for Motion System Calibration and Error Control for the Precision Marking System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Differentiable Automated Design of Automotive Freeform AR-HUD Optical Systems

1
Engineering Research Center of Optical Instruments and Systems, Ministry of Education, Shanghai Key Laboratory of Modern Optical Systems, University of Shanghai for Science and Technology, Shanghai 200093, China
2
Suzhou Raphael Optech Co., Ltd., Suzhou 215400, China
3
Brussels Photonics Team, Department of Applied Physics and Photonics, Vrije Universiteit Brussel and Flanders Make, Pleinlaan 2, B-1050 Brussels, Belgium
*
Authors to whom correspondence should be addressed.
Photonics 2026, 13(4), 337; https://doi.org/10.3390/photonics13040337
Submission received: 30 January 2026 / Revised: 13 March 2026 / Accepted: 26 March 2026 / Published: 30 March 2026
(This article belongs to the Special Issue Emerging Topics in Freeform Optics)

Abstract

The automotive augmented reality head-up display (AR-HUD) system projects critical driving information directly into the driver’s line of sight, enhancing driving safety, user experience, and navigation efficiency. However, due to the intrinsic asymmetry of vehicle windshields, existing optical configurations are difficult to use as effective design starting points. The asymmetric transmission region of the windshield causes the AR-HUD optical system to deviate significantly from the YOZ plane, increasing the complexity of system design and optimization. To address these challenges, this paper proposes an automated design method for automotive AR-HUD optical systems. Given the windshield geometry and system design specifications, a normal-guided iterative construction method is first employed to generate a high-performance initial optical structure with low distortion. Subsequently, differentiable ray tracing combined with optimization algorithms is employed to further improve system performance. Based on the proposed method, an AR-HUD optical system with a 130 mm × 50 mm eye-box and a 13° × 4° field of view was designed. The design results indicate that the maximum optical distortion is 0.51%. At five sampled eye positions within the eye-box, the MTF exceeds 0.5 at the spatial frequency of 6 lp/mm, and the dynamic distortion remains below 5.36′. Finally, a complete experimental prototype was established, and the experimental results verified the feasibility and effectiveness of the proposed automated design method.

1. Introduction

Head-up display (HUD) systems have been widely adopted in modern vehicles to present essential driving information, such as navigation cues and vehicle status, directly in front of the driver. By allowing drivers to access critical information without looking down at the instrument cluster, HUD systems reduce visual distraction and help mitigate inattentive driving, thereby enhancing driving safety [1,2,3,4]. With the rapid development of intelligent and connected vehicle technologies, augmented reality head-up display (AR-HUD) systems have attracted increasing attention in recent years [5,6]. Compared with conventional HUD systems, AR-HUD systems function as advanced human–machine interfaces by integrating information from cameras, radar, and high-precision maps. Virtual images are projected onto the windshield and spatially registered with real-world objects, such as lanes, vehicles, and pedestrians, enabling intuitive augmented visual cues including navigation arrows, lane-level guidance, and hazard warnings. These features significantly enhance drivers’ situational awareness and driving comfort.
A typical automotive AR-HUD optical system consists of an irregularly shaped windshield and multiple freeform reflective surfaces. The windshield, acting as an optical combiner, introduces considerable aberrations due to its complex geometry and nonuniform curvature. To compensate for these aberrations and to project the image generated by the picture generation unit (PGU) to a virtual image plane several meters in front of the driver, multiple freeform mirrors are commonly employed. Because automotive windshields exhibit strong asymmetry and large geometric variations across vehicle models, AR-HUD optical systems usually require customized designs. However, existing industrial design workflows largely rely on experience-driven trial-and-error procedures, which require substantial manual effort and expert intervention. As a result, the design efficiency is low, and the final imaging performance strongly depends on the designer’s experience.
To improve design efficiency and reduce reliance on trial-and-error procedures, various automated freeform optical design methods have been proposed [7,8,9]. Representative approaches include the Simultaneous Multiple Surface (SMS) method [10,11] and the partial differential equations (PDEs) method [12,13,14]. While effective, these methods are generally limited to systems with a single freeform surface or a small field of view (FOV). To address systems with multiple freeform surfaces, Yang et al. [15,16,17] proposed the construction–iteration (CI) method, which iteratively constructs optical surfaces at sampled points. Building on these foundational works, several studies have explored automated design strategies specifically for automotive AR-HUD systems. For instance, Fan et al. utilized the CI framework to generate initial AR-HUD configurations [18], and Yang et al. developed an automatic continuous optimization workflow [19]. Despite these advancements, AR-HUD systems reported in the literature often exhibit relatively large optical and dynamic distortion. Consequently, distortion-correction integrated circuits or complex warping-based pre-distortion algorithms are typically required to compensate for virtual-image distortion [20,21], increasing system cost and implementation complexity. Moreover, the dependence on commercial optical design software generally restricts the flexibility of the design workflow, making it difficult to implement fully integrated, end-to-end optimization strategies. To address these challenges, differentiable ray-tracing-based optimization methods have emerged as a powerful paradigm in optical design [22,23,24,25,26,27], utilizing gradient information for efficient end-to-end optimization. While promising results have been demonstrated in rotationally symmetric systems and off-axis systems with YOZ-plane symmetry, their application to automotive AR-HUDs remains relatively limited. These systems typically involve highly asymmetric freeform surfaces and stringent geometric constraints, presenting unique challenges for automated design and optimization.
In this paper, we propose an automated and differentiable design method for wide-field automotive AR-HUD optical systems. The proposed framework consists of two stages. First, starting from a simple planar initial configuration, a normal-guided iterative construction strategy is employed to automatically generate a freeform initial structure with low distortion based on a prescribed image point distribution. Second, a differentiable ray-tracing framework is introduced to trace sampled rays across the entire eye-box and to formulate an optimization loss function. By combining automatic differentiation with nonlinear least-squares optimization, the optical system parameters are optimized in an end-to-end and continuous manner, further improving imaging quality and reducing optical distortion. The feasibility of the proposed method is validated through the fabrication and experimental evaluation of a full-scale AR-HUD prototype.

2. Method

AR-HUD system is a typical multi-eye-pupil optical system, in which a large eye-box is defined as the entrance pupil to cover all possible eye-pupil positions, thereby ensuring superior imaging quality for the driver at arbitrary eye positions. In this section, an automated design method is proposed for the development of a high-performance and wide–field AR-HUD optical system. The proposed method consists of two main stages. First, sampled rays over the full FOV are traced throughout the entire eye-box to construct an initial AR-HUD configuration based on a planar optical system. Subsequently, all sampled rays are traced using differentiable ray tracing, and the AR-HUD optical system is iteratively optimized by combining this process with the Levenberg–Marquardt (LM) algorithm. The overall flowchart of the proposed automated design method is shown in Figure 1.

2.1. Construction Method of Initial Structures

To achieve a high-performance AR-HUD optical system, a well-designed initial configuration is crucial for ensuring optimization convergence. In this section, a Normal-Guided Iterative Construction (NIC) method is proposed for generating the initial optical structure, as illustrated in Figure 2. The NIC method is developed based on the modal surface reconstruction framework commonly used in deflectometry [28]. By fitting the ideal surface normals of the sampled rays, freeform surfaces are progressively constructed to approximate the target optical configuration. Prior to this process, pupil sampling over the entire eye-box and FOV sampling must be defined to ensure high imaging quality across the full eye-box range. As shown in Figure 3a, since the AR-HUD optical system is fully asymmetric, K sampled field points are selected over the entire rectangular FOV. The entire eye-box is treated as the entrance pupil of the optical system, and M rays are uniformly sampled over the rectangular pupil, as depicted in Figure 3b. Consequently, the total number of characteristic rays to be traced is N r a y s = K × M .
As illustrated in Figure 3, during the construction of the freeform surface S i , let Q i , j denote the intersection point of the j-th sampled pupil ray of the i-th field with the preceding surface. The intersection point with surface Si is defined as P i , j , and the corresponding target image point is T i , j . Consequently, the normalized ideal normal vector at P i , j can be calculated as:
n ^ i , j = Q i , j P i , j P i , j T i , j Q i , j P i , j P i , j T i , j
As an example, for an XY polynomial surface, the sag function and its gradient expressions can be written as:
g ( x , y ) = m = 0 M n = 0 N a m n x m y n g x = m = 1 M n = 0 N m a m n x m 1 y n g y = m = 0 M n = 1 N n a m n x m y n 1
To ensure consistency between the actual surface normals at the ray–surface intersection points on surface S i and the corresponding ideal normals, the following optimization objective function is formulated by enforcing normal constraints at all sampled points P i , j :
a = arg min a i = 1 K j = 1 M g x + n ^ x , i , j n ^ z , i , j 2 + g y + n ^ y , i , j n ^ z , i , j 2
where a = { a m n } denotes the coefficients of XY polynomial defining the freeform surface S i , and n ^ x , i , j , n ^ y , i , j , and n ^ z , i , j denote the x-, y-, and z-components of the ideal normal at point P i , j , respectively. The objective function in Equation (3) is formulated to minimize the squared residual between the surface gradients and the target slopes defined by the normal vectors.
The intersection points used to compute the initial ideal surface normals are obtained from the intersections between the sampled rays and the initial planar surface S i . After the first construction step, the sampled rays intersect the freeform surface S i at shifted locations, causing the corresponding intersection points P i , j to deviate from their initial positions. To address this discrepancy, an iterative procedure is employed to update the intersection points P i , j and recompute the associated ideal surface normals. With successive iterations, the surface geometry gradually converges toward the target configuration, ultimately yielding a smooth and continuous freeform surface that closely approximates the desired optical performance.
For AR-HUD optical systems with a wide FOV, a single freeform surface is generally insufficient to achieve high imaging quality across all fields while maintaining low optical distortion. Therefore, an additional freeform secondary mirror is often introduced to further improve the imaging performance. As illustrated in Figure 4, in an AR-HUD optical system incorporating a freeform secondary mirror, the construction of the primary mirror is based on the ideal image points defined on the intermediate image plane, whereas the construction of the secondary mirror relies on the ideal image points on the final image plane. To properly control the optical power distribution between the primary and secondary mirrors, the positions of the intermediate image points are scaled. This scaling relationship is defined as:
[ x , y , z ] T = ρ [ x , y , z ] T
where [ x , y , z ] T denotes the coordinates of the ideal image point on the final image plane, while [ x , y , z ] T represents the coordinates of the ideal image point on the intermediate image plane. The parameter ρ = L 1 / L 2 is defined as the surface factor, in which L1 and L2 denote the distance from the intermediate image plane to the freeform secondary mirror and the distance from the final image plane to the secondary mirror, respectively, as illustrated in Figure 4.
The construction of the entire initial optical configuration can be divided into two sequential stages: the construction of the freeform primary mirror and the construction of the secondary mirror. First, the freeform primary mirror is generated based on the ideal image points defined on the intermediate image plane, where the primary mirror is represented by an XY polynomial of a specified order. Subsequently, the secondary mirror is constructed using the intersection points of the sampled rays on the primary mirror, the corresponding reflected ray directions, and the ideal image points defined on the final image plane.

2.2. Parameter Optimization Method Based on Differentiable Ray-Tracing

The initial configuration of each freeform surface in the AR-HUD system can be obtained using the design procedure described in Section 2.1. However, due to fitting errors and the simplified specification of the initial positions of the two freeform surfaces, the optical system generated by the NIC method does not yet constitute an optimal and compact layout. In addition, non-negligible discrepancies remain between the actual image points and their corresponding ideal image points.
This section aims to present an automated optimization framework for iteratively refining the AR-HUD optical system, with the goal of improving imaging quality while satisfying geometric constraints. As illustrated in Figure 5, the proposed method is based on constructing a residual vector through differentiable ray tracing and efficiently computing the gradients of the residuals with respect to the optical system parameters via automatic differentiation [29]. Using these gradients, the complete Jacobian matrix is assembled to perform damped least-squares optimization. The entire optimization process is implemented using modern differentiable programming tools, such as PyTorch (version 2.4) [30].
Differentiable computation of the intersections between rays and freeform surfaces remains a challenging problem within differentiable ray tracing frameworks. The main difficulty arises from the fact that ray–surface intersections are typically solved using numerical iterative methods, while the backward pass must simultaneously ensure gradient accuracy, numerical stability, and memory efficiency. A ray can be expressed in parametric form as o + t d , where o denotes the ray origin, d is the direction vector, and t represents the propagation distance. Research by Wang et al. [23] introduces an efficient strategy to compute the ray–surface intersection parameter t using Newton’s method. During differentiable computation, the intermediate iterations of the Newton solver are neither explicitly stored nor backpropagated. Instead, only the final converged solution t * is retained, and its gradients with respect to the system parameters are computed directly. This approach is equivalent to applying implicit differentiation to the ray–surface intersection condition, thereby avoiding the unrolling of the iterative process. As a result, the memory consumption during backpropagation is significantly reduced, and the computational efficiency of differentiable ray tracing is substantially improved.
As illustrated in Figure 6, after multiple reflections within the freeform optical system, the chief ray of the i -th sampled field intersects the image plane at point P i , 0 , while the non-chief rays intersect the image plane at points P i , j . According to Snell’s law, the intersection position P i , j of each sampled ray on the image plane (expressed in the local coordinate system) is a highly nonlinear function of the independent variables θ of the optical system. These variables include the coefficients a of each freeform surface and the corresponding positional parameters φ . In practical optical systems, aberrations are generally unavoidable. As a result, the intersection points P i , j deviate from the corresponding chief-ray intersection point P i , 0 . Let Δ x i , j and Δ y i , j denote the differences between P i , j and P i , 0 along the x - and y -directions, respectively, in the local x y z coordinate system of the image plane. Consequently, Δ x i , j and Δ y i , j are also highly nonlinear functions of the system variables. These quantities are defined as follows:
Δ x i , j = f i , j ( θ ) Δ y i , j = g i , j ( θ )
In addition, the chief ray of each sampled field may not converge to its ideal image point T i . On the image plane, the deviation between the actual chief-ray intersection point and the ideal image point is commonly used to characterize image distortion. For an ideal, distortion-free optical system, the deviation between P i , 0 and T i should be zero. Similarly, the distortion associated with each field of view is also a nonlinear function of the independent variables θ . Accordingly, the distortion of the i -th sampled field is defined as:
d i s t i = h i ( θ )
In off-axis asymmetric optical systems, optical components may intersect or block the optical path, leading to undesired ray occlusions. Since a feasible optical system should avoid such occlusions, the concept of optical path obstruction is introduced to detect and eliminate unwanted overlaps along the optical path. As illustrated in Figure 6, two primary types of optical path obstruction can occur in the AR-HUD optical system. The first type occurs when the signed distance d1 from the feature point Q to the ray segment AB is negative, while the second type occurs when the signed distance d2 from the feature point C to the ray segment GB is negative. For the first case, the sign of the distance is determined by the relative orientation of the vectors A Q and A B , where the sign is defined according to the angle between these two vectors. The magnitude of the optical path obstruction is defined as:
d s = u s ( θ )
where s denotes the s -th type of optical path obstruction, and d s represents the corresponding obstruction magnitude, which is also a nonlinear function of the independent variables θ .
In practice, d s is constrained within a prescribed range to avoid optical path obstruction while maintaining a compact system layout. To ensure both differentiability of the overall optimization framework and effective elimination of optical path obstructions, a constraint term is introduced for the s -th obstruction, which is defined as:
z s = ReLU ( d min , s d s ) + ReLU ( d s d max , s )
where ReLU(x) = max (0, x) denotes the Rectified Linear Unit function, which applies a differentiable penalty only when d s violates its prescribed boundaries.
Subsequently, the AR-HUD optical system design can be formulated as a set of weighted nonlinear equations, in which all imaging errors and optical path obstruction constraints are expressed as differentiable functions of the optical system parameters θ . Specifically, all residual terms are concatenated to form a single residual vector, which can be written as:
r ( θ ) = w i × f i , j ( θ ) w i × g i , j ( θ ) κ i × r i ( θ ) v i × z s ( θ )
where w i , κ i , and v i are weighting coefficients used to balance the relative importance of different residual terms.
Therefore, the above problem can be formulated as a nonlinear least-squares optimization problem. By adjusting the optical system parameters θ , the objective is to minimize the combined residuals arising from imaging deviations of all sampled rays and the optical path obstruction constraints. The optimization loss function is defined as:
L ( θ ) = i = 1 n r i ( θ ) 2
The resulting optimization problem is a typical nonlinear least-squares problem, which can be solved using either the Gauss–Newton method or gradient descent. However, the Gauss–Newton method may become unstable in highly nonlinear regions, while gradient descent often suffers from slow convergence. The LM algorithm provides a compromise between these two approaches by combining convergence stability and computational efficiency, and is therefore adopted in this work. Since the entire ray-tracing process is differentiable, the complete optical ray tracing can be regarded as a forward propagation. With the automatic differentiation capability provided by the PyTorch framework, the Jacobian matrix can be obtained directly. The Jacobian matrix J is defined as:
J = r 1 θ 1 r 1 θ n r N θ 1 r N θ n
The iterative update rule of the LM algorithm is given by:
J T J + λ D Δ θ = J T r
where λ is the damping factor, which is adaptively adjusted during the optimization process to balance the search directions of gradient descent and the Gauss–Newton method. The matrix D = diag ( J T J ) is introduced to normalize the scaling differences of the residuals across different dimensions. The optical system parameters are then updated according to:
θ n + 1 = θ n + Δ θ n
The overall optimization process is performed in a progressive manner by gradually increasing the polynomial order of the freeform surfaces. The iterative optimization terminates once the maximum predefined order for each freeform surface is reached.

3. Design Example

To validate the feasibility of the proposed method, a dual-freeform AR-HUD optical system is designed as an illustrative example. The designed system features a FOV of 13° × 4° and a virtual image distance (VID) of 10 m. The detailed design specifications are summarized in Table 1. The PGU has a resolution of 1102 × 372 pixels, with a projected image size of 80 mm × 27 mm. The corresponding pixel size is 72.6 μm.
An initial optical system consisting of two tilted and decentered planes and a windshield surface is first constructed. The initial planar system is illustrated in Figure 7. A biased FOV of 2° in the vertical direction is adopted in the system. Although partial ray occlusions are present for edge rays in the initial planar configuration, these occlusions are gradually eliminated during the subsequent iterative optimization process.
The construction of the primary mirror is first performed using the NIC method. During the construction process, a fourth-order XY polynomial is employed in each iteration to fit all characteristic points. The AR-HUD optical system after completing the primary mirror construction is shown in Figure 8a. Figure 8b illustrates the iterative process of the primary mirror construction. It can be observed that the average RMS spot radius converges after only three iterations. The full FOV RMS spot radius distribution and the grid distortion of the system after the primary mirror construction are presented in Figure 8c,d, respectively. The average RMS spot radius is 332.07 μm, and the maximum distortion is 6.88%.
After the construction of the primary mirror is completed, the above procedure is repeated to construct the secondary mirror. To ensure that the secondary mirror remains convex, the surface factor ρ is set to 0.9. The AR-HUD optical system after completing the secondary mirror construction is shown in Figure 9a. Figure 9b illustrates the iterative process of the secondary mirror construction. After the secondary mirror is constructed, the full FOV RMS spot radius distribution and the grid distortion are shown in Figure 9c and Figure 9d, respectively. The average RMS spot radius is 300.46 μm, and the maximum distortion is reduced to 1.44%. Compared with the results obtained after the primary mirror construction, the grid distortion is significantly improved. This configuration therefore serves as a suitable initial structure for subsequent iterative optimization.
After completing the construction of the initial configuration, the entire AR-HUD optical system is further optimized. During the optimization process, the polynomial orders of both the primary and secondary freeform surfaces are gradually increased from fourth order to sixth order. At each polynomial order, 15 optimization iterations are performed. The corresponding optimization convergence curve is shown in Figure 10a. It can be observed that the loss function decreases rapidly when fourth-order polynomials are used, while the decrease becomes much slower and gradually converges when fifth- and sixth-order XY polynomials are employed. Therefore, the maximum polynomial order used in the iterative optimization is set to six. The optimized AR-HUD optical layout is shown in Figure 10b. Figure 10c,d present the final full FOV RMS spot radius distribution and the grid distortion, respectively. After optimization, the average RMS spot radius of the AR-HUD system is reduced from 300.46 μm to 99.81 μm, while the maximum distortion is decreased from 1.44% to 0.52%. Notably, the extremely low grid distortion indicates that the AR-HUD designed using the proposed method does not require a dedicated warping chip to perform complex pre-distortion processing. Consequently, the projected virtual image exhibits no noticeable distortion.
For AR-HUD optical systems with a large eye-box, multiple eye-pupil positions must be sampled for performance evaluation in order to better reflect practical usage conditions. As illustrated in Figure 11a, five eye pupils (E1–E5), each with a diameter of 5 mm, are sampled across the entire eye-box. The pupil center coordinates are located at (0 mm, 0 mm), (−62.5 mm, 22.5 mm), (−62.5 mm, −22.5 mm), (62.5 mm, 22.5 mm) and (62.5 mm, −22.5 mm). As shown in Figure 11b, for each sampled eye-pupil position, both the RMS spot radius and the geometric spot radius are smaller than the corresponding Airy disk radius, indicating diffraction-limited or near diffraction-limited performance. The MTF curves are shown in Figure 11c. For all sampled eye-pupil positions, the MTF values at the spatial frequency of 6 lp/mm remain above 0.5, demonstrating high imaging quality across the entire eye-box.
Following the evaluation of imaging performance, the dynamic distortion of the AR-HUD system is further investigated. During the optical design process, rays are traced from the virtual image plane toward the PGU plane. In actual operation, however, the image is generated on the PGU plane and then reflected sequentially by the secondary mirror, the primary mirror, and the windshield before entering the human eye to form a virtual image. To accurately evaluate the dynamic distortion under realistic operating conditions, the entire optical system is therefore reversed, with the PGU plane defined as the object plane and the virtual image plane defined as the image plane. Under this configuration, a fixed grid pattern is displayed on the PGU, and the resulting virtual images formed at different eye-pupil positions are analyzed. Dynamic distortion is defined as the difference between the virtual-image grid formed at the central eye position and those formed at off-axis eye positions, which can be expressed as follows:
D dyn = max i arctan Δ r i VID
where Δ r i denotes the distance between the i -th virtual image grid point at an edge eye position and the corresponding i -th grid point at the center eye position.
Figure 12 illustrates the dynamic distortion of the edge eye-pupil positions relative to the central eye position. It can be observed that the virtual image grid formed at the edge eye positions exhibits only minor deformation compared with that formed at the central eye position. The maximum dynamic distortion is limited to 5.39′. This result indicates that the proposed AR-HUD optical system maintains high image consistency across the entire eye-box, with no noticeable virtual-image shift during eye movements.
To further evaluate the practical manufacturability of the optimized AR-HUD optical system, a comprehensive tolerance analysis is conducted. The primary tolerance sources of the system are categorized into two types: surface figure tolerances and assembly tolerances. Specifically, the surface errors of the primary and secondary mirrors are simulated by applying random perturbations to their freeform polynomial coefficients. Taking into account the actual physical dimensions of the mirrors and current manufacturing capabilities, the added RMS surface errors are set to 15 μm and 5 μm, respectively. Furthermore, the assembly tolerances for each optical element are introduced by applying spatial pose perturbations to their local-to-global coordinate transformation matrices. The specific allocation ranges of the assembly tolerances for each element are detailed in Table 2.
A total of 1000 Monte Carlo tolerance simulations were performed using uniform random sampling, and the statistical results are presented in Figure 13. Under the given tolerance perturbations, the maximum RMS spot radius across all sampled eye-box positions is strictly less than 46.81 μm at a 90% cumulative probability. Furthermore, the dynamic distortion at the edge eye positions remains below 7.07′. These values fully satisfy the practical application requirements of automotive AR-HUD systems.

4. Experimental Results and Discussion

To validate the AR-HUD optical system designed using the proposed method, both the primary and secondary mirrors were fabricated using a five-axis single-point diamond turning (SPDT) process. The dimensions of the primary mirror are 347.6 mm × 115.0 mm, while those of the secondary mirror are 152.5 mm × 58.0 mm. After fabrication, surface profile measurements were conducted on the manufactured mirrors using an FF2000 three-dimensional surface profiler developed by Suzhou Raphael Optoelectronics Technology Co., Ltd. (Suzhou, China) [31]. This instrument is specifically designed for the measurement of optical freeform surfaces and provides a measurement accuracy of ±3 μm. The measured surface errors of the fabricated mirrors are shown in Figure 14. For the primary mirror, the peak-to-valley (PV) and RMS surface errors are 32.3 μm and 9.2 μm, respectively. For the secondary mirror, the corresponding PV and RMS surface errors are 10.67 μm and 2.39 μm, respectively.
The complete experimental prototype is shown in Figure 15. A full-scale automotive windshield is used in the experiment and is mounted on an optical table via a custom-designed support structure. The primary mirror, the secondary mirror, and the PGU are fixed on the same optical platform and aligned with the windshield. A camera is positioned at the center of the designed eye-box to simulate the virtual image observed by the human eye.
To experimentally assess the imaging quality of the proposed AR-HUD system, a series of preliminary tests were performed. Initially, a uniform dot-matrix pattern was projected onto the PGU, as depicted in Figure 16a. Figure 16b shows the corresponding image captured by a camera positioned at the center of the eye-box. By extracting the centroid coordinates of the dot matrix, the maximum distortion at the central eye box was determined to be 1.46%. Furthermore, a resolution test pattern was introduced on the PGU. As illustrated in Figure 16c, horizontal and vertical fringes with a spatial frequency of 6 lp/mm were evaluated across nine sampled field positions. The resulting virtual image, captured at the eye-box center, is presented in Figure 16d. Quantitative analysis based on the extracted intensity distribution curves reveals that the fringe contrasts for the central and marginal fields of view are 0.53 and 0.39, respectively, at 6 lp/mm. In summary, the optical module demonstrates satisfactory virtual image performance at the central eye position, which is generally consistent with the simulation results.
To further assess the virtual image quality within the eye-box during eye movements, dot-matrix patterns at the peripheral eye positions were recorded, and the corresponding dynamic distortions were quantified, with specific values presented in Table 3. Notably, the dynamic distortions at positions E4 and E5 are relatively pronounced, marginally surpassing the anticipated tolerance simulation results. This deviation can be largely ascribed to the conventional manufacturing process of the windshield, which lacks precision machining. As a result, it inherently exhibits more substantial surface figure errors than the primary and secondary mirrors, which adversely impacts the final imaging quality at the peripheral viewing positions. Moving forward, the surface measurement and quality control of the windshield’s clear aperture will be a critical focus. Accurately characterizing these complex surface figure errors through high-precision metrology and incorporating the measured data back into the optical design model for reverse compensation will be essential for further optimizing the system’s performance. Nevertheless, to evaluate the system’s practical display capabilities, a practical user interface image was loaded onto the PGU. A camera simulating the human eye was employed to capture the corresponding virtual images across the five pupil positions (E1–E5). As depicted in Figure 17, despite the aforementioned numerical distortions at the peripheral boundaries, the captured virtual images remain visually clear and highly recognizable at both the central and peripheral eye positions. This indicates that the proposed optical module can already provide a satisfactory visual experience for practical AR-HUD applications.

5. Conclusions

In this study, an automated design method for automotive AR-HUD optical systems is proposed and experimentally validated. The proposed method combines NIC-based initial structure generation with optimization driven by differentiable ray tracing. Using the proposed design framework, high-performance AR-HUD optical systems can be rapidly generated under given optical layouts and design constraints. To validate the method, an AR-HUD optical system with two freeform surfaces was designed and evaluated. The results demonstrate that the designed AR-HUD system maintains high imaging quality with low dynamic distortion throughout the eye-box. Furthermore, a full-scale AR-HUD experimental prototype was established, and functional tests were conducted. The experimental results show reasonable agreement with the design and simulation analyses, suggesting the engineering feasibility of the proposed method. Overall, the proposed automated design approach provides an effective solution for the development of high-performance AR-HUD optical systems and can be extended to other freeform optical systems.

Author Contributions

Conceptualization, C.F. and J.Z.; methodology, C.F., X.W. (Xinjun Wan) and Y.N.; software, C.F. and X.W. (Xiaoxiao Wei); validation, C.F., X.W. (Xinjun Wan) and X.W. (Xiaoxiao Wei); formal analysis, C.F.; investigation, C.F.; resources, J.Z.; data curation, C.F.; writing—original draft preparation, C.F.; writing—review and editing, C.F., J.Z., X.W. (Xinjun Wan) and Y.N.; visualization, C.F.; supervision, J.Z. and Y.N.; project administration, J.Z.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

National Key R&D Plan of China (2021YFF0700400).

Data Availability Statement

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

Conflicts of Interest

The authors declare no competing interests. The author Xinjun Wan was employed by the company Suzhou Raphael Optech Co., Ltd. There is no conflict of interest between any of the authors and the company Suzhou Raphael Optech Co., Ltd.

References

  1. Liu, Y.-C.; Wen, M.-H. Comparison of head-up display (HUD) vs. head-down display (HDD): Driving performance of commercial vehicle operators in Taiwan. Int. J. Hum.-Comput. Stud. 2004, 61, 679–697. [Google Scholar] [CrossRef]
  2. Pauzie, A. (Ed.) Head up display in automotive: A new reality for the driver. In Proceedings of the International Conference of Design, User Experience, and Usability; Springer: Berlin/Heidelberg, Germany, 2015. [Google Scholar]
  3. Qin, Z.; Lin, F.-C.; Huang, Y.-P.; Shieh, H.-P.D. Maximal acceptable ghost images for designing a legible windshield-type vehicle head-up display. IEEE Photonics J. 2017, 9, 7000812. [Google Scholar] [CrossRef]
  4. Smith, S.; Fu, S.-H. The relationships between automobile head-up display presentation images and drivers’ Kansei. Displays 2011, 32, 58–68. [Google Scholar] [CrossRef]
  5. Zhou, C.; Qiao, W.; Hua, J.; Chen, L. Automotive augmented reality head-up displays. Micromachines 2024, 15, 442. [Google Scholar] [CrossRef]
  6. Gabbard, J.L.; Fitch, G.M.; Kim, H. Behind the glass: Driver challenges and opportunities for AR automotive applications. Proc. IEEE 2014, 102, 124–136. [Google Scholar] [CrossRef]
  7. Bauer, A.; Schiesser, E.M.; Rolland, J.P. Starting geometry creation and design method for freeform optics. Nat. Commun. 2018, 9, 1756. [Google Scholar] [CrossRef] [PubMed]
  8. Bauer, A.; Takaki, N.; Rolland, J.P. Design methods for imaging with freeform optics. Optica 2025, 12, 1775–1793. [Google Scholar] [CrossRef]
  9. Thompson, K.P.; Rolland, J.P. Freeform optical surfaces: A revolution in imaging optical design. Opt. Photonics News 2012, 23, 30–35. [Google Scholar] [CrossRef]
  10. Nie, Y.; Thienpont, H.; Duerr, F. Multi-fields direct design approach in 3D: Calculating a two-surface freeform lens with an entrance pupil for line imaging systems. Opt. Express 2015, 23, 34042–34054. [Google Scholar] [CrossRef]
  11. Mendes-Lopes, J.; Benítez, P.; Miñano, J.C.; Santamaría, A. Simultaneous multiple surface design method for diffractive surfaces. Opt. Express 2016, 24, 5584–5590. [Google Scholar] [CrossRef]
  12. Hicks, R.A. Controlling a ray bundle with a free-form reflector. Opt. Lett. 2008, 33, 1672–1674. [Google Scholar] [CrossRef]
  13. Hicks, R.A.; Croke, C. Designing coupled free-form surfaces. J. Opt. Soc. Am. A 2010, 27, 2132–2137. [Google Scholar] [CrossRef]
  14. Cheng, D.; Wang, Y.; Hua, H. (Eds.) Free form optical system design with differential equations. In Optical Design and Testing IV; SPIE: Bellingham, WA, USA, 2010. [Google Scholar]
  15. Yang, T.; Jin, G.-F.; Zhu, J. Automated design of freeform imaging systems. Light Sci. Appl. 2017, 6, e17081. [Google Scholar] [CrossRef]
  16. Yang, T.; Zhu, J.; Hou, W.; Jin, G. Design method of freeform off-axis reflective imaging systems with a direct construction process. Opt. Express 2014, 22, 9193–9205. [Google Scholar] [CrossRef]
  17. Yang, T.; Zhu, J.; Wu, X.; Jin, G. Direct design of freeform surfaces and freeform imaging systems with a point-by-point three-dimensional construction-iteration method. Opt. Express 2015, 23, 10233–10246. [Google Scholar] [CrossRef]
  18. Fan, R.; Wei, S.; Ji, H.; Qian, Z.; Tan, H.; Mo, Y.; Ma, D. Automated design of freeform imaging systems for automotive heads-up display applications. Opt. Express 2023, 31, 10758–10774. [Google Scholar] [CrossRef]
  19. Zhao, S.; Xu, H.; Cheng, D.; Cheng, Y.; Wang, Y.; Yang, T. Design of high-performance complex imaging systems enabled by automatic successive optimization. Opt. Express 2025, 33, 33920–33940. [Google Scholar] [CrossRef]
  20. Yu, F.; Xu, N.; Chen, S.; Feng, H.; Xu, Z.; Li, Q.; Jiang, T.; Chen, Y. Direct distortion prediction method for AR-HUD dynamic distortion correction. Appl. Opt. 2023, 62, 5720–5726. [Google Scholar] [CrossRef]
  21. Xu, N.; Yu, F.; Xu, J.; Jin, D.; Feng, H.; Xu, Z.; Li, Q.; Chen, Y. HUDNet: A dynamic calibration method for automotive augmented reality head-up-displays. Displays 2023, 78, 102453. [Google Scholar] [CrossRef]
  22. Nie, Y.; Zhang, J.; Su, R.; Ottevaere, H. Freeform optical system design with differentiable three-dimensional ray tracing and unsupervised learning. Opt. Express 2023, 31, 7450–7465. [Google Scholar] [CrossRef]
  23. Wang, C.; Chen, N.; Heidrich, W. dO: A differentiable engine for deep lens design of computational imaging systems. IEEE Trans. Comput. Imaging 2022, 8, 905–916. [Google Scholar] [CrossRef]
  24. Li, M.; Liao, Q.; Feng, Z. Differentiable design of continuous phase plates using multi-level B-splines with smoothness constraints. Appl. Opt. 2025, 64, 6398–6404. [Google Scholar] [CrossRef] [PubMed]
  25. Li, Z.; Hou, Q.; Wang, Z.; Tan, F.; Liu, J.; Zhang, W. End-to-end learned single lens design using fast differentiable ray tracing. Opt. Lett. 2021, 46, 5453–5456. [Google Scholar] [CrossRef]
  26. Sun, Q.; Wang, C.; Qiang, F.; Xiong, D.; Wolfgang, H. End-to-end complex lens design with differentiable ray tracing. ACM Trans. Graph. 2021, 40, 71. [Google Scholar]
  27. Wang, H.; Luo, Y.; Li, H.; Zang, Z.; Xu, Y.; Han, Y.; Sun, C.; Hao, Z.; Wang, L.; Xiong, B.; et al. Extended ray-mapping method based on differentiable ray-tracing for non-paraxial and off-axis freeform illumination lens design. Opt. Express 2023, 31, 30066–30078. [Google Scholar] [CrossRef]
  28. Huang, L.; Idir, M.; Zuo, C.; Asundi, A. Review of phase measuring deflectometry. Opt. Lasers Eng. 2018, 107, 247–257. [Google Scholar] [CrossRef]
  29. Paszke, A.; Gross, S.; Chintala, S.; Chanan, G.; Yang, E.; DeVito, Z.; Lin, Z.; Desmaison, A.; Antiga, L.; Lerer, A. Automatic differentiation in pytorch. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  30. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. Pytorch: An imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 2019, 32, 8026–8037. [Google Scholar]
  31. Available online: https://www.raphaeloptech.com/ (accessed on 29 August 2025).
Figure 1. Flowchart of the automated design for the AR-HUD optical system.
Figure 1. Flowchart of the automated design for the AR-HUD optical system.
Photonics 13 00337 g001
Figure 2. Construction of freeform surfaces using the proposed NIC method.
Figure 2. Construction of freeform surfaces using the proposed NIC method.
Photonics 13 00337 g002
Figure 3. Characteristic ray sampling of the AR-HUD optical system. (a) FOV sampling. (b) Pupil sampling.
Figure 3. Characteristic ray sampling of the AR-HUD optical system. (a) FOV sampling. (b) Pupil sampling.
Photonics 13 00337 g003
Figure 4. Construction of the freeform secondary mirror.
Figure 4. Construction of the freeform secondary mirror.
Photonics 13 00337 g004
Figure 5. Pipeline of differentiable ray tracing and optimization for AR-HUD.
Figure 5. Pipeline of differentiable ray tracing and optimization for AR-HUD.
Photonics 13 00337 g005
Figure 6. Obscuration effect and transverse aberrations in the AR-HUD optical system.
Figure 6. Obscuration effect and transverse aberrations in the AR-HUD optical system.
Photonics 13 00337 g006
Figure 7. The initial AR-HUD design based on planar surfaces.
Figure 7. The initial AR-HUD design based on planar surfaces.
Photonics 13 00337 g007
Figure 8. (a) AR-HUD layout after primary mirror construction. (b) Iterative process of primary mirror construction. (c) RMS spot radius distribution over the full FOV. (d) Grid distortion map.
Figure 8. (a) AR-HUD layout after primary mirror construction. (b) Iterative process of primary mirror construction. (c) RMS spot radius distribution over the full FOV. (d) Grid distortion map.
Photonics 13 00337 g008
Figure 9. (a) AR-HUD layout after secondary mirror construction. (b) Iterative process of secondary mirror construction. (c) RMS spot radius distribution over the full field of view. (d) Grid distortion map.
Figure 9. (a) AR-HUD layout after secondary mirror construction. (b) Iterative process of secondary mirror construction. (c) RMS spot radius distribution over the full field of view. (d) Grid distortion map.
Photonics 13 00337 g009
Figure 10. (a) Optimization iteration curve of the AR-HUD optical system. (b) AR-HUD layout after iterative optimization. (c) RMS spot radius distribution over the full FOV. (d) Grid distortion map.
Figure 10. (a) Optimization iteration curve of the AR-HUD optical system. (b) AR-HUD layout after iterative optimization. (c) RMS spot radius distribution over the full FOV. (d) Grid distortion map.
Photonics 13 00337 g010
Figure 11. (a) Five sampled analysis eye pupils within the eye-box. (b) Spot sizes at different analysis eye positions. (c) MTF curves at different eye-pupil positions.
Figure 11. (a) Five sampled analysis eye pupils within the eye-box. (b) Spot sizes at different analysis eye positions. (c) MTF curves at different eye-pupil positions.
Photonics 13 00337 g011
Figure 12. Dynamic distortion analysis results of the AR-HUD system.
Figure 12. Dynamic distortion analysis results of the AR-HUD system.
Photonics 13 00337 g012
Figure 13. Tolerance analysis results at different sampled eye positions. (a) Max RMS spot radius. (b) Dynamic distortion.
Figure 13. Tolerance analysis results at different sampled eye positions. (a) Max RMS spot radius. (b) Dynamic distortion.
Photonics 13 00337 g013
Figure 14. (a,b) Primary and secondary mirrors fabricated using SPDT. (c,d) Surface error maps of the fabricated primary mirror and secondary mirror.
Figure 14. (a,b) Primary and secondary mirrors fabricated using SPDT. (c,d) Surface error maps of the fabricated primary mirror and secondary mirror.
Photonics 13 00337 g014
Figure 15. Experimental prototype of the designed AR-HUD optical system.
Figure 15. Experimental prototype of the designed AR-HUD optical system.
Photonics 13 00337 g015
Figure 16. Experimental testing results of the AR-HUD prototype. (a) Input uniform dot-pattern image displayed on the PGU. (b) Virtual image captured by the camera at the center of the eye-box, demonstrating low distortion. (c) Resolution test pattern containing horizontal and vertical bars with a spatial frequency of 6 lp/mm at nine sampled field positions. (d) Captured virtual image of the resolution pattern. The zoomed-in views and corresponding intensity profiles (top) verify that the patterns are clearly resolved at both the center (yellow) and edge (red) of the FOV.
Figure 16. Experimental testing results of the AR-HUD prototype. (a) Input uniform dot-pattern image displayed on the PGU. (b) Virtual image captured by the camera at the center of the eye-box, demonstrating low distortion. (c) Resolution test pattern containing horizontal and vertical bars with a spatial frequency of 6 lp/mm at nine sampled field positions. (d) Captured virtual image of the resolution pattern. The zoomed-in views and corresponding intensity profiles (top) verify that the patterns are clearly resolved at both the center (yellow) and edge (red) of the FOV.
Photonics 13 00337 g016
Figure 17. Virtual images and external real-world scenes captured at five eye-pupil positions of the AR-HUD prototype.
Figure 17. Virtual images and external real-world scenes captured at five eye-pupil positions of the AR-HUD prototype.
Photonics 13 00337 g017
Table 1. Specifications of the AR-HUD system.
Table 1. Specifications of the AR-HUD system.
ParameterSpecification
Field of view13° × 4°
Virtual image distance10 m
WavelengthVisible (400 nm~780 nm)
Eye-box size130 mm × 50 mm
PGU size80 mm × 27 mm
Table 2. Allocation of assembly tolerances for the optical elements.
Table 2. Allocation of assembly tolerances for the optical elements.
Optical ElementTiltDecenterThickness
Windshield0.3°5 mm3 mm
Primary mirror0.1°1 mm1 mm
Secondary mirror0.1°1 mm1 mm
PGU0.1°1 mm1 mm
Table 3. Measured dynamic distortion at different eye-box positions.
Table 3. Measured dynamic distortion at different eye-box positions.
Eye PositionE2E3E4E5
Dynamic distortion5.05′6.31′9.08′12.49′
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Fan, C.; Zheng, J.; Wan, X.; Wei, X.; Nie, Y. Differentiable Automated Design of Automotive Freeform AR-HUD Optical Systems. Photonics 2026, 13, 337. https://doi.org/10.3390/photonics13040337

AMA Style

Fan C, Zheng J, Wan X, Wei X, Nie Y. Differentiable Automated Design of Automotive Freeform AR-HUD Optical Systems. Photonics. 2026; 13(4):337. https://doi.org/10.3390/photonics13040337

Chicago/Turabian Style

Fan, Chengxiang, Jihong Zheng, Xinjun Wan, Xiaoxiao Wei, and Yunfeng Nie. 2026. "Differentiable Automated Design of Automotive Freeform AR-HUD Optical Systems" Photonics 13, no. 4: 337. https://doi.org/10.3390/photonics13040337

APA Style

Fan, C., Zheng, J., Wan, X., Wei, X., & Nie, Y. (2026). Differentiable Automated Design of Automotive Freeform AR-HUD Optical Systems. Photonics, 13(4), 337. https://doi.org/10.3390/photonics13040337

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop