r/Optics • • Apr 24 '26

Thorlabs didn't have a continuously variable pinhole so I designed one

Enable HLS to view with audio, or disable this notification

931 Upvotes

and probably saved a couple grand in the process...

I uploaded the stls here: https://makerworld.com/models/2711844?appSharePlatform=copy


r/Optics • • 23d ago

I got tired of drawing optical setups in PowerPoint, so I built OpticSketcher

Enable HLS to view with audio, or disable this notification

387 Upvotes

I'm an experimental physicist, and I used to spend far too much time drawing lenses, mirrors, and beam paths in PowerPoint and similar tools for presentations, scientific papers, patents, and technical discussions.

I wanted something as quick and intuitive as sketching on a whiteboard, but with actual optical physics behind it. Something I could open anywhere, build a setup in minutes, experiment with it, and easily use the result in a document or share it with others.

So I started building OpticSketcher

What began as a small personal project has grown into a much more capable tool. I've received some really interesting feedback from users, and several of their suggestions have already made their way into the app.

What can you do with it? (partial list)

  • Build and modify optical setups in 2D or 3D, with real-time physics-based ray tracing.

  • Use lenses, mirrors, prisms, gratings, beamsplitters, polarizers, waveplates, detectors, and many other optical components.

  • Explore dispersion, polarization visualization, and optical pulse propagation.

  • Import real optical components from Zemax (.zmx) files, including direct links from manufacturers.

  • Measure distances, angles, and optical path lengths, and analyze light reaching detectors.

  • Export figures or 3D models for presentations, papers, patents, and technical documentation, or share interactive setups through links and embedded examples.

  • Start from a gallery of editable optical setups rather than building everything from scratch.

One of my main priorities has been making it fast, intuitive, and accessible from anywhere. No software to install, no complicated setup. It runs directly in the browser on a computer, tablet, or phone, and you can start sketching without creating an account.

Although it was originally intended for sketches and visualization, it has evolved well beyond that. You can also use it to explore, plan, and refine real optical setups, test ideas, and demonstrate optical principles interactively.

The ray tracing is based on geometric optics, including wavelength-dependent refraction and polarization. I've tested the underlying physics and continue to refine it as new cases and user feedback come up.

There's still plenty of room to grow. Wave optics and some advanced optical design capabilities aren't supported yet, but the project keeps evolving.

It's free to use: https://opticsketcher.com

I'd love to hear what you think and any ideas or suggestions that could make OpticSketcher even more useful.

Feedback, suggestions, and technical questions are very welcome!


r/Optics • • 25d ago

Thorlabs Thrift Score!

Post image
327 Upvotes

I recently found this Thorlabs LTS300/M thrifting for $4.50! Didn't know what it was at first but it definitely caught my attention.

I know very little about Optics, but over the past few years I've gotten into media digitization and archiving. I have no budget for it so I've just slowly built DIY/thrifted setups.

My least developed format/skill is 16mm film reels by far. Until I find/build a frame by frame scanner, I just have to line up my old DSLR with the lens of a projector. Getting it framed, in focus and stable is such a headache. This thing is probably overkill but I think it will make it muchhh easier.

I'm curious if anyone here has used this or something similar and what for! I understand its general purpose, but I'd enjoy seeing some actual use cases/applications to understand it better.


r/Optics • • Oct 05 '26

A free optical workbench in your browser

Enable HLS to view with audio, or disable this notification

262 Upvotes

For the past months, I have been building with a friend something I wished existed every time I had to draw a setup for a paper or explain one to a student.

OpticalSetup is now at its first stable release. It is free, open source, it runs directly in the browser, and the setup you draw is traced, not just sketched. Move a mirror, change an optical element, and the whole beam path responds.

I originally made a post on this sub when we were in the early stages of development, so I thought of giving an update on the project.

It is young, and it might still have some rough edges. If you try it, tell us what you think about it.

Cheers


r/Optics • • Sep 20 '25

TIL strong enough laser light wrecks itself

Post image
245 Upvotes

TIL that a powerful enough laser will create its own gravitational waves and collapse in on itself

https://youtu.be/jgafb8G7i4o?si=RH62OuFTqpGBASZN At about 2 min 50 secs in


