Optiland and RayCrafter vs Zemax

SMOD4.5: Optiland and RayCrafter against Zemax

A galvo scan system (a 4.5 mm beam, a 54 mm scan lens, a 250 mm tube lens, a 45° fold mirror and an ideal 12.5 mm objective) compared with our own Zemax run at three wavelengths, and below with the plots exported with the design. Optiland and RayCrafter trace every ray as Zemax does, to 1e-13 mm. Through the ideal objective Optiland's wavefront is wrong off axis (12 waves where Zemax has 0.16), and after the fold its pupils and distortion are wrong or missing. RayCrafter corrects the wavefront and comes within 0.02 waves of Zemax (0.01 before it took up the file's Gaussian pupil apodization, raycrafter #140, which moves its RMS wavefront away from Zemax's here); its single-wavelength MTF does not work here. Zemax's own RMS spot operand disagrees with Zemax's own rays here, by up to 46%, so it is not used.

Zemax disagrees with itself here, so "matching Zemax" is not well defined

Zemax's own two methods (FFT and Huygens) disagree with each other by more than our fail limit. The rows below keep their verdicts, each against one Zemax number. Where RayCrafter lies inside the band between Zemax's two numbers it is no further from either than they are from each other; where it lies outside, it is further from both than Zemax's own methods are from each other. Each row's note and Zemax against itself give both Zemax numbers, their difference and RayCrafter's value.

  • MTF. Zemax's FFT MTF and its Huygens MTF differ by up to 0.124 (at 10 deg), 6.2 times our fail limit of 0.02. Taking every frequency, RayCrafter's MTF is beside the band (outside it by up to the fail limit of 0.02) at 0 deg, 5 deg; outside the band (by more than 0.02) at 6.5 deg, 7 deg, 10 deg, the band being the range between Zemax's two curves. Plots with both Zemax curves, the band and RayCrafter's: 10 deg.
  • Strehl ratio. Zemax's Huygens PSF and the Strehl ratio of its own Wavefront Map differ by up to 0.0201 (1.01 times the fail limit of 0.02). RayCrafter's Strehl ratio is beside the band (outside it by up to the fail limit of 0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg; outside the band (by more than 0.02) at 10 deg. Plot of every Zemax number.
  • RMS wavefront. Zemax gives one number per field, so there is no Zemax spread to show for it.
optiland 0.6.3 λ 0.85 (primary), 0.94, 1.10 µm scan 0–10° (Zemax fields 0, 5, 6.5, 7, 10°) Zemax run 2026-12-04 13:29
Not working on this page

Every failing row of the tables below, against our own Zemax run.

What we know about them
  • RayCrafter: RMS wavefront against field, Strehl ratio and one-wavelength MTF off axis. The RMS wavefront differs from Zemax's by up to 0.01854 waves (every wavelength); the Strehl ratio by up to 0.0761 at 10 deg (0.0425 with every ray at the same amplitude, as in Zemax's Huygens PSF); the MTF by up to 0.120 from Zemax's Huygens MTF at 10 deg. Cause: In part known. RMS wavefront: RayCrafter weights it by the file's Gaussian apodization and Zemax does not (raycrafter #244, which names this row); the rest grows with field angle, as on fold_SMOD45 (raycrafter #199). Strehl ratio and MTF: the ideal objective follows the tangent law, so the density of rays in direction cosine varies across the pupil, and RayCrafter's energy-conserving weighting of the pupil, Zemax's Huygens weighting (every ray alike) and its FFT weighting (even) all differ (raycrafter #236, evaluation #86); what is left at 10 deg is open in raycrafter #199.

System layout

Works

The import kept all 21 surfaces: the coordinate breaks, the 45° mirror, the PBS cube and the paraxial objective. Thicknesses, radii, glasses, fields and wavelengths match the Zemax file.

2D layout of the scan system in the YZ plane showing the scan lens, PBS cube, tube lens, fold mirror and objective, with rays for five scan angles
optiland's 2D layout (YZ plane), five scan angles at 0.85 µm. The beam goes up at the fold mirror at z ≈ 493 mm, into the objective and to focus at y ≈ 168 mm.

Optiland against Zemax

Optiland 0.6.3, as released, with the file preparation and patches listed under "Optiland issues found". Nothing here uses RayCrafter. Each row is the largest difference from our own Zemax run (OpticStudio 24.1.3) over every galvo angle or field of every system below.

9matching
0partial
11failing

Not matching: partial and fail rows.

QuantityLargest difference from ZemaxMatch / partial withinResult
Focal length, f-number, exit pupilSizes; Optiland's signs may differ after a mirror91.08 %0.0001 / 0.1 %Fail
OPD of every ray129.5 waves0.001 / 0.01 wavesFail
Zernike coefficients (37 standard)39.56 waves0.001 / 0.01 wavesFail
RMS wavefront against field, from Optiland's OPDPiston and tilt removed, as Zemax does, every wavelength12.2 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
RMS wavefront against field, RmsWavefrontErrorVsField as it comesA different meaning: piston and tilt are kept46.14 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
Strehl ratio, FFTPSF, glass absorption divided outAgainst Zemax's Huygens PSF, which prints three decimals and is itself a little above what Zemax's own wavefront gives0.9410.005 / 0.02Fail
Strehl ratio, FFTPSF as it comesA different meaning: light absorbed by the glass counts as lost0.9410.005 / 0.02Fail
MTF, tangential and sagittal, every field0.97820.005 / 0.02Fail
Distortion, f-tan and f-thetaOptiland gives no number (issue 2)none percentage points0.005 / 0.05 percentage pointsFail
Grid distortion, largestValueError: zero-size array to reduction operation maximum which has no identity (issue 2)failsFail
Seidel coefficients, sizesZemax prints six decimals. Optiland's signs may be opposite0.001395 mm1e−06 / 1e−05 mmFail
All 20 rows, matches included
QuantityLargest difference from ZemaxMatch / partial withinResult
Refractive index of each glassN-SF6HT, N-LAK22, N-BK7, N-SF1, N-SF5, N-SK22.22e−161e−06 / 0.0001Match
Position of every surface2.34e−13 mm1e−09 / 1e−06 mmMatch
Rays at the image, ray by rayThe rays Zemax traced, every galvo angle or field, every wavelength6.22e−14 mm1e−06 / 0.001 mmMatch
Ray directions at the imageDirection cosines. Zemax's are reversed after an odd number of mirrors9.35e−151e−09 / 1e−06Match
Largest ray radius on every surface5.51e−14 mm1e−06 / 0.001 mmMatch
RMS spot of the same raysThe rays that get through, every one counted alike0 %0.1 / 2 %Match
Focal length, f-number, exit pupilSizes; Optiland's signs may differ after a mirror91.08 %0.0001 / 0.1 %Fail
OPD of every ray129.5 waves0.001 / 0.01 wavesFail
Zernike coefficients (37 standard)39.56 waves0.001 / 0.01 wavesFail
RMS spot of every field, against Zemax's own raysZemax's RMS operand differs from Zemax's own rays by up to 46% here, so it is not used0 %0.1 / 2 %Match
RMS wavefront against field, from Optiland's OPDPiston and tilt removed, as Zemax does, every wavelength12.2 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
RMS wavefront against field, RmsWavefrontErrorVsField as it comesA different meaning: piston and tilt are kept46.14 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
Strehl ratio, FFTPSF, glass absorption divided outAgainst Zemax's Huygens PSF, which prints three decimals and is itself a little above what Zemax's own wavefront gives0.9410.005 / 0.02Fail
Strehl ratio, FFTPSF as it comesA different meaning: light absorbed by the glass counts as lost0.9410.005 / 0.02Fail
MTF, tangential and sagittal, every field0.97820.005 / 0.02Fail
Distortion, f-tan and f-thetaOptiland gives no number (issue 2)none percentage points0.005 / 0.05 percentage pointsFail
Grid distortion, largestValueError: zero-size array to reduction operation maximum which has no identity (issue 2)failsFail
Field curvature, FieldCurvature as it comesAt the edge of the field0.001874 mm0.01 / 0.1 mmMatch
Field curvature, from Optiland's raysNear-axis rays of each beam, in the image surface's own axes1.71e−06 mm0.01 / 0.1 mmMatch
Seidel coefficients, sizesZemax prints six decimals. Optiland's signs may be opposite0.001395 mm1e−06 / 1e−05 mmFail

RayCrafter against Zemax

This is RayCrafter's development branch

Tested at commit 5ecb2efd of dev, not the release on PyPI.

The rows below are on a system with a flat image.

8matching
0partial
3failing

Not matching: partial and fail rows.

QuantityLargest difference from ZemaxMatch / partial withinResult
RMS wavefront against fieldEvery wavelength. Zemax gives one RMS wavefront number per field (its RMS Wavefront operand), so there is no Zemax spread to show for this row: it compares that one number with RayCrafter's0.01854 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
Strehl ratio, every fieldRayCrafter's Strehl ratio on the pixel grid of Zemax's Huygens PSF, as Zemax reads its own (its largest pixel); Zemax's prints three decimals. RayCrafter's PSF weights each ray by sqrt(J), J being how far its part of the pupil spreads over direction cosine, so that energy is conserved (raycrafter #236); Zemax's Huygens PSF gives every ray the same amplitude. With every ray at the same amplitude RayCrafter's Strehl ratio is 0.8461 at 6.5 deg (0.0031 from Zemax's 0.843, against 0.0117 as it is); 0.7995 at 7 deg (0.0065 from Zemax's 0.793, against 0.0179 as it is); 0.3705 at 10 deg (0.0425 from Zemax's 0.328, against 0.0761 as it is). The row scores RayCrafter as it is. Zemax's own Strehl numbers differ by more than the fail limit (0.02) at 10 deg. 0 deg: Zemax Huygens PSF 0.997, Zemax Wavefront Map 0.997 (they differ by 0.0002, within the fail limit of 0.02), RayCrafter 0.997: beside the band: 0.000 outside it, which is within the fail limit of 0.02; 5 deg: Zemax Huygens PSF 0.943, Zemax Wavefront Map 0.933 (they differ by 0.0095, within the fail limit of 0.02), RayCrafter 0.947: beside the band: 0.004 outside it, which is within the fail limit of 0.02; 6.5 deg: Zemax Huygens PSF 0.843, Zemax Wavefront Map 0.837 (they differ by 0.0058, within the fail limit of 0.02), RayCrafter 0.855: beside the band: 0.012 outside it, which is within the fail limit of 0.02; 7 deg: Zemax Huygens PSF 0.793, Zemax Wavefront Map 0.785 (they differ by 0.0085, within the fail limit of 0.02), RayCrafter 0.811: beside the band: 0.018 outside it, which is within the fail limit of 0.02; 10 deg: Zemax Huygens PSF 0.328, Zemax Wavefront Map 0.308 (they differ by 0.0201, more than the fail limit of 0.02), RayCrafter 0.404: outside the band by 0.076, more than the fail limit of 0.020.076130.005 / 0.02Fail
MTF plot (one wavelength)Against Zemax's Huygens MTF, not its FFT MTF, at 6.5 deg, 7 deg, 10 deg: the FFT MTF takes the pupil index as linear in the direction cosine, and Zemax's own rays at the image depart from that by 0.071, 0.073, 0.090 (more than 0.005; a plane fit of L and M on px, py, over half their range), while the Huygens MTF follows the rays' own directions. It is not exact either: it gives every ray of its pupil grid the same amplitude, so where the density of rays in direction cosine varies across the pupil it weights the pupil by that density, where conservation of energy gives its square root (evaluation #86, https://github.com/raycrafter-optical-design/evaluation/issues/86). The difference from the Huygens MTF there is 0.060, 0.065, 0.120; from the FFT MTF, which is not scored there, 0.039, 0.040, 0.085. Zemax's own FFT and Huygens MTFs differ from each other by 0.092, 0.094, 0.124 at 6.5 deg, 7 deg, 10 deg (largest of the two azimuths). Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band0.12020.005 / 0.02Fail
All 11 rows, matches included
QuantityLargest difference from ZemaxMatch / partial withinResult
Focal length and f-number5.55e−14 %0.0001 / 0.1 %Match
Chief ray at the image, every fieldFields where both programs block the chief ray are left out3.5e−15 mm1e−06 / 0.001 mmMatch
Ray fan (tangential), every fieldFields where no ray gets through are left out7.05e−15 mm1e−06 / 0.001 mmMatch
Ray fan: pupil points with a ray in one program only, every fieldLight that one program lets through and the other stops: vignetting that differs. Zemax draws a tangential fan point only if the ray one step lower in the pupil also gets through, so its window really starts one to two steps below its first point and ends up to one step above its last; a point where the edge may be is undecided and not counted (raycrafter #258); the sagittal fan is not compared (no vignetted sagittal reference to show Zemax does the same)0 %0 / 1 %Match
RMS wavefront against fieldEvery wavelength. Zemax gives one RMS wavefront number per field (its RMS Wavefront operand), so there is no Zemax spread to show for this row: it compares that one number with RayCrafter's0.01854 waves0.001 / 0.01 waves, or 1 % of Zemax's if larger, to failFail
Strehl ratio, every fieldRayCrafter's Strehl ratio on the pixel grid of Zemax's Huygens PSF, as Zemax reads its own (its largest pixel); Zemax's prints three decimals. RayCrafter's PSF weights each ray by sqrt(J), J being how far its part of the pupil spreads over direction cosine, so that energy is conserved (raycrafter #236); Zemax's Huygens PSF gives every ray the same amplitude. With every ray at the same amplitude RayCrafter's Strehl ratio is 0.8461 at 6.5 deg (0.0031 from Zemax's 0.843, against 0.0117 as it is); 0.7995 at 7 deg (0.0065 from Zemax's 0.793, against 0.0179 as it is); 0.3705 at 10 deg (0.0425 from Zemax's 0.328, against 0.0761 as it is). The row scores RayCrafter as it is. Zemax's own Strehl numbers differ by more than the fail limit (0.02) at 10 deg. 0 deg: Zemax Huygens PSF 0.997, Zemax Wavefront Map 0.997 (they differ by 0.0002, within the fail limit of 0.02), RayCrafter 0.997: beside the band: 0.000 outside it, which is within the fail limit of 0.02; 5 deg: Zemax Huygens PSF 0.943, Zemax Wavefront Map 0.933 (they differ by 0.0095, within the fail limit of 0.02), RayCrafter 0.947: beside the band: 0.004 outside it, which is within the fail limit of 0.02; 6.5 deg: Zemax Huygens PSF 0.843, Zemax Wavefront Map 0.837 (they differ by 0.0058, within the fail limit of 0.02), RayCrafter 0.855: beside the band: 0.012 outside it, which is within the fail limit of 0.02; 7 deg: Zemax Huygens PSF 0.793, Zemax Wavefront Map 0.785 (they differ by 0.0085, within the fail limit of 0.02), RayCrafter 0.811: beside the band: 0.018 outside it, which is within the fail limit of 0.02; 10 deg: Zemax Huygens PSF 0.328, Zemax Wavefront Map 0.308 (they differ by 0.0201, more than the fail limit of 0.02), RayCrafter 0.404: outside the band by 0.076, more than the fail limit of 0.020.076130.005 / 0.02Fail
MTF plot (one wavelength)Against Zemax's Huygens MTF, not its FFT MTF, at 6.5 deg, 7 deg, 10 deg: the FFT MTF takes the pupil index as linear in the direction cosine, and Zemax's own rays at the image depart from that by 0.071, 0.073, 0.090 (more than 0.005; a plane fit of L and M on px, py, over half their range), while the Huygens MTF follows the rays' own directions. It is not exact either: it gives every ray of its pupil grid the same amplitude, so where the density of rays in direction cosine varies across the pupil it weights the pupil by that density, where conservation of energy gives its square root (evaluation #86, https://github.com/raycrafter-optical-design/evaluation/issues/86). The difference from the Huygens MTF there is 0.060, 0.065, 0.120; from the FFT MTF, which is not scored there, 0.039, 0.040, 0.085. Zemax's own FFT and Huygens MTFs differ from each other by 0.092, 0.094, 0.124 at 6.5 deg, 7 deg, 10 deg (largest of the two azimuths). Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band0.12020.005 / 0.02Fail
Distortion, f-tan and f-theta1.96e−08 percentage points0.005 / 0.05 percentage pointsMatch
Grid distortion, largest4.9e−07 percentage points0.005 / 0.05 percentage pointsMatch
Field curvatureRayCrafter takes the best focus of a whole fan, Zemax that of rays near the chief ray. Signs are opposite by convention1.71e−06 mm0.01 / 0.1 mmMatch
Field curvature, change from the axis1.71e−06 mm0.01 / 0.1 mmMatch
Not compared

MTF plot (one wavelength), fields where Zemax's two MTF methods weight the pupil differently: Not scored at 0 deg, 5 deg: Zemax's FFT and Huygens MTFs weight the pupil differently, so neither is a reference. The FFT MTF takes the pupil as evenly bright in direction cosine (a weight J^0, J being the area of direction-cosine space that a unit of the pupil goes to), the Huygens MTF gives every ray the same amplitude (J^-1), and conservation of energy gives J^-1/2, which RayCrafter now follows (raycrafter #236); a correct RayCrafter lies between the two. The rule: the two Zemax MTFs differ by more than 0.04 (twice the fail limit, so that a RayCrafter halfway between them is outside the limit of both) and the pupil's ray density, from Zemax's own rays, varies by more than 1.3 times (below that the weighting cannot account for a gap of 0.04), RayCrafter lies between the two curves or within the fail limit of them (outside that it is scored), and the field's Strehl ratio does not fail (a wavefront that differs is scored: an error that kept RayCrafter's MTF between two curves this far apart would show there). All three curves are in the MTF plots. At each field: 0 deg: Zemax's FFT and Huygens MTFs differ by 0.081; ray density varies 2.55 times; RayCrafter differs from the FFT MTF by 0.040 and from the Huygens MTF by 0.049, 0.011 outside the band between them; 5 deg: Zemax's FFT and Huygens MTFs differ by 0.086; ray density varies 2.57 times; RayCrafter differs from the FFT MTF by 0.040 and from the Huygens MTF by 0.053, 0.016 outside the band between them. Zemax's own FFT and Huygens MTFs differ by more than the fail limit (0.02) at 0 deg, 5 deg, 6.5 deg, 7 deg, 10 deg, so matching Zemax is a band, not a line (zemax-spread). 0 deg: at 289 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.829, Zemax Huygens 0.748 (they differ by 0.081, 4.0 times the fail limit), RayCrafter 0.797: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.011 outside the band; 5 deg: at 278 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.823, Zemax Huygens 0.737 (they differ by 0.086, 4.3 times the fail limit), RayCrafter 0.790: inside the band, 0.033 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.016 outside the band; 6.5 deg: at 262 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.806, Zemax Huygens 0.715 (they differ by 0.092, 4.6 times the fail limit), RayCrafter 0.774: inside the band, 0.032 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.023 outside the band; 7 deg: at 257 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.795, Zemax Huygens 0.701 (they differ by 0.094, 4.7 times the fail limit), RayCrafter 0.764: inside the band, 0.031 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.027 outside the band; 10 deg: at 198 cycles/mm, where Zemax's two MTFs differ most (sagittal), Zemax FFT 0.707, Zemax Huygens 0.584 (they differ by 0.124, 6.2 times the fail limit), RayCrafter 0.696: inside the band, 0.012 from the nearer Zemax value; over all frequencies RayCrafter is at most 0.082 outside the band

What RayCrafter said when it imported the file
  • Imported lens 1 has a 25.4 x 25.4 mm rectangular aperture; RayCrafter apertures are round, so the 25.4 mm circle inside it was used.
  • 1 lens(es) are not in the catalogue and were named "Imported lens N".
  • Each field angle was loaded at the primary wavelength, and each other wavelength as an on-axis field.
  • Paraxial f=+12.5 mm has no aperture in the file, so Zemax blocks no rays there. RayCrafter blocks rays outside the size the file draws it (20 mm across); some of the file's rays reach 11.6 mm from the axis there, so RayCrafter blocks rays that Zemax lets through.
  • Surface 16 ("enterance to flip cube") has a 38 mm round aperture in air; it was imported as an aperture 38 mm across, and none of the file's rays reach its edge.
  • The file has Gaussian pupil apodization (factor 1): the beams are Gaussian, with a fill factor of 1.
  • Adjusted: Paraxial f=+12.5 mm widened from 20 to 50 mm: the file gives the ideal objective no aperture, so Zemax blocks no rays there, while RayCrafter would block them outside the 20 mm the file draws it

Zemax against itself

Where Zemax's own two methods disagree by more than the fail limit, a single Zemax number is not what RayCrafter should match. Both Zemax numbers are shown here and in the plots, with RayCrafter's. No tolerance or verdict is changed by this section. RMS wavefront against field has one Zemax number only, so there is nothing to spread for it.

MTF: FFT against Huygens

Zemax computes the MTF two ways. The values are at the spatial frequency where its two curves differ most (the worse azimuth). RayCrafter is inside the band when it lies between the two Zemax values, beside it when it is outside by up to the fail limit (0.02), and outside it beyond that; the last column is the largest such distance over all frequencies. The band is shaded in the plots.

FieldAt (cycles/mm)Zemax FFT MTFZemax Huygens MTFZemax's own differenceRayCrafter MTFRayCrafter against the band thereLargest distance outside the band, all frequencies
0 deg2890.8290.7480.0810.797inside the band, 0.032 from the nearer Zemax value0.011
5 deg2780.8230.7370.0860.790inside the band, 0.033 from the nearer Zemax value0.016
6.5 deg2620.8060.7150.0920.774inside the band, 0.032 from the nearer Zemax value0.023
7 deg2570.7950.7010.0940.764inside the band, 0.031 from the nearer Zemax value0.027
10 deg1980.7070.5840.1240.696inside the band, 0.012 from the nearer Zemax value0.082

Strehl ratio: Huygens PSF against Wavefront Map

Zemax's Huygens PSF prints one Strehl ratio, the Strehl ratio of its Wavefront Map is the peak of the diffraction image of that wavefront, and where Zemax ran an FFT PSF its peak is a third (a dash where it did not).

FieldZemax Huygens PSFZemax Wavefront MapZemax FFT PSF peakZemax's own spreadRayCrafter (Zemax's pixel grid)RayCrafter against the band
0 deg0.9970.997–0.00020.997beside the band: 0.0004 outside it, which is within the fail limit of 0.02
5 deg0.9430.933–0.00950.947beside the band: 0.0043 outside it, which is within the fail limit of 0.02
6.5 deg0.8430.837–0.00580.855beside the band: 0.0117 outside it, which is within the fail limit of 0.02
7 deg0.7930.785–0.00850.811beside the band: 0.0179 outside it, which is within the fail limit of 0.02
10 deg0.3280.308–0.02010.404outside the band by 0.0761, more than the fail limit of 0.02
MTF at 10 deg: Zemax FFT, Zemax Huygens, the band between them, and RayCrafter.
MTF at 10 deg: Zemax FFT, Zemax Huygens, the band between them, and RayCrafter.
Strehl ratio against field: each Zemax number, the band between them, and RayCrafter.
Strehl ratio against field: each Zemax number, the band between them, and RayCrafter.

Optiland: the file's own fields

Against field angle. Blue: from Optiland's rays and OPD with Zemax's meaning. Orange: Optiland's own analysis as it comes, where it differs.
Against field angle. Blue: from Optiland's rays and OPD with Zemax's meaning. Orange: Optiland's own analysis as it comes, where it differs.
Optiland only (not RayCrafter): MTF and a section of the Huygens PSF (scaled to its peak) at three fields.
Optiland only (not RayCrafter): MTF and a section of Optiland's Huygens PSF (scaled to its peak) at three fields, against Zemax's. Where the off-axis PSF fails, that is Optiland's ideal-lens problem (the optical path across a paraxial surface off axis, evaluation #12), not the design's. RayCrafter's PSF against the same Zemax PSF is in its own figure.

RayCrafter: its own plots

What RayCrafter's window and report draw, with Zemax's points over them (open markers), on the file's own fields.

RMS spot radius against field angle.
RMS spot radius against field angle.
Strehl ratio and RMS wavefront against field angle.
Strehl ratio and RMS wavefront against field angle.
Distortion, f-tan and f-theta.
Distortion, f-tan and f-theta.
Field curvature. Zemax's sign is turned only after an odd number of mirrors, which reverses its z (the legend says where).
Field curvature. Zemax's sign is turned only after an odd number of mirrors, which reverses its z (the legend says where).
MTF (one wavelength), first field.
MTF (one wavelength), first field.
MTF (one wavelength), middle field.
MTF (one wavelength), middle field.
RayCrafter's PSF against Zemax's Huygens PSF, a section through each peak.
RayCrafter's PSF against Zemax's Huygens PSF: a section along y through each peak, scaled to its peak, in µm from the chief ray's image. RayCrafter's PSF is on Zemax's own pixel grid (Bench.psf with pixel_um) and both are centred on the chief ray's image (Zemax's "Center coordinates" in the Huygens PSF header are its chief ray's). The dashed line is RayCrafter with every ray at the same amplitude, as Zemax's Huygens PSF sums them: it shows why RayCrafter's own PSF, which weights the rays to conserve energy, can be a little wider; it is not a PSF a user gets. Peak positions agree to within 0.03 µm (a Zemax pixel is 0.05 µm) and the FWHM to within 5.6 % (0.7 % with equal amplitudes). Not scored: the Strehl ratio rows already score the height of the peak; position and width are shown for the eye.

The authors' plots: verdict by quantity

An older check, against the plots exported with the design from OpticStudio 2026 R1. The tables above, from our own Zemax run, replace it. Zemax numbers are read from the text block on each plot where it prints one; the rest are read off the plot pixels (digitised, marked in the Source column). Optiland numbers come from re-tracing the same ZMX with the local thin-lens patch (optiland_analysis/results.json), at 0.85 µm unless stated. RayCrafter numbers are calculated by RayCrafter itself (raycrafter_analysis/raycrafter_results.json). Status is computed from the tolerances in comparison.json; Δ is the largest difference from Zemax in the row, as a distance or as how far the ratio is from 1.

RayCrafter is given the file folded, as authored (raycrafter #159): it imports the fold mirror, and the footprint, RMS wavefront and Strehl numbers are those its unfolded copy gave, to 10−8. The same design exported again by RayCrafter and traced by Zemax is on its own page, where RayCrafter's MTF and Strehl ratio part from Zemax's at the largest angle.

How the file was adjusted for RayCrafter:

  • Paraxial f=+12.5 mm widened from 20 to 50 mm: the file gives the ideal objective no aperture, so Zemax blocks no rays there, while RayCrafter would block them outside the 20 mm the file draws it

Optiland

8matching
2partial
2failing

RayCrafter

9matching
2partial
0failing

Not matching: partial and fail rows.

QuantityZemaxOptilandRayCrafter
RMS wavefront on axis, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png0.009 / 0.027 / 0.0720.026 / 0.086 / 0.225Δ about 3× Partial0.009 / 0.027 / 0.070Δ 2.76% Match
Strehl on axis, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png1.00 / 0.98 / 0.820.97 / 0.94 / 0.65Δ 0.1759 Partial1.00 / 0.97 / 0.82Δ 0.0056 Match
RMS wavefront at 10°, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png0.181 / 0.145 / 0.08743.834 / 39.195 / 32.988Δ 380× Fail0.145 / 0.111 / 0.052Δ 68% Partial
Strehl at 10°, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png0.282 / 0.447 / 0.7510.002 / 0.001 / 0.001Δ 0.7494 Fail0.407 / 0.593 / 0.894Δ 0.146 Partial
All 12 rows, matches included
QuantityZemaxOptilandRayCrafter
Back aperture, max |x|, all λ and fields (mm)Zemax: text block on FootprintDiagram2.png10.341710.3417Δ <0.0001 Match10.3417Δ <0.0001 Match
Back aperture, y min (mm)Zemax: text block on FootprintDiagram2.png−11.5586−11.5586Δ <0.0001 Match−11.5586Δ <0.0001 Match
Back aperture, y max (mm)Zemax: text block on FootprintDiagram2.png10.313010.3130Δ <0.0001 Match10.3130Δ <0.0001 Match
Image plane, 10° marginal-ray radius (mm)Zemax: text block on FootprintDiagram.png0.47360.4736Δ <0.0001 Match0.4736Δ <0.0001 Match
Image plane, max |x| of rays (mm)Zemax: text block on FootprintDiagram.png0.00210.0021Δ <0.0001 Match0.0021Δ <0.0001 Match
Image plane, field 5° position (mm)Zemax: marker pixels on FootprintDiagram.png (digitised, scale 0.0021 mm/px)0.23800.2378Δ 0.0002 Match0.2378Δ 0.0002 Match
Image plane, field 6.5° position (mm)Zemax: marker pixels on FootprintDiagram.png (digitised, scale 0.0021 mm/px)0.31000.3087Δ 0.0013 Match0.3087Δ 0.0013 Match
3D layout: element order, fold, objectivesee belowsee belowΔ — Matchnot compared
RMS wavefront on axis, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png0.009 / 0.027 / 0.0720.026 / 0.086 / 0.225Δ about 3× Partial0.009 / 0.027 / 0.070Δ 2.76% Match
Strehl on axis, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png1.00 / 0.98 / 0.820.97 / 0.94 / 0.65Δ 0.1759 Partial1.00 / 0.97 / 0.82Δ 0.0056 Match
RMS wavefront at 10°, 0.85 / 0.94 / 1.10 µm (waves)Zemax: digitised from RMSvsField2.png0.181 / 0.145 / 0.08743.834 / 39.195 / 32.988Δ 380× Fail0.145 / 0.111 / 0.052Δ 68% Partial
Strehl at 10°, 0.85 / 0.94 / 1.10 µmZemax: digitised from RMSvsField.png0.282 / 0.447 / 0.7510.002 / 0.001 / 0.001Δ 0.7494 Fail0.407 / 0.593 / 0.894Δ 0.146 Partial

Strehl ratio vs field

Optiland: fail off axisRayCrafter: close

Solid lines are Zemax (digitised from RMSvsField.png). Circles are Optiland's FFT PSF Strehl at 0° to 10° in 1° steps. Dotted lines with squares are RayCrafter. Zemax stays above the 0.8 diffraction limit out to about 6.0° at 0.85 µm, 7.3° at 0.94 µm and 9.4° at 1.10 µm. Optiland has collapsed to 0.02 by 1°. RayCrafter follows Zemax to within 0.14 at every angle and wavelength, reading high at large angles.

Even on axis Zemax and Optiland disagree. At 1.10 µm Zemax gives 0.82 and Optiland 0.65. At 0.85 and 0.94 µm Optiland is 0.03 low. RayCrafter is within 0.01 of Zemax on axis.

Zemax Strehl ratio vs field
The Zemax plot the curves above were digitised from.

RMS wavefront error vs field

Optiland: fail off axisRayCrafter: close

Log scale, because Optiland differs from the others by two to three orders of magnitude. Zemax stays between 0.01 and 0.18 waves. Optiland (dashed) rises to 33 to 44 waves, the ideal-lens artefact documented as issue 3. RayCrafter (dotted, squares), which corrects the ideal lens's optical path in its own wavefront, stays within 0.04 waves of this digitised plot, reading low at large angles; against our own Zemax run it is 0.02 waves apart, a Fail since it took up the file's Gaussian apodization (raycrafter #140). The cause of what remains is not known.

Zemax is self-consistent. Its Strehl and wavefront plots agree through the Maréchal relation: 0.18 waves gives exp(−(2π·0.18)²) = 0.28, the Zemax Strehl at 10° and 0.85 µm. So the Zemax plots are a usable target for a fix.

To check after a fix: the 1.10 µm Zemax curve dips to 0.05 waves near 6.5° and then rises, while Optiland's geometric spot for 1.10 µm is the largest of the three at every angle. Only a valid wavefront calculation will show whether those fit together.

Zemax RMS wavefront vs field
The Zemax plot the curves above were digitised from.

Back-aperture footprint

Match

Zemax prints the extreme ray coordinates for all wavelengths and the five fields. Optiland's numbers, from the same 60-ring hexapolar trace, reproduce all three to the fourth decimal, and so do RayCrafter's, from the outline of each beam on that surface. The beam overfills the 20 mm aperture in both, and the walk is toward −y in both.

Zemax footprint diagram on the back aperture, surface 21
Zemax, surface 21: x ±10.3417, y −11.5586 to +10.3130.
Optiland footprint outlines on the back aperture for three wavelengths
Optiland outlines per wavelength (seven scan angles).

Footprint in the focal plane

Match

Zemax reports a maximum radius of 0.4736 mm and a ray x spread of ±0.0021 mm at 0.85 µm. Optiland's 10° marginal ray lands at 0.47362 mm and its x spread is ±0.00208 mm; RayCrafter gives the same to the fourth decimal. The 10° chief ray is 0.4729 mm, so the chief-ray value in the detail section agrees with Zemax once marginal rays are included.

Zemax footprint diagram at the image surface
Zemax, surface 22, fields 0, 5, 6.5, 7 and 10°.
Optiland spot diagrams at five fields
Optiland spot diagrams (amber dots), same five fields.

3D layout

Match

Same element order in both: galvo, scan lens doublet and singlet, PBS cube, tube lens doublets, 45° fold mirror, then the objective and focus. The fold direction in the two drawings differs only because of view orientation.

Zemax 3D layout
Zemax 3D layout.
Optiland YZ layout
Optiland layout.

Optiland detail: summary

Seven of the nine requirements produced usable output. Two needed a workaround for an optiland bug. Strehl ratio vs field and RMS wavefront vs field are blocked: optiland returns numbers for them, but the off-axis values are wrong (see Strehl). STEP export is not available in optiland.

RequirementStatusNotes
Back-aperture footprint & conjugation, all λWorks, patchedNeeded a local fix to optiland's ideal-lens model after the fold mirror.
Field of view, footprint in focal planeWorks, patchedSame fix. Without it the image height is 2.7 mm instead of 0.47 mm.
RMS spot vs field vs diffraction limit, all λWorksGeometric RMS spot radius against the Airy radius.
RMS wavefront vs fieldBlockedValid on axis only. Off-axis values are an artefact.
Strehl ratio vs field, all λBlockedValid on axis only. Same cause as RMS wavefront.
Field curvature & distortionWorks, unfoldedRun on an unfolded copy of the system. The folded file gives wrong reference heights.
Grid distortionWorks, unfoldedCrashes on the folded file; runs on the unfolded copy.
3D viewer of the modelWorksoptiland's viewer is a desktop VTK window; exported to glTF for this page.
STEP exportNot availableoptiland has no CAD export. Not attempted (listed as "eventually").
Lens and spacing detailsWorksSurface comments are dropped on import; re-attached from the .ZMX.
946 × 946 µm
Scanned field at the focal plane for ±10° in x and y (0.85 µm)
0.636
Image-space NA (real marginal ray), EFL 2.73 mm
1.14 mm
Beam walk on the back aperture at 10° scan (0.85 µm)
6.8°
Scan angle where RMS spot passes the Airy radius (0.85 µm)

Interactive 3D model

Requirement: 3D viewer of the model

Static 3D render of the optical system from optiland's VTK viewer Loading 3D model…

This is the scene from optiland's own VTK 3D viewer: all fields, all wavelengths, ring of 12 rays. It was rendered offscreen and exported as glTF; lens meshes were reduced to 3% of their vertices to keep the file at a few MB. Drag to rotate, scroll to zoom, right-drag to pan.

Back-aperture footprint and conjugation

Works, patched

Requirement: footprint of the back aperture, check conjugation, all wavelengths

Rays from a filled 4.5 mm pupil at the galvo, traced to the objective's back aperture (Zemax surface 21) for scan angles from −10° to +10°. If the galvo were imaged exactly onto the back aperture, every footprint would be centred and the beam would not walk.

Three panels, one per wavelength, showing outlines of the beam footprint on the back aperture for seven scan angles, against a 20 mm dashed circle
Footprint outlines for seven scan angles, per wavelength. The dashed circle is the 20 mm back aperture from the Zemax file (DIAM 10). Neither Zemax nor optiland clips the beam here, because no aperture is set on that surface.
Left: footprint centroid shift on the back aperture against scan angle for three wavelengths, reaching about 1.1 mm at 10 degrees. Right: axial position where chief rays cross the axis, 4 to 30 mm before the back aperture
Left: footprint centroid shift against scan angle. Right: where the chief ray crosses the optical axis, measured from the back aperture. Negative values are on the galvo side.
  • The beam is slightly larger than the back aperture. On axis the footprint is 20.6 mm across (4.5 mm × 250/54), against a 20 mm aperture.
  • The galvo is not conjugate to the back aperture. At 10° the footprint moves 1.14 mm at 0.85 µm, 1.04 mm at 0.94 µm and 0.90 mm at 1.10 µm. The walk grows faster than linearly: 0.30 mm at 5°, 1.14 mm at 10° (0.85 µm).
  • The chief rays cross the axis 11 mm before the back aperture at small angles and 30 mm before it at 10° (0.85 µm). So the galvo image lies before the objective, and its position shifts with scan angle and wavelength.

Field of view at the focal plane

Works, patched

Requirement: field of view size, footprint in the focal plane

The Zemax file defines fields along y only. The system is rotationally symmetric up to the fold mirror, which is flat, so here chief rays are traced on an 11 × 11 grid of x and y scan angles over ±10° to show the full 2D scanned field.

Grid of chief-ray landing points in the focal plane, spanning about plus or minus 470 micrometres in x and y, with slightly pulled-in corners
Chief-ray landing positions at 0.85 µm for x and y scan angles from −10° to +10°.
  • The field is 946 µm × 946 µm. The edge midpoints sit at ±472.9 µm and the corners at (±464.7, ±464.7) µm, so the corners are pulled in by 1.7%. That is the barrel distortion shown under grid distortion.
  • Cross-check: the 10° chief ray lands at 0.4729 mm. The Zemax file's image semi-diameter is 0.4751 mm, which also includes the marginal rays.

RMS vs field, against the diffraction limit

Spot worksWavefront blocked

Requirement: RMS vs field plot, all wavelengths, relative to the diffraction limit

RMS spot radius against scan angle for three wavelengths, rising from 0.15 to 2 micrometres, with dashed Airy radius lines near 0.8 to 1.06 micrometres
Geometric RMS spot radius (centroid reference, hexapolar sampling with 12 rings) against scan angle. Dashed lines are the Airy radius, 0.61 λ / NA, for each wavelength.
λ (µm)Airy radius (µm)RMS spot at 0°RMS spot at 10°Below Airy up to
0.850.820.18 µm1.52 µm6.8°
0.940.900.15 µm1.35 µm8.0°
1.101.060.59 µm2.00 µm5.4°
RMS wavefront error vs field is blocked

On axis optiland gives 0.026 waves at 0.85 µm, which is plausible. Off axis the value rises almost linearly, to 44 waves at 10°. That can't be real: a 44-wave wavefront could not produce the 1.5 µm spots above. The cause is in optiland's ideal-lens model, explained under Strehl.

Show optiland's RMS wavefront output (invalid off axis, do not use)
Invalid plot: RMS wavefront error rising linearly to about 44 waves at 10 degrees
Kept for reference only. Only the 0° values are meaningful.

Strehl ratio vs field

Blocked

Requirement: Strehl ratio vs field, all wavelengths, relative to the diffraction limit

Why this is blocked

The objective in this file is a Zemax paraxial surface: an ideal lens. Zemax treats it as perfect at every field angle. optiland's equivalent thin-lens model adds the optical path of a perfect lens for an on-axis point only. Off axis, the ideal lens itself introduces wavefront error, and at NA 0.64 that error is large.

A single ideal lens tested on its own in stock optiland shows this: 1.3 waves RMS and Strehl 0.16 at 5°, where both should be perfect. With the stop at the lens's front focal plane, which is close to this system's layout, the wavefront calculation fails with No valid ray samples found.

Every quantity built on the wavefront inherits the error: RMS wavefront, Strehl, PSF and MTF. Ray-based results (spots, footprints, distortion, field curvature) are not affected, because the thin lens bends the rays correctly.

What is usable now: on axis, FFT-PSF Strehl is 0.97 at 0.85 µm, 0.94 at 0.94 µm and 0.65 at 1.10 µm. These agree with the on-axis spot sizes. Off axis there are no valid numbers yet.

Ways to unblock:

  • Fix the thin-lens optical path in optiland (issue 3 in upstream/optiland_issues_found.md).
  • Replace the paraxial objective with a real lens prescription.
  • Evaluate the wavefront at the back aperture instead of at the focus.
Show optiland's Strehl output (invalid off axis, do not use)
Invalid plot: Strehl ratio near 1 on axis dropping to near 0 at all off-axis fields
Solid lines: FFT PSF peak. Dotted lines: the Maréchal approximation from the RMS wavefront. Both drop to near zero just off axis. That drop is the ideal-lens artefact, not the design.

Field curvature and distortion

Works, unfolded

Requirement: field curvature and distortions

optiland's paraxial engine gets the reference image height wrong when the system contains the fold mirror: 1.29 mm instead of 0.48 mm at 10°. Distortion depends on that reference. These plots therefore use an unfolded copy of the file, with the flat mirror replaced by straight-through propagation, which is optically identical. Real-ray image heights and back-aperture positions agree between the folded and unfolded models to 10−14 mm.

Field curvature: tangential and sagittal focus shifts within about plus or minus 2 micrometres for three wavelengths
Field curvature, tangential (solid) and sagittal (dashed). The x axis is in mm, so ±0.0015 mm = ±1.5 µm. On axis, the 1.10 µm focus lies 1.2 µm beyond the 0.85 µm focus.
F-theta distortion reaching minus 0.74 percent at 10 degrees, the same for all wavelengths
Distortion relative to an f-θ scan (image height proportional to scan angle): −0.74% at 10°, the same at every wavelength.
Show f-tan(θ) distortion
F-tan theta distortion against scan angle for three wavelengths
Distortion relative to f·tan θ, the convention Zemax uses by default.

Grid distortion

Works, unfolded

Requirement: grid distortion

Grid distortion against an f-theta reference grid, maximum 1.23 percent
Against an f-θ reference: max 1.23%.
Grid distortion against an f-tan theta reference grid, maximum 1.73 percent
Against an f-tan θ reference: max 1.73%.

optiland scales this grid so the corners are at the 10° maximum field. The grid therefore spans ±0.34 mm, not the ±0.47 mm of the full ±10° x/y scan shown under field of view. On the folded file this analysis crashes with zero-size array to reduction operation maximum.

Spot diagrams

Works

Supporting plot: spots at the five Zemax fields, all wavelengths, all centred on the 0.85 µm (primary) chief ray. The dashed circle is the Airy disk at the primary wavelength. Axes are in mm (0.002 mm = 2 µm).

Spot diagrams at five fields for three wavelengths, spots growing from under 1 micrometre on axis to about 5 micrometres across at 10 degrees
Field labels are normalised: Hy = 1 is 10°. Optiland's amber dots; the three wavelengths are not told apart, and the tail of spots below the main group at large field is lateral colour.

STEP export

Not available

optiland 0.6.3 has no STEP or other CAD export. The closest it offers is the 3D mesh above, which can be exported from VTK as glTF, STL or OBJ: triangulated surfaces with no exact geometry or lens edges. This was listed as "eventually", so nothing more was attempted.

Lens data

Works

Requirement: details of the lenses and spacings

Prescription as optiland holds it, with Zemax surface numbers and comments added back. optiland drops comments on import and absorbs the two coordinate breaks (Zemax surfaces 17 and 19) into neighbouring surfaces. Negative thicknesses follow the Zemax convention after the mirror. Refractive indices are optiland's, from its own glass catalogue.

ZemaxCommentTypeRadius (mm)Thickness (mm)Materialn 0.94n 0.85n 1.10
0Plane∞∞Air
1X-galvoPlane (stop)∞0Air
2Plane∞45.5Air
3Standard291.075N-SF6HT1.777521.781551.77226
4Standard93.1112N-LAK221.639561.641461.63685
5AC508-075-BStandard-51.81Air
6LE1015-BStandard65.166.18N-BK71.508371.509841.50617
7Standard171.668Air
8PBS255Plane∞25.4N-SF11.695741.698971.69145
9Plane∞206.5Air
10Standard-2471.0736N-SF51.653821.656691.64994
11Standard192.8356N-SK21.596791.598511.59434
12ACT508-500-BStandard-233.8132Air
13ACT508-500-BStandard233.8136N-SK21.596791.598511.59434
14Standard-192.8356N-SF51.653821.656691.64994
15Standard2471.07364.5Air
16enterance to flip cubePlane∞32.6Air
18Mirror∞-24.54MIRROR
20underside of filp cubePlane∞-130.5Air
21Back apertureParaxial f=12.5∞-12.5Air
22Plane∞—Air

System: entrance pupil 4.5 mm at the galvo (stop). Paraxial EFL 2.73 mm, working F/0.61. Fold mirror tilted 45° about x. Aperture shapes from the file (square aperture on the PBS cube, rectangular on the mirror) are not used in these results; no rays were clipped.

optiland issues found

Full details, repro code and suggested fixes are in upstream/optiland_issues_found.md.

  • 1. Ideal lens reverses rays after a mirror. optiland's thin-lens model forces rays to travel in +z. After the fold mirror they travel in −z, so they were sent backwards: 10° landed at 2.7 mm instead of 0.47 mm. Patched locally Upstream: PR #1109 (fixed on main for real rays), #1210 (paraxial path).
  • 2. Paraxial engine is wrong with a fold mirror. The exit pupil and the reference image height are wrong in the folded file, which breaks distortion and grid distortion. Worked around by unfolding Upstream: #1210.
  • 3. Ideal lens is not perfect off axis. Its optical-path term is correct only for an on-axis point. This blocks RMS wavefront, Strehl, PSF and MTF for any design with a paraxial objective, and telecentric layouts fail outright. RayCrafter works around it for its own wavefront, Strehl and PSF, not for the MTF. Open upstream Upstream: #1248, #1110 (exit pupil at infinity; closed after 0.6.3).
  • 4. Surface comments dropped on import. Cosmetic; re-attached from the .ZMX for this page. Worked around Upstream: #1249 (filed as a feature request).

How Zemax was run

By make_zemax_reference.py, the same way for every design, on 2026-12-04 13:29. What is asked for, and which tool each result tests, is in zemax_analyses.md; every file is in Zemax_reference_output.

SystemWhat it isTests
The file's own fieldsThe file untouched, at its own fieldsOptiland, RayCrafter

Reproduce

The scripts are in evaluation_tools/from_zemax/ and evaluation_tools/pages/. optiland is installed with uv; the environment (pinned in uv.lock) lives outside Dropbox, here at ~/uv_venvs/optiland_eval_mac, and is selected with --project.

export UV_PROJECT_ENVIRONMENT=~/uv_venvs/evaluation_mac
uv run python -m evaluation_tools.from_zemax.analyze_smod45 designs/from_zemax/SMOD4.5   # about 2 minutes
uv run python -m evaluation_tools.from_zemax.analyze_raycrafter designs/from_zemax/SMOD4.5   # a few seconds
uv run python -m evaluation_tools.build_summary                # regenerates all HTML

load_system.py holds the thin-lens patch and the unfolding step. analyze_smod45.py runs every Optiland analysis, analyze_raycrafter.py asks RayCrafter (pinned in pyproject.toml) for its numbers, and build_summary.py writes this page.