Known problems
RayCrafter is pre-alpha. These are the known problems at the time of writing; the current list is on GitHub under the known problem label.
Zemax files
- Exported ZMX files look wrong when opened in Zemax. Even a single achromat appears with very thick, elongated surfaces. Do not rely on exported files yet. #9
- Fields do not survive a ZMX export and import. A ZMX file holds one aperture, one object distance, and a list of angles and wavelengths, so per-field widths, vergences, offsets and colours are lost. Save a project to keep them. #11
- Assemblies come back as separate lenses. This includes Plossl pairs. The optics are right, but the lenses no longer move as one. Save a project to keep them. #12
- Apertures in air are not imported. Baffles and cube faces in an imported file are left out, with a note, so RayCrafter may pass rays that Zemax blocks. You can add apertures by hand. #22
- The aperture stop is not imported. Importing marks no element as the stop. Exporting writes your stop only while the fields fill it. #106
- The detector is not stored in ZMX files. It is neither exported (with no warning) nor imported. Save a project to keep it. #105
- The back aperture and named designs are not stored in ZMX files. Save a project to keep them. #110, #111
- Rectangular apertures become circles. An imported rectangular aperture is replaced by the circle that fits inside it, so rays near the corners are blocked. #23
- Folded paths are not supported. Files with mirrors do not import, and folded paths cannot be built. #60
Building a design
- The context bar is untested on Windows and Linux. It should appear as an ordinary toolbar under the title bar. #73
- Concave lenses can be made to overlap. Dragging or placing lenses stops their centres crossing, but concave surfaces can still overlap towards the rim. Typing a gap refuses such values. #58
- User parts cannot be renamed or deleted from RayCrafter. Delete the part’s file instead. Renaming the file does not rename the part. #62
- Mount type is unknown for most catalogue lenses. Unknown does not mean unmounted. #59
Accuracy of the analysis
- Field curvature swings beams about the first lens, not the stop. In a scanning system the curve then does not describe the real scan. With Fields fill the stop on this is expected to be fixed, but it has not yet been checked. #24
- Through-focus marks a “best focus” where there is none. With a collimated output, the through-focus plot and the web report still mark one. #114
- The MTF tab is wrong off the axis with paraxial lenses. This comes from the underlying Optiland library. The PSF, Strehl ratio and colour plots correct for it.
- The MTF ignores a field’s offset. Spot diagrams and ray fans include it; the MTF is calculated as if the offset at the first lens were 0. This includes the offset an angled beam picks up between the source plane and the lens. #10
- Side view draws some totally internally reflected rays wrongly. They are drawn running on to the lens edge rather than stopping. This affects the drawing only. #16
Export and tutorials
- STEP lenses have no edge flats or chamfers, and use the clear diameter, so a few come out slightly small. #120
- The buttons between a tutorial and the window are tried on macOS only. On Linux, Switch to lesson opens the lesson in a new tab. #113
Internal issues
These are about the code rather than what you see, but they may affect speed or reliability.
- Extra work while editing fields. Holding an arrow on a field-panel spin box makes updates roughly twice as slow as needed. #13
- MTF workaround for an Optiland error. The code that catches an Optiland error could hide other errors. #14
- Code layout. The Python API depends on code kept in the package for the AI agent server. #33
Reporting a problem
Please open an issue with what you did, what you expected, and what happened. A saved project file helps; note that an imported design’s project contains the original ZMX file.