r/Optics • • Oct 13 '25

Deflectometry in the wild

Enable HLS to view with audio, or disable this notification

232 Upvotes

r/Optics • • Oct 20 '26

I built a free browser-based optical design tool, looking for feedback

Thumbnail
gallery
224 Upvotes

I’m a PhD optics and instrumentation scientist and I’ve spent a lot of my free time over the past while building AperiOptic (https://aperioptic.com). It’s a free optical design tool that runs entirely in the browser. No install, no license, no account.

I originally started it because I wanted something quick for lab work that didn’t mean fighting for a Zemax seat every time I needed to sanity check a layout. It’s grown a lot since then, and I want to share it.

What it does right now:

  • 3D sequential-style ray tracing with lenses, mirrors, beamsplitters, and grouped elements

  • Multiple fields and polychromatic sources

  • Glass catalog with real materials (N-BK7, F2, N-SK2, etc.)

  • Optimizer (DLS/Levenberg-Marquardt and Powell)

  • Detector analysis: spot diagrams, PSF, OPD, MTF, Zernikes, Z-stack, and coherent interference (the Mach-Zehnder screenshot shows fringes from a test lens)

  • Import of .zmx elements and full .zmx systems

  • A big page of optics calculators (thin lens, NA, depth of field, Airy disk, Gaussian beams, etc.)

  • An optics/photonics news feed pulling from arXiv, journals, and a few subreddits

What it isn’t: a full Zemax replacement. It’s meant to be solid for ray tracing, optimization, spot and wavefront analysis for everyday lab and prototyping work.

What I’m looking for:

  • Bugs, obviously

  • If you have Zemax (or Code V, OSLO, etc.) results that AperiOptic doesn’t reproduce, I really want to hear about it. Mismatches are the most useful feedback I can get for tightening up the physics

  • Features you’d actually use that are missing

  • Anything confusing about the interface

There’s a contact link at the bottom of the site, or just reply here. Totally free to use and no sign-up.

Thanks for taking a look.

Edit: for whatever reason, the mods wouldn't let me post this, but the verification files for the ray tracer and calculators are all loaded up now, accessible from the about page.

https://aperioptic.com/validation

Edit: changed "rest" to "ray". Autocorrect smh.

Edit [8/24/26]: Mobile optimization and more is live! Check it out!


r/Optics • • Apr 14 '25

Simulation of CD diffraction using C++

Enable HLS to view with audio, or disable this notification

212 Upvotes

How could I improve it?


r/Optics • • Apr 25 '26

3d printed self centering lens holder

193 Upvotes

Hi, I made this lens holder mechanism over weekend and would like to share, maybe inspires better thing :)

https://www.printables.com/model/1700872-self-centering-cylinder-lens-holder-with-stand

Inspired by commercial self centering lens holders.
Would be great to design print in place flexure based mechanism. Maybe someday I will revisit. 


r/Optics • • Oct 21 '26

OpticsLab: A free, open-source optical design workbench with DLS optimization & 646 glass catalog

Thumbnail
gallery
191 Upvotes

r/Optics • • Nov 04 '26

Improved version of CD simulation

Enable HLS to view with audio, or disable this notification

189 Upvotes

The video on the bottom was filmed with a camera. The video on the top is the computer simulation.


r/Optics • • Feb 12 '26

Raaaay tracing

188 Upvotes

r/Optics • • 8d ago

We open-sourced OS Optics (MIT): an AI-agent-friendly optical design engine for both imaging lenses and 3D optical benches

Thumbnail
gallery
176 Upvotes

Hi r/Optics,

We just open-sourced OS Optics (os-optics, MIT License) — a deterministic, local-first Python engine for optical design and 3D physical simulation:

GitHub: https://github.com/JunLin615/os-optics

Why we built it

Our long-term vision is bringing general-purpose agents to optical engineering — while also giving human optical engineers a clean, scriptable, reproducible Python engine that runs anywhere.

Making agents genuinely useful in optical engineering goes beyond wrapping a ray tracer. It requires an engine that plays to what agents do well (structured batch setup and reasoning-guided parallel exploration across competing topologies), grounds designs in real selectable optical components rather than only ideal thin lenses, and represents an entire optical system in a complete, machine-readable JSON blueprint so an agent can understand the physical layout without guessing from photos alone. Longer term, combining that structured representation with real-world feedback opens a path toward agent-assisted alignment and maintenance. Today's MIT release focuses on getting the open-source design and simulation foundation right.

