M-TRACE: a MATLAB toolkit for animated raytracing based on scalable vector graphics illustration
Authors:
- Patrick KilcullenPKPatrick Kilcullen
- Tsuneyuki OzakiTOTsuneyuki Ozaki
- Jinyang LiangJLJinyang Liang
- 12 January 2026
- journal article
- Published by Optica Publishing Group in Optics Continuum
- Vol. 5 (1) , 235
Abstract
Modern optical design and simulation software, while both powerful and feature-rich, requires significant training investment for effective use, even for simple optical design tasks. By contrast, software for two-dimensional (2D) non-sequential raytracing, while sufficient for many optical design tasks and popular for educational purposes, has remained without the benefit of mature computer-aided design (CAD) technologies that are now a key feature of software dedicated to three-dimensional (3D) optical design. To overcome this limitation, we introduce M-TRACE—an open source toolkit for non-sequential 2D raytracing with scripting-based customization and animation capabilities implemented in MATLAB. This toolkit allows users to specify optical designs using tools compatible with free-form 2D illustration via scalable vector graphics (SVG), analogous to the integration of 3D CAD technologies with enterprise optical design software. The intuitive and precise drawing features of SVG illustration software (e.g., Adobe Illustrator, Inkscape) allow for a straightforward means for the creation of system designs. We intend M-TRACE to complement the spectrum of available optical design software for research, development, and education, specifically targeting design cases requiring rich visualization and/or rapid exploration.Keywords
Funding Information
- Natural Sciences and Engineering Research Council of Canada (RGPIN-2024-05551)
- Canada Research Chairs (CRC-2022-00119)
- Nature et technologies (203345–Centre d’Optique, Photonique, et Lasers)
This publication has 8 references indexed in Scilit:
- Short‐wave Infrared Photoluminescence Lifetime Mapping of Rare‐Earth Doped Nanoparticles Using All‐Optical Streak ImagingAdvanced Science, 2024
- Compressed ultrahigh-speed single-pixel imaging by swept aggregate patternsNature Communications, 2022
- Deep-Learning Supervised Snapshot Compressive Imaging Enabled by an End-to-End Adaptive Neural NetworkIEEE Journal of Selected Topics in Signal Processing, 2022
- Single-shot real-time compressed ultrahigh-speed imaging enabled by a snapshot-to-video autoencoderPhotonics Research, 2021
- Tools and tutorial on practical ray tracing for microscopyNeurophotonics, 2021
- Optical generation and detection of gigahertz-frequency longitudinal and shear acoustic waves in liquids: Theory and experimentJournal of Applied Physics, 2012
- Narrow-band acoustic attenuation measurements in vitreous silica at frequencies between 20 and 400 GHzApplied Physics Letters, 2011
- Shape specification for axially symmetric optical surfacesOptics Express, 2007