If you spend enough time reading about lenses on places like 35mmc, you quickly realise that the numbers engraved on a barrel only tell part of the story.
On paper, the classic Canon 50mm Dream Lens, the Leica Noctilux-M ASPH, and the Nikon NIKKOR Z Noct all open to f/0.95. Yet anyone who has looked at pictures from them knows they draw the world completely differently. The vintage Canon rangefinder design twists background chandeliers into bright-rimmed swirls with a dreamy halo. The Noctilux balances a fourteen-element, eleven-group double-Gauss derivative inside a compact rangefinder barrel that clips corner discs to 49% roundness wide open. The modern Z Noct keeps highlights calmer and more uniform across the frame.
Every traditional depth-of-field calculator I could find online ignored all of that. They treat every lens as a mathematically perfect thin lens: a single flat plane that bends light with zero aberrations, zero barrel length, and zero glass thickness.
I wanted to see if I could build something closer to reality: a free, interactive tool running right in the browser where you can see those differences on a 3D scene, look inside the lens barrel, and compare formats from small sensors and full frame up to medium and large format.
That project became https://lenssimulator.photo

How a Weekend Coding Project Turned into a Patent-Digging Obsession
By day, I am a software engineer near Zurich, Switzerland. Outside of work, I spend my free time shooting landscapes and nature—for many years on full-frame DSLRs and digital medium format, and over recent years increasingly back on medium-format film with Mamiya cameras.
Last year, I wanted a practical project to learn browser graphics programming using WebGL and Three.js. My initial idea was simple: build a visual depth-of-field and framing simulator so photographers could compare two focal lengths side by side without staring at spreadsheet tables.
That first version used standard thin-lens math. It was useful for checking framing and perspective, but as someone who cares about how real glass renders, it felt a bit sterile because every lens of the same focal length and aperture looked identical.
Then it hit me: camera manufacturers publish the exact optical recipes of their lenses in public patent filings.
Inside optical patents from Leica, Nikon, Canon, Zeiss, Voigtländer, Sony, Fujifilm, and Soviet GOI archives, you find the full prescription table: the radius of curvature of every glass surface, the center thickness of every element, the air spaces between groups, the refractive index and Abbe number of each glass type, and the exact position of the aperture stop. Over the past month, my evenings and weekends disappeared into feeding real optical patents into a custom browser ray-tracer.

What Happens Inside the Barrel: Cat’s Eyes, Blades, and Spherical Aberration
When you switch a camera in the simulator from Ideal math to Real lens and open the Optical X-Ray drawer underneath the portrait, you can watch rays trace through the actual glass elements in real time as you focus and stop down.
Three physical traits immediately jump out—the exact things we usually describe with words like character or swirl:
Mechanical Vignetting and the Cat’s Eye Swirl
Why does a Helios 44-2 58mm f/2 or a fast rangefinder prime swirl wide open?
In the center of the frame, light enters the front element straight on, so the aperture stop forms a full circle. Toward the corners of the frame, light enters at a steep angle and the front and rear rims of the lens barrel clip the top and bottom of that oblique ray bundle. On an f/1 lens trace, that clipping squeezes the mid-frame disc to 82% roundness and turns the corner highlight into a wedge with 59% roundness and -1.1 EV falloff. On the Helios wide open, corner highlights drop to 61% roundness with -1.3 EV corner falloff.
In the interactive bokeh guide at https://lenssimulator.photo/bokeh you can drag the aperture slider and watch the physical iris pinch closed inside the cross-section diagram. Stop the Helios down to f/4, and the aperture blades become the narrowest bottleneck for those oblique rays: barrel clipping vanishes, the pupil halves to 14.5 mm, corner roundness jumps to 95% (-0.1 EV), and the eight rounded blades take over the shape of the disc. Or switch to a modern telecentric design like the Nikon NIKKOR Z Plena, and you see a 66.0 mm entrance pupil that stays 100% round (0.0 EV) right into the extreme corners wide open.