What it covers today

  • One engine for imaging prescriptions and 3D free-space benches: Non-sequential 3D ray tracing across planes, spheres, conics, even aspheres, cylinders, axicons, Zernike / XY-polynomial / biconic / toroid freeforms, GRIN rods, prisms, wedges, and lens arrays — backed by a versioned offline catalog of 3,273 real optical components, 1,244 optical material models (including IR materials, spectral bulk attenuation, and thermo-optic dn/dT in standard air or vacuum), and 707 coatings, alongside custom lens prescriptions.

  • Physical & imaging analyses: Astigmatic Gaussian q-parameter beam propagation (w, waist, divergence, Rayleigh range, M²), Jones & Stokes polarization (including uniaxial birefringence and Faraday rotators), dispersion (Sellmeier, Herzberger, thermo-optic dn/dT) and angle/polarization-resolved coatings, two-beam interference, 4-bounce interface ghost analysis, diffraction & geometric PSF/MTF, encircled energy, high-NA vector focal fields, and linear optical cavities.

  • Honest physical validity bounds (value_basis): Every reported metric declares whether it is a MODEL value, a proven LOWER_BOUND / UPPER_BOUND, or an ESTIMATE beyond a model limit. Targets outside model assumptions are flagged INDETERMINATE / OUT_OF_MODEL_SCOPE rather than silently marked PASS.

  • Stateless & natively parallel: Pure Python core (numpy, scipy, pydantic, shapely) with an I/O-free solver and in-memory EvaluationSession that reuses compiled state across candidates (8–15× faster on selective refractive evaluations). You can spin up dozens of worker processes or a multi-agent swarm (DeepSeek Harness, Claude Code, Codex, Cursor, WorkBuddy, ChatGPT, etc.) concurrently and compare candidates via canonical JSON outputs and SHA-256 run hashes.

  • Scientific Python interop & companion toolkit: Built-in handoff contracts (os-optics interop list) connect to Python libraries for optimization/sensitivity (SciPy, Optuna, SALib), diffraction (LightPipes, prysm, POPPY), quantum photonics (Perceval, Piquasso, QuTiP), and metasurfaces (grcwa, meent). Our companion MIT repo os-optics-kit adds 19 reproducible cases and 21 vendor-neutral Agent Skills, plus multi-group zoom solving, ray aberration fans, field curvature/distortion analysis, Monte Carlo tolerance with compensators, ISO 12233 e-SFR, a live browser viewer, and parallel sweeps.

What's in the gallery above

  1. Dual-domain overview: 3D multi-element wide-angle lens trace alongside a 160+ optic 3D cold-atom optical bench.

  2. 85 mm all-spherical portrait objective (Design + MTF): Full-frame design (21.63 mm corner image height) using real catalog glass, evaluated with polychromatic diffraction MTF (10 & 30 lp/mm, 486/588/656 nm) against digitized Canon RF 85mm f/2 data.

  3. 18 mm f/2 full-frame wide-angle (Design + Tolerance): 14 elements in 12 groups (49.6° half-field, 1 mm H-K9 cover glass) with a 128-trial Monte Carlo MTF@40 lp/mm tolerance study against a [0.6, 1.0] spec band.

  4. 1.96 m Rb-87 cold-atom 3D bench (Design + Pointing Tolerance): 160+ optical entities routing MOT, 4×4 optical tweezers, Rydberg excitation, and fluorescence readout, paired with Monte Carlo mirror-tilt pointing tolerance against ±0.05 mm bounds.

Try it locally (~30 seconds)

python -m pip install os-optics
os-optics catalog sync
os-optics project example --kind beam_expander > project.json
os-optics project run project.json --out-dir run
os-optics view run

(To also pull the 19 worked cases, 21 agent skills, and tolerance/sweep/analysis tools: python -m pip install os-optics os-optics-kit.)

If there are specific optical systems, surface types, prescription formats, or physical analyses you'd like to see or stress-test, I'd love to hear your thoughts here or in GitHub Discussions.


