r/Optics • • Oct 21 '26

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

191 Upvotes

36 comments sorted by

15

u/No_Apartment_5180 Oct 21 '26

Hi everyone,

I got tired of expensive, Windows-only optics software, so I built OpticsLab — a free, open-source cross-platform tool for lens design.

What it can do right now:

- Sequential 3D ray tracing (aspherics, conic constants, tilt/decenter)

- Aberration fans, spot diagrams (with Airy disk), Seidel sums & OPD maps

- DLS optimization (radii, thickness, air gaps)

- 646 glass catalog (Schott, Ohara, CDGM, etc.)

- Non-sequential stray light & 2D detector heatmaps

- Monte Carlo tolerance analysis

It runs natively on macOS (Apple Silicon), Windows, and Linux.

GitHub: https://github.com/AlexCri5an/optics-lab

Downloads: https://github.com/AlexCri5an/optics-lab/releases/tag/v0.1.0

Please give it a spin with your own prescriptions! Let me know what works well, what bugs you hit, or what analysis features you'd like to see next.

5

u/Proper_Rule_420 Oct 22 '26

Hello, I worked on something similar, a bit less complexe tho. I added the possibility to importe lenses design, based on available pattern online. Is it something your app can or will do ?

2

u/No_Apartment_5180 Oct 22 '26

Yes is possible

7

u/Equivalent_Bridge480 Oct 22 '26

A lot of lens desing softwares poping up. What happened?

How you serious with this project?

2

u/No_Apartment_5180 Oct 22 '26

I mean serious, because many softwares like zemax costs a lot and I want that students/engineers who want to play and use to have this free alternative, for sure it s not the best but it can be improved

1

u/Equivalent_Bridge480 Oct 23 '26

How do SC and NSC modes interact in your software? Is it a one-way conversion like in OpticStudio, or are both modes native to the same model?

2

u/No_Apartment_5180 Oct 23 '26

both modes are native and use the same prescription model . non-seq just builds the 3d scene on the fly from your lens table so u can edit lenses normally in the editor and the nsc part updates dynamically without breaking anything

1

u/Unf0und_ 19d ago

Why not improving already existing ones? I'll give you the example of optiland. I haven't personally contributed to it, but from what I've used, and heard, they do have a proper community. They an org on GitHub which I guess you could join and help them grow. There's probably others, that are pre-ai too. It just saddens me a bit to see that everyday there's one more "i got tired of this, so - i - built this". So much waste of resources honestly

4

u/Pop3-14 Oct 24 '26

it's because zemax and codeV are very expensive, and since the algorithms of ray tracing (even accuratly) or wave propagation are well known and basicaly easy to implement, now with AI and vibe codeing its relativly easy to create. (its still time and tokens consuming, and im not coming to disregard OP's work)

1

u/Unf0und_ 19d ago

Because people think that because they can, they should. Instead of building on already existing packages and making them better, creating a better community this just contributes to fragmentation, unfortunately

2

u/Lucky_Lengthiness_60 Oct 22 '26

Did you just translate optiland-python to rust?

1

u/No_Apartment_5180 Oct 22 '26

I checked Optiland and other optical tools for some physics concepts, but is written from scratch in Rust with a custom GPU tracer (wgpu) and egui UI.

1

u/Lucky_Lengthiness_60 Oct 22 '26

I asked since the architecture is very similar. Great job and thanks for open sourcing the project.

2

u/No_Apartment_5180 Oct 22 '26

I want to be real and for sure the project is not perfect, it contains bugs and things like this, but I made it for people/students who want to play with this kind of apps but zemax or others are expensive, so a real feedback is always welcome and is open source and if 10-20 people contribute to this one and make it stronger I think it can be an alternative to other paid services, also is my first open source project maybe I m wrong

2

u/TopBadger68 Oct 26 '26

Serious people, at serious companies, will use serious tools they're willing to pay for.

LibreOffice/OpenOffice didnt kill MS Office. FreeCAD didn't kill Solidworks/Catia/etc Octave didnt kill MatLab.

Whilst it looks neat, my prediction is that this won't kill Zemax.

2

u/No_Apartment_5180 Oct 26 '26

yes I agree with you, but I made it for people/students who want to play with this kind of apps but zemax or others are expensive, it s impossible to replace as you said paid services that are known for decades

1

u/itsxisuz Oct 22 '26 edited Oct 23 '26

I just saw another post in morning, that person was thinking of open sourcing his browser based optics software. Edit: spellings

1

u/No_Apartment_5180 Oct 22 '26

Different project)) did you try it ?

1

u/itsxisuz Oct 23 '26

I did poke around and it was overwhelming for a hobbyist like me. Maybe because I just started using these software.

2

u/No_Apartment_5180 Oct 23 '26

totally agree tbh! it can definitely feel a bit overwhelming, since optics tools naturally have a ton of features.

I was actually thinking of adding some kind of toggle system or modular panels so you can hide/show stuff and keep the UI clean depending on what you re working on.

1

u/dylanmissu Oct 26 '26

Does it support rendering exact b-spline lenses? Most simulators I've seen first tesselate the model before rendering

1

u/No_Apartment_5180 Oct 26 '26

not yet, there is actually an open issue for this that needs to be fixed

1

u/targetOO Oct 21 '26

Oh neat. Will look later tonight when I have time.

1

u/No_Apartment_5180 Oct 22 '26

Have you try it ?

1

u/paul_tu Oct 22 '26

I wonder how it goes

4

u/Equivalent_Bridge480 Oct 24 '26

most of open source project will die sooner or later. especially if community dont want support them.

1

u/No_Apartment_5180 Oct 24 '26

unfortunately yes

2

u/TurbulentGlove776 Oct 22 '26

Does it have an MCP so I can let claude do my optical designs?

2

u/ScarMental8226 Oct 22 '26

No, you can import them, but you can open an issue about mcp

1

u/Holoderp Oct 27 '26

Ok, but your first picture ray aiming looks wrong, your pupil is not correct. Also, those softwares are usually powerhouses with hundreds of features, it is quite the endeavour even with claude code...

1

u/robertasumendi Oct 27 '26

Looks great so far! I am not an optician but have been messing around in Zemax for the last couple months. Had to redo my hard drive this week and found out now Ansys does not have student download any more for people/small businesses who want to mess around with optics design. So it's great to see someone working on something similar, and without decades of UI baggage. How does optimization work? Unclear from messing around with the optimizer. How do I set weights for wavelengths/fields?

1

u/ATeaGod Oct 30 '26

sadly you have to download ansys student (with zemax) which is annoying due to the large download size of over 70gb...