Skip to main content

ZPL Macro: Plotting real entrance pupil in 3D layout.

  • May 23, 2022
  • 2 replies
  • 1136 views

Michael Cheng
Zemax Staff
Forum|alt.badge.img+2

For wide angle system, it can be interesting to visualize the position and the size of a real entrance pupil in different field angles. This macro will compute with real ray tracing real entrance pupil information for different field angles. It then adds the entrance pupil as a dummy surface and each “field” entrance pupil is defined into a configuration. 
The macro assumes axial-symmetric, only y field and the field angle in object is positive. Ray-Aiming should be turned on to correctly run this macro. It may only work with field type Angle and Object Height.

How to use:  Just run the macro, and open 3D Layout with showing central field and all configs.

 

Click here to download

Date Version OpticStudio Version Comment
2018-02-26 2.0 - Fixed some issues by calculate the pupil points before
adding any config or surface (Michael Cheng)
2018-02-03 1.0 - Creation

2 replies

John.Hygelund
Fully Spectral
Forum|alt.badge.img+1
  • Fully Spectral
  • 72 replies
  • June 2, 2022

Worked for me. Very handy macro, I’ve always struggled to visualize wide angle entrance pupils in my head... Thank you @Michael Cheng 


  • Single Emitter
  • 1 reply
  • June 16, 2022

在这之前还没仔细想过鱼眼镜头的各个视场的入瞳,你这一张图,让我脑袋里的入瞳具象化了。