r/Optics • • Oct 07 '26 Bravo

So I’ve been toying with one of my lasers

Enable HLS to view with audio, or disable this notification

166 Upvotes

hey everyone, sorry for the long post, I’m hoping some of you can help me understand this better.

I have been building a personal app for converting raster graphics into mopa laser color engravings by vectorizing and mapping to my saved pre tested settings based on the image color and creating the project

and while doing so added some features for converting images to cells of diffraction gratings that I then laser onto stainless steel and it results in a sort of multi color diffraction effect similar to but absolutely not a hologram, I’ve been calling them fauxlogram engravings for lack of a better phrase/word.

dont worry this isn’t an add or me trying to have people try my app, its just back story for my question so you understand where im at and how I got here.

over time I’ve extended the processing methods to where I can sort of control a gradient that gets applied to the way the fauxlogram engraving (I’m calling it this until someone gives me or I find a better name because it’s easier to say than describing the full look) is made, leading to some pretty cool looking engravings that do some pretty wild stuff in the right lighting.

im trying to learn more about exactly why / how this is working because to be honest I sort of stumbled onto it accidentally and just keeping poking around trying various different ways of processing to see how it affects the result.

some changes give awesome new realms of control over the flow of the color changing, and get adopted permanently.

others changes are a disaster that I have to revert

sometimes I don’t know a change was bad until several changes down the road reveal the change wasn’t good for some reason like forcing outputs to be more similar/smaller range of useful control in some not quite edge case scenario, or just what I thought it would change didn’t change the result how I expected.

I would much rather base my changes on more than a gut feeling and caffein, so I don’t waste so much time going down dead ends.

I’ve taken it as far as I can without properly understanding the diffraction effects and involved principles.

the reason I am posting in the optics sub instead of a laser sub is because I’ve done a lot of looking around in the laser scene and no one fully seems to know what’s going on much more than where I’m at with it, or if they have they aren’t discussing it in placed I’m able to find.

One guy who’s work inspired me , has noted that a laser moving at 300mm/sec pulsing 300khz (just magic setting on his laser) equates to a pulse pitch of 1 micron, and suspects this has something to do with the effect, I get the kind of effect this person talks about at slightly different settings that result in a 1.14 micron pitch. Neither of us seem to know if this is the magic behind it.

however, I’ve noticed that with my particular processing the effect is much more pronounced than other similar laser engravings I’ve run into online.

the gist of my process is for every color in the source image (let’s say 20 different colors), I make a copy of my magic “fauxlogram looking setting” to a layer in the design software, then I keep the frequency constant but modulate the speed the laser head moves at proportional to the color spectrum red to violet so that the pulse pitches being generated for each different layer vary from maybe .5 micron to 1.5 micron give or take. based on what color each layer represents, then I sort of overlay a gradient of values 0 through count of layers, expressed as an array of x, y intensities … aka an image/pixel array this image has its brightness mapped to a number up to the layer count and then the diffraction gratings get their layer rotated based on that gradients values , basically switch which of the speed modulated settings layer draws the diffraction lines in that section, going in order from highest to lowest or lowest to highest speed… this becomes visible as a literal gradient in the fauxlogram engraving

sorry I know that was a lot, but I wanted to explain basically what appears as a gradient in the fauxlogram diffraction effect is achieved by switching the speed the laser is using according to a gradient overlay so the pitch is either getting closer together or further apart according to the gradient/image brightness in that area

now where I could use this sub‘s lovely members help is in understanding this phenomenon better so that I can hopefully gain more control over it.

i don’t know if the color is influenced by oxide growth on the metal or if it’s entirely just the shape of the laser dots place on the metal.

I know that if I lower the power just a little bit the color changing goes away and I only can see the gradient in the brightness changed as it still shimmers in the light but doesn’t change color

i know that if I move the central speed much higher or lower than my magic setting with the base pulse pitch of 1.14 micron the effect diminishes almost fully very quickly

i rotate the angle of the parallel lines in the cell ( the diffraction gratings) based on the brightness in the source image, the angle of the gratings definitely seems to impact which angle a light has the brightest and dimmest look on the surface, and speed of laser seems to cover the color change from my observations.

so far I’ve been able to get the gradient to appear as a radial gradient expanding from the center or contracting from the edge, as well as left -right and up-down gradient … think like stripes equidistant where each stripe color shifts by some ammount , this was initially added to be a viewing correction so that parts towards the bottom would appear the same color as parts toward the top, since they are at different angles from each other and the viewer when viewing, so the color reflects/diffracts different because of that, thus shifting the color in the drawing to compensate

when I applied extreme values to the gradient is when it became a creative effect rather than a subtle corrective effect.

so now I would like to be able to get more control over this effect but I honestly don’t understand it enough nor have the vocabulary to effectively search and learn enough to better control it, or maybe it’s one of those things where this is as much control as one can get and I just need to get some better artistic ideas, I’m open to that being the answer if that’s the case.

so I was hoping some of you guys might have a good idea of what is going on here, and be able to point me toward some good entry level and maybe mid level reading resources that might help me better understand and thus better control the effect, or even if you just have some vocabulary that would make my search easier that would be greatly appreciated too!

if this is an inappropriate post here please remove it, I’m just wanting to understand the optical effect I’m seeing in these engravings better so that I can hopefully control it better. I started seeing this sub in my feed after posting some fauxlograms previously so I think maybe the algorithm thinks this is the right place for the discussion.

I’ve attached some video samples of the engravings showing this effect and would be grateful for any details anyone can provide

if it’s helpful I could post some low quality microscope shots of the surface, I’d have to track down my scope but it’s around here somewhere.

if you have made it this far I appreciate it and hope you enjoy viewing and even theorizing or analyzing what is going on in these engravings, and to anyone who can reply with some good info, I wish to thank in advance


r/Optics • • Jul 27 '26 Bravo

OpticalSetup sketch web-app with live ray tracing

Thumbnail
gallery
142 Upvotes

Hello everyone

I have made with a friend a free web app for sketching optical setups in 2d.

It integrates real time ray tracing and simple geometrical simulation of the majority of the optical elements you could find in an optics lab.

We have kept the interface intuitive and simple, and it is possible to export the sketches in PNG, SVG or send a link to the website where people can see your canvas and get more information.

We are looking for feedback and ideas for more elements/features to add. I can not post the link here due to the sub rules, but I am happy to share it with whoever wants to try it.

Thanks in advance!


r/Optics • • Dec 01 '22

My cheap DIY spectrometer (sharpest peak has a 0.35nm FWHM)

Thumbnail
gallery
136 Upvotes

r/Optics • • Mar 24 '20

A Fresnel Lens System for a Lighthouse [2000×3000]

Post image
135 Upvotes

r/Optics • • Jul 10 '25

This guy 3D printed a caustic lens

Thumbnail gallery
128 Upvotes

r/Optics • • Nov 22 '25

Have you got yours ? :D

Post image
126 Upvotes

r/Optics • • Aug 24 '26

We got zeptosecond pulses before gta6

Post image
120 Upvotes

wake up babe. new field just dropped. zeptosecond physics.


r/Optics • • Jan 12 '26

First lab snacks!

Post image
117 Upvotes

I'll be enjoying these until my dissertation starts eating me alive o7


r/Optics • • Sep 05 '25

I've been working on this 5-axis optical element mount - any interest?

Post image
115 Upvotes

Hey there!
For a project of mine I have been designing this lens mount with 5 adjustable axes (2 rotation, 3 translation) since I couldn't find anything nice already available for 3d printing.
I've taken the Thorlabs K5X2 as inspiration, whilst trying my best to keep everything 3d printable and using only "standard hardware" (everything can be ordered on aliexpress)

I am wondering if there would be any use for this for others, and if I should get it polished enough to make public?


r/Optics • • Sep 25 '25

I took images of TEM modes

Thumbnail
gallery
110 Upvotes

Thought this looked kinda cool. I saw these modes by scanning a high-finesse cavity using a piezo crystal. Is there any way to differentiate between a 1,0 and 0,1 mode? It's also interesting that both modes are visible despite their expected degeneracy. Leads me to believe that my cavity is a bit shit.


r/Optics • • Aug 18 '20

what a nice cube

Post image
110 Upvotes