Kaden MacLean
WorkAboutNowWritingContact
All work

Released · November 1, 2024

Optics Simulator

Interactive ray-tracing simulator for concave/convex mirrors and lenses — built from scratch.

optics — biconvex lens
F
n = 1.50
R = 30 mm
f = 60 mm

An interactive optics simulator built from scratch that visualizes how light interacts with curved mirrors and lenses through real ray tracing. You can place concave or convex mirrors, biconvex or biconcave lenses, drag light sources around, and watch the rays refract and reflect in real time.

The simulator handles the actual physics — Snell's law for refraction, the law of reflection for mirrors, and proper handling of focal points and image formation. It was originally built as a learning tool for understanding the optical system in the AR glasses project, and grew into a standalone visualization that's genuinely useful for anyone learning optics.

It became the testbed for the collimating lens design that ended up in the AR glasses prototype — being able to drag a virtual lens around and immediately see where the rays converge made the design iteration loop ten times faster than doing the math by hand.