Focus Breathing at Portrait Distances
Because the ray-tracer moves the actual focusing groups specified in the patent, it also reveals focus breathing—how a lens’s effective focal length changes as you focus closer. When comparing the Noctilux against the Leica APO-Summicron-M 90mm f/2 ASPH (five elements in four groups), the simulator shows the Noctilux breathing to an effective 53.4 mm at a 98 cm working distance (with a 3.1 cm sharp zone and a 53 mm pupil) while the Summicron breathes to 95.2 mm at 176 cm (with a 6.5 cm sharp zone, a 45 mm pupil, and 99% corner roundness).
Spherical Aberration and Edge Glow
Not every blur disc is lit evenly across its surface. Wide open, the Helios pushes light energy toward the perimeter, creating a bright-rimmed disc that turns soft-edged once stopped down. Conversely, an under-corrected fast prime concentrates light in the center with a feathered edge, while heavily corrected modern designs render an even, neutral disc.
Stepping Back with Longer Lenses vs. Moving Up to Large Format
One of the most useful ways to use the simulator is locking subject framing (such as Headshot or Upper body) so the virtual photographer automatically steps back as focal length increases.
If you keep a portrait headshot the exact same size on full frame and walk backward through the catalog:
At 0.7 m with the Canon RF 35mm F1.4 L VCM, the wide angle captures both background chandeliers fully inside the room with modest blur circles.

At 1.0 m with the Canon Dream Lens or 1.1 m with the Z Noct, stepping back blows the chandelier bulbs into huge, overlapping spheres.

At 1.7 m with the Canon RF 85mm F1.2 L USM and 2.6 m with the Canon RF 135mm F1.8 L IS USM, the longer working distance flattens facial perspective and compresses the background so strongly that only the inner edges of the chandeliers remain in frame.

And if you want to test extreme telephoto compression outside of portraits, you can switch to the wildlife scene and load up the Canon RF 800mm F5.6 L IS USM at 6.8 m.

Where things get really fun for film shooters is comparing full frame against medium and large format. In an upper-body comparison between the Helios on full frame (2.3 m camera distance, 34 degree background field of view, 29.0 mm entrance pupil, and 28 cm sharp zone) and the legendary Kodak Aero Ektar 178mm f/2.5 (Patent US2343627A, seven elements) on Large Format 4×5 (2.1 m camera distance and 35 degree background field of view), both cameras frame the person the same way from roughly the same spot. Yet the Aero Ektar’s massive 71.2 mm entrance pupil slashes the depth of field down to 9.9 cm and melts the concrete wall behind the subject in a way no small-format lens ever could.
What It Doesn’t Do (Yet)
A browser simulation is never a substitute for loading film into a camera and going outside. While patent ray-tracing captures the geometry of the glass—focal length, focus breathing, mechanical vignetting, pupil shape, and spherical aberration—patents do not tell you about vintage single-coating flare, balsam separation, aspherical molding rings, or sample-to-sample tolerances.
Right now, the catalog has 278 real patent profiles, alongside interactive visual guides for bokeh at https://lenssimulator.photo/bokeh , depth of field at https://lenssimulator.photo/depth-of-field , lens compression at https://lenssimulator.photo/lens-compression , and crop factor equivalence at https://lenssimulator.photo/crop-factor .
The tool is completely free, needs no login, and runs in any desktop or mobile browser at https://lenssimulator.photo
If you spot a quirk, want to compare your favorite vintage rangefinder or medium and large-format setup, or happen to have the patent number for a classic lens that is not in the catalog yet, I would love to hear from you in the comments or at **@***********or.photo
About the author
Peter Wey is a software engineer and landscape photographer based near Zurich, Switzerland. He shoots digital and medium-format film and is a member of the Stocksy United cooperative at https://www.stocksy.com/peterwey. You can try his optical simulator at https://lenssimulator.photo
Share this post:
Comments
No comments found