Skip to main content
Solved

Converting black box lens model to non-sequential version


Hello,

I'm using the following knowledge base article to convert a lens design file (sequential) into it's non-sequential alternative:
https://customers.zemax.com/os/resources/learn/knowledgebase/how-to-convert-sequential-surfaces-to-non-sequenti

Does it also work on black box models? Thank you in advance!

 

Best answer by Angel Morales

Hi Ruxandra-Marina!

Currently, Black Box files are not supported in Non-Sequential Mode. They will just be left out of the conversion altogether. So, the only workaround is to see if you can obtain the actual surface information for your black box portions of your system.

However, this specific functionality has been brought up by our users before, so I will go ahead and add your vote to the associated feature request. I have to mention here that a feature request is not a guarantee that the feature will be implemented in a future release, as they are weighed based on impact, functionality, and difficulty to implement. Still, we appreciate all feedback as it helps us shape the future of OpticStudio!

Thanks again -- please feel free to ask any more questions as they come up!

- Angel
View original
Did this topic help you find an answer to your question?

29 replies

ZachDerocher
  • Single Emitter
  • 1 reply
  • February 10, 2025

A very basic implementation of the suggested API-based solution above has been posted at the link below. 

Create Ray File from Sequential System (ZOSAPI Interactive Extension) | Zemax Community


mocquin
Ultraviolet
  • Ultraviolet
  • 35 replies
  • January 17, 2025

+1


  • Single Emitter
  • 1 reply
  • April 30, 2024

Please add my vote for this feature. It would be useful in NSC.


Chao_OVT
  • Single Emitter
  • 1 reply
  • April 12, 2023

Hi all,

Does the 2023 R1 version has this feature already?


Liwei Hua
  • Single Emitter
  • 1 reply
  • September 23, 2022
Ruxandra-Marina.Florea wrote:

Hello,

Brian.Catanzaro wrote:

I have dealt with this concept using the ZOS-API.  There are several architectures for code to consider.  However, consider the following:

  • Open your sequential blackbox model in one instance of the OpticStudio
  • Open your non-sequential model in another instance of OpticStudio and create a detector to represent the entrance / exit pupil of your blackbox lens
  • Start rays in the non-sequential model, detect them at the entrance pupil of your sequential model
  • Pass these to the sequential model and trace them
  • Receive the rays from the sequential model exit pupil and feed them to your non-sequential model

What you will get:

  1. Rays that make sense in the sequential model will be faithfully represented in the non-sequential model
  2. Rays that are terminated in the sequential model will be terminated in the non-sequential model.

What you won’t get:

  1. Stray light
  2. Ghost reflections
  3. Fresnel reflections or coating issues

However, you wouldn’t get any of these in your original blackbox model anyway; these constructs don’t exist in most sequential models.

 

Hi Brain, 

Could you please expand more on how to “

  • Start rays in the non-sequential model, detect them at the entrance pupil of your sequential model”

How to detect the non-sequential model created rays in the sequential mode?

Thanks!


kseniia_zavatskaia

Hi all,

Please, add my vote to the feature request too. As long as the black box fulfills its function to simulate the system’s properties, it’s useful.


A NSC lens system inside an absorbing black tube, with an entrance and exit port would be useful for me as well!


Forum|alt.badge.img

Thanks Brian,

I think that is similar to what I was thinking, but it had not occurred to me to separate the problem into three parts (NSeq>Seq>NSeq) as you suggested.  I think doing that will accomplish what I need.  Thanks for the help!

Charlie


Brian.Catanzaro
Fully Spectral
Forum|alt.badge.img+4

I have dealt with this concept using the ZOS-API.  There are several architectures for code to consider.  However, consider the following:

  • Open your sequential blackbox model in one instance of the OpticStudio
  • Open your non-sequential model in another instance of OpticStudio and create a detector to represent the entrance / exit pupil of your blackbox lens
  • Start rays in the non-sequential model, detect them at the entrance pupil of your sequential model
  • Pass these to the sequential model and trace them
  • Receive the rays from the sequential model exit pupil and feed them to your non-sequential model

What you will get:

  1. Rays that make sense in the sequential model will be faithfully represented in the non-sequential model
  2. Rays that are terminated in the sequential model will be terminated in the non-sequential model.

What you won’t get:

  1. Stray light
  2. Ghost reflections
  3. Fresnel reflections or coating issues

However, you wouldn’t get any of these in your original blackbox model anyway; these constructs don’t exist in most sequential models.


Forum|alt.badge.img
Mark.Nicholson wrote:

I think I should point out why we don't support the black box in non-sequential mode. 



In NS mode, light can hit any of the components in any order, and it's really impossible to hide the optical construction of the black box. You could easily trace rays in a sphere around the NS and deduce the number of components, radii, thicknesses, glass etc.



The only way we could support an NS black box is to imagine the lens system inside an absorbing black tube, with an entrance and exit port. Light could only enter the black box from the entrance port, and only exit it from the exit port. That's the only way we could reasonably preserve the IP of the lens system.



With that caveat, how many people still find this a useful feature?

I would find that approach useful for modelling systems with commercial lenses.


Please add my vote too. Thanks!


Forum|alt.badge.img
  • Monochrome
  • 5 replies
  • November 10, 2021

This could be helpful for me today even if there was a black tube.  Please add my vote.


Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+2

Hi Henrik,

Thanks for your post.

I have added your name to the feature request.

Best,

Csilla

 


Please add my vote as well.


Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+2

Hi Steve,

Thank you for your comment. I have added your vote to the the feature request.

Best,

Csilla


Forum|alt.badge.img+2
  • Infrared
  • 7 replies
  • October 7, 2020

A NSC lens system inside an absorbing black tube, with an entrance and exit port would be useful.


Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+2

Hello All,

Thanks for your feedback. I have added your votes to the feature request.

Still, please keep in mind that feature requests are weighed based on impact, difficulty to implement, and the number of users who request it. A request is not a guarantee that the feature will be added to a future release.

However, these feature requests are very important to us and shape the future of OpticStudio, so we appreciate your input.

Thank you,

Csilla


Hello,

This feature would be useful for me too. I have a black box model that I want to use together with a source file, so I can't really do that in sequential mode. So even with the limitation it would still be very nice to have that.

Best,

Chiara


  • Single Emitter
  • 2 replies
  • April 17, 2020
Hi all, 
I realized this black box topic in non-sequential mode has been a few months. Just wonder if it has been added and if not, please add my vote.  I do find it would be useful. 

Thanks.

Sean Turner
Fully Spectral
Forum|alt.badge.img+1
  • Fully Spectral
  • 101 replies
  • December 18, 2019
I could see this being useful as well. I've done some analysis in NSC for a system where I wanted to swap out the microscope objective. It would have been nice to just insert a black box object as one is able to insert CAD components and such.

This would still be useful, aslong as it allows for the purpose of the device to be tested and used in NS.

Hello Mark,

Thank you for the additional information. I would still find this feature useful - I don't see the absorbing black tube being a constraint in my current experiments.

However, in the absence of such a tube, can't specific rays be traced with the help of filters? Unless your comment was more on the fact that the "confidentiality" of a black box would no longer be supported without including the absorbing black tube.

Ruxandra

Mark.Nicholson
Luminary
Forum|alt.badge.img+3
I think I should point out why we don't support the black box in non-sequential mode. 

In NS mode, light can hit any of the components in any order, and it's really impossible to hide the optical construction of the black box. You could easily trace rays in a sphere around the NS and deduce the number of components, radii, thicknesses, glass etc.

The only way we could support an NS black box is to imagine the lens system inside an absorbing black tube, with an entrance and exit port. Light could only enter the black box from the entrance port, and only exit it from the exit port. That's the only way we could reasonably preserve the IP of the lens system.

With that caveat, how many people still find this a useful feature?

Add my vote to this please. It will be very useful.

Forum|alt.badge.img
  • En-Lightened
  • 157 replies
  • December 9, 2019
@ Zain Ali - Ive added your vote as well. 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings