OpticSketcher
Skip to main content
For optics educators and students

The optics bench you can project, share and hand out.

Open a lens, a prism or a Michelson in the browser, change one parameter in front of the class, and let students repeat it on their own laptop or phone. No install, no student accounts.

Free to use · Runs in the browser · Exports SVG and PNG

Laser 532 nm
Focusing lens
Screen
Drag the optics
100 mm
Focusing lens
Collimated beam, one lens · slide f to move the focus
§ Syllabus

Built for the optics syllabus

Every example below is a complete setup built to real dimensions: real glasses, real wavelengths, real focal lengths. Open it on the bench and every element is yours to move.

Imaging, magnification and afocal systems, from one lens to a full telescope.

  • Single-Lens Imaging preview

    Single-Lens Imaging

    Try this: Slide the object toward the focal point and watch the image move out and grow.

    Embed
  • 4f Imaging Relay preview

    4f Imaging Relay

    Try this: Change the spacing from 2f and see the 1:1 inverted image fall apart.

    Embed
  • Keplerian Telescope preview

    Keplerian Telescope

    Try this: Swap the eyepiece focal length and read the new beam expansion, f2/f1.

    Embed
  • Newtonian Telescope preview

    Newtonian Telescope

    Try this: Follow the annular beam around the central obstruction to the eyepiece.

    Embed
  • Human Eye Model preview

    Human Eye Model

    Try this: A schematic eye focused at 25 cm. Move the letter F and see what the retina gets.

    Embed

Plus camera lenses, eyepieces, a Cassegrain, a Schmidt camera and a microscope objective. See all 33 examples in the gallery

§5 For educators

One setup, three uses

Build it once. Show it live, print it as a figure, and send it home with the students.

  1. 1

    Before class: make the figure.

    Switch to the Paper theme and export the view as SVG or PNG on a white background. It stays crisp on a slide, on a problem set or on an exam page, and the rays are traced, not drawn by hand.

  2. 2

    In the lecture: change one thing.

    Drag a lens, tilt a mirror, change a wavelength. The rays update as you move, so the question "what happens if" gets answered on the screen instead of on the board. Put a QR code on the slide and the room opens the same setup on their phones.

  3. 3

    After class: share the setup.

    One link opens the exact setup in the browser. Students do not need an account or an install, and they can edit their own copy. A temporary link needs no sign-in and lasts 14 days. Sign in for a permanent link that always shows your latest version, for the course page all semester.

  4. 4

    Put it on the course page.

    Embed any example or your own design in Moodle, Canvas or a course site with an iframe. Choose a 2D or 3D view, let students drag parts or only orbit the camera, and add sliders tied to one part: the focal length of that lens, the angle of that polarizer, the wavelength of the source.

    Embeds show rays. Interference patterns from Fields open in the full editor.

  5. 5

    Write the question into the setup.

    Every design carries a note that travels with the link, so the problem statement sits next to the optics it is about.

Projector vs Paper

The same setup, two jobs

Dark and in 3D for the projector. White and flat for the handout. Same traced rays, same Chromatic Aberration vs Achromat setup.

Chromatic Aberration vs Achromat in the dark 3D view, with two spot diagrams
Projector: dark theme, 3D, pinned spot diagrams
Chromatic Aberration vs Achromat exported in the Paper theme on a white background
Paper: white background, ready for slides and problem sets. Fig. 2. Singlet vs achromat, F, d and C lines.
§6 For students and labs

From prelab to lab report

Try the experiment before you touch the real table, then bring numbers back. Meant for university and upper-secondary teaching.

  1. 1

    Prelab.

    Open the setup your instructor shared, or start from a gallery example, and predict before you move anything. Where is the image? Which output of the Mach-Zehnder is dark? Then check.

  2. 2

    At the bench.

    Change one parameter at a time and watch cause and effect: a slit width, an arm length, a mirror reflectivity, a waveplate angle. Measure distances on the canvas, read the sensor, try again.

  3. 3

    Lab report.

    Sensors report what a detector would: a spot diagram with statistics, a spectrum, a time trace or a polarization state. With Fields on, an image sensor also gives total power and peak intensity, and the intensity map exports as CSV for your own plots. Every readout exports CSV, plots export PNG, and the layout exports as a clean white figure.

  4. 4

    Advanced courses.

    Bring in a real lens: paste a public ZMX link from a lens maker's product page onto the canvas, or import ZMX files and CODE V sequence files. Use spot diagrams to compare designs and the polarimeter to follow a polarization state through waveplates and beamsplitters.

  5. 5

    Any laptop in the room.

    It runs in the browser on computers, tablets and phones. Nothing to install, no license server, no IT ticket. Work as a guest and keep files locally, or sign in to save to the cloud.

§7 Scope

What it models, and what it does not

What it models

  • Ray tracing in 2D and 3D, with real glasses and dispersion
  • Lenses (thin, thick, cemented), mirrors, prisms, gratings, apertures, beamsplitters
  • Polarizers, waveplates and polarization state at the sensor
  • Fields: coherent Gaussian beams, diffraction at apertures and blockers, and interference where beams overlap
  • Sensor readouts: spot diagrams, spectra, time traces, polarization, power and peak intensity

What it is not

  • Fields is an approximate model for teaching and concept work, not a full wave-optics solver
  • It is a bench for understanding and showing optics, not a lens design or manufacturing package
  • Field maps are recomputed when you open a design and when you switch Fields on; they are not stored in links or embeds

Curious how the simulation works underneath? See the Optical Physics page.

Questions teachers ask

Is it free for my class?

OpticSketcher is free to use today, for teaching and for everything else. If pricing or license terms ever change, it will be announced on this site first.

Do students need accounts or installs?

No. Students open a link in the browser and start. An account is only needed to save to the cloud or to create a permanent link.

Will it run on student laptops and phones?

It runs in a modern browser on computers, tablets and phones. Fields computes in the browser, so larger setups take longer on slower devices.

What physics is included?

Ray optics with real materials and dispersion, polarization, and an optional Fields view for Gaussian beams, diffraction and interference. See "What it models" above, or the Optical Physics page for the details. Optical Physics page.

Can I put it in Moodle or Canvas?

Yes. Any example or saved design can be embedded with an iframe, with sliders you choose. For a course page that stays up all semester, embed a gallery example or a permanent link; temporary links expire after 14 days. Embeds show rays only. Embedding guide.

Can I use the figures in slides and exams?

Yes. Use the Paper theme and export SVG or PNG on a white background.

Where is the data, and can I take it with me?

Ray tracing runs in your browser. Guests can keep designs in the browser or as local .json files, which hold the full scene. Lens stacks export back to ZMX, layouts to SVG, PNG and 3D formats, and sensor data to CSV. See the privacy page for what is stored when you sign in or share. Privacy page.

How do I cite it in a lab report or paper?

Open Cite OpticSketcher in the Help menu or the site footer for a text citation, BibTeX and the DOI.

§8 Next lecture

Pick one demo for your next lecture.

Open it, change one parameter, and see how the room reacts.

Teaching with it already? Tell us what to build next.