587 points · by luu · 4y ago · 182 comments
This particular design is from the iPhone 7 (or, more precisely, my guess is that it's from the iPhone 7 due to both the date of the patent [1] and due to the elements matching up with marketing images of the iPhone 7), which is 6 years old now, but I think it's broadly still representative of modern smartphone lenses. In the past 5 years or so, advancements in phone cameras have come mostly in better sensors, far better image processing, and adding more cameras, but the basic principles of the compact ultra-aspherical lens design seem to still be in place.
As an example, here [2] is an exploded view of the iPhone 6's lens setup, and here [3] is an exploded view of the more recent iPhone 12's lens setup. The iPhone 12 gained an extra element, but they both use similarly weird ripply elements and you can see the clear lineage between the two phones.
Also, as mentioned in the tweet thread and elsewhere in the comments here, Kats Ikeda has an excellent, incredibly detailed and thorough explainer on mobile phone lens design [4]. I don't actually know a whole lot about the optics field; I'm just dabbling as a hobbyist from a computer graphics perspective. Kats Ikeda's site is a much better resource than my Twitter posts for learning about this stuff.
[1] https://patentimages.storage.googleapis.com/7e/4e/3f/4e88d65...
[2] https://pbs.twimg.com/media/FMyGm6IVkAY77eY?format=jpg&name=...
[3] https://pbs.twimg.com/media/FMyIbszVQAQhMQ_?format=jpg&name=...
[1] https://pixar-community-production.s3.us-west-1.amazonaws.co...
[2] https://petapixel.com/2020/10/22/this-cheap-projector-lens-c...
https://en.wikipedia.org/wiki/Achromatic_lens
https://www.dpreview.com/forums/post/61074908 https://photography.tutsplus.com/tutorials/here-is-what-to-l...
https://www.spiedigitallibrary.org/journals/journal-of-appli...
The problem is that it is extremely difficult to manufacture surfaces with optical quality that are not spherical. Even today, aspheres tend to be more expensive than spherical lenses and have significantly worse surface quality. This is the price you have to pay if the objective has to fit inside a phone.
>I love the word Anastigmat. That means that “Anastigmat” can be translated as a “non-non-stigmatic”. I guess “Stigmat” didn’t really have a good ring to it. Nowadays, almost all lenses have the basic aberrations corrected, so we don’t have the need to call them Anastigmats anymore. Sad.
Optics equations are nonlinear (and generally nonconvex). Global optimization for nonconvex functions has not existed since the 60s. Even fast function eval (for brute force solutions) has not existed since the 60s.
How they manufacture these is what I'd like to know.
https://en.m.wikipedia.org/wiki/Barlow_lens https://en.wikipedia.org/wiki/Achromatic_lens
https://www.zemax.com/blogs/news/future-of-cell-phone-camera...
Coarse manufacture is fairly simple - you can just press out plastic blanks. The tricks are fine shaping and polishing. You can also use resin:
https://jp.mitsuichemicals.com/en/techno/feature/feature06.h...
We’re either doing high school wrong or this person has seen their fair share of top schools in their lifetime.
In my school all of that equipment was broken, lost or stolen years before I got there.
I have high end kit (and some semi-pro lighting) which I love to use, but I now use a secondhand iPhone X, an Apexel teleconverter lens and a cheap Ulanzi grip, and I really enjoy this combination for its immediacy.
The higher end kit is now increasingly used in novel, DIY ways, because carrying a phone has taught me that gear should be used for its strengths.
It really boils down to this. A lot of people have enough pocket space to need no bag most of the time, so having one just for the camera is extra grating.
What suprises me the most is that on the other side, smartphone photo UI hasn’t progressed much from the early days. A lot of my shots that fail on smartphone are because of the controls. The cycle of zooming/framing then locking focus and/or exposure is still a pain, adjusting exposition, forcing an ISO setting that could result in a bad photo is out of the window. I ended up bringing an old DSLR on random walks when I might want to capture stray cats and don’t care about the extra bulk.
All of these are easier to do with third party apps, but those aren’t available on quick access. And taking photos out of quick access is so slow. A DSLR is ready instantly from power down, we’re happy if the phone instantly unlocks.
Sensors these days are phenomenal.
Last time I lugged a DSLR around all it did was give me a sore neck.
That's why, if you're super concerned with low light sensitivity, you go with fixed-focal length prime lenses. Not having to support zoom means far fewer lens elements through which to pass light.
Reminds me of this surprising little tidbit from E. T. Jaynes' 1991 paper "Theory of Radar Target Discrimination" (https://bayes.wustl.edu/etj/articles/craddis.pdf)
One might then think naively that we should take equal care to match the receiver to its transmission line so that all the energy captured by the receiving antenna is actually delivered to the receiver. However, this is not the case for a good receiver.
[...]
Quite generally, in order to deliver the maximum signal/noise ratio at its output, an ideal receiver must reflect all the energy incident up on it. It is only in the limit of an infinitely bad receiver, in which all the output noise is generated internally, that matched input impedance becomes the condition for maximum signal/noise ratio at the output. Actual receivers are somewhere between ideal and infinitely bad, and so they perform best when partially matched, so that a part of the incident energy is reflected and radiated back out the receiver antenna. In fact, an ideal receiver does not run on energy at all, but reflects back all the energy incident on it!
[...]
This fact surprises many people on first hearing; but we note that it is so general that it remains true in quantum theory, at optical frequencies where hf >> kT and the Nyquist noise formula no longer holds. For initiation of a photo chemical reaction it is not necessary that the light energy be absorbed. For example, it might be thought that the eyes of animals adapted to seeing in the dark would have pupils that act as perfect black bodies, absorbing all the incident light energy. On the contrary, it is a familiar fact that the animals with best night vision have eyes that reflect the incident light strongly, looking like search-lights in the dark.
To my understanding, there is still only a single set of moving lenses in an iPhone 13 lens.
The point still stands though. But 6 instead of 8 years.
There have been experiments with this over the years. Minolta coined the phrase for a 3x zoom in the DiMAGE X series, starting twenty years ago, and as I recall they were the first to use this technology in a consumer camera:
Hopefully, a general overview of the 100s of lenses they've found/made the models for, alongside how modern optics fail to be accurately modeled by the polynomial model of optics...
Is there a downside to using plastic lens elements compared to glass, in terms of image quality?
If there isn't a downside, could lenses for SLRs/mirrorless cameras also use such elements?
Edit: It sounds like aspheric lens elements might be made from plastic in SLR lenses. But also I found that plastic might not be used for outer lens elements as it scratches easily
Designs of aspheres are typically created via Zernike Polynomials. If you have access to an Optical Design program such as Code V, Zemax, OSLO, ASAP, HEXAGON (Raytheon), or Quadoa or equivalent one can spit out something called a SAG Table which takes in account the Zernike Polynomials and allows for much easier time when it comes time to produce either mold or the actual aspheric curved surface that's going to be machined.
Yes there is a downside to using plastic, namely chromatic aberration due to lack of index matching. Other issues are limitations on the bandwidth of transmitted light. Furthermore, most "plastics" used for cell phone lenses have historically been glass-like plastics such as PMMA (polymethylmethyl acrylate) or Zeonex. Most of these types of materials however are extremely sensitive in the UV. The plastic lenses also don't do well with wave front correction or even with just shaping light. To make matters worse, coating plastic is usually problematic as it doesn't do well with higher temperature coatings which tend to aid in not only anti-reflective, but also color correction and glare reduction, i.e. PECVD or other types of enhanced plasma coatings.
Using glass and by glass I mean a crystalline glass, perhaps something closer to a high grade fused silica or if budget permits sapphire or some type of chalcogenide, one gains better modeling control of the index of refraction (abbe number, glass melt, etc..) and also overall optical sensitivities and STOP (structural, thermal and optical) performance parameters. Something else to consider is the coefficient of thermal expansion between glass and metal can more easily be optimized. But all this comes at a cost.
The reason for plastic typically over glass is because of procurement and manufacturing cost. Plastic can have molds machined and have tolerances held rather tightly. Because of this it becomes much easier to pop out lenses. As of late holographic replication and lithographic roll to roll processing has also made making plastic optics a more cost effective option. This is a form of additive manufacturing and actually is probable where things are headed.
Manufacturing "glass optics" especially for aspherical optics are dependent upon first ensuring the substrate is pure and that the glass melts are consistent. In most cases glass must be thermal cycled, typically annealed to ensure and maintain rigidity. Rough machining is then performed essentially hogging out the material, in some cases only yielding between 60 to 70% of useable material. Finally and typically either some type of computer controlled polishing, MRF (magneto rheological finishing) or single point diamond lathing of the crystalline glass is performed. The final finishing steps are extremely costly as a combination of advanced metrology (i.e. MTF, interferometry, point-cloud analysis, non-contact surface analysis, various forms of spectroscopy) has to be performed to ensure that said advanced fabrication has either optimized surfaces for wavefront performance by either optimizing or in most cases eliminating mid-spatial frequencies in the form for micron to nanometer level peaks and valleys, all the while not changing or sacrificing the size and other physical dimensions and also preserving the most sensitive clear aperture (i.e. useable and functional area of the lens). It can be quite a time consuming process.
TLDR; Glass is better than Plastic, but is more costly to manufacture at scale, unless volume and market acceptance can drive the cost down.
https://www.bhphotovideo.com/explora/amp/video/buying-guide/...
Even more amazing is how they designed very complex lenses in the 50's and 60's essentially by hand. And those designs have stood the test of time and have barely changed. Compared to what modern lens designers have available to them, I just find it mindblowing how the designers then could come up with these things.
It's funny. The 1970s Sony Trinitron CRT TVs are what inspired Steve Jobs to make the Apple II case, and here they are working together, at the highest end of technology, many decades later.
But as the linked thread says, apple designed the lens itself (as it has a patent on it, which is apparently common?)
I am curious what the Samsung lens system looks like given it has real optical zoom
https://www.dpreview.com/files/p/articles/8346943838/iPhone_...
Are you sure about this?
The last point-and-shoot camera I owned I bought around 2010, and other than zoom, my smartphone gives much better results. But then I met someone with a new hobby-level Panasonic point-and-shoot camera and I was flabbergasted at the quality of the photos she gets out of it. I tried taking some pictures with it and compared to my smartphone they all looked they belonged in a magazine. Smartphones have a ton of processing power and sensor quality packed into a small package, but I think it's still hard to outperform a half-decent lens and good quality sensor that are much, much larger, and it seems like point-and-shoot cameras have gotten really good.
It’s the bottom end of the market that’s been completely made obsolete, and as the quality gap shrinks there are also less people that want to carry / spend money on two devices.
Here is what I mean:
Smartphone cameras usually have a pretty wide field of view. The complex shapes are required in order to compensate for the aberrations caused by the large angles between the optical rays and the lens surfaces.
It would be really cool to seen an animation of this showing a sweep of the approach angle from one side of the sensor to the other.
- Chrome: 79% - Firefox: 82% - Safari: 81%
I feel like this gives a better insight into the current state of things
Stars: https://www.macrumors.com/2021/10/10/amazing-night-sky-photo...
Street light: https://cdn.vox-cdn.com/thumbor/R51UlZi7g1UPq7b9Be05nWfOP_o=...
I have the 12 and it multiplies any tiny source of light in dozens of fake lights.
The street light I;m referring too is much darker than this: a dark street with a string of lights. All the lights will get multiplied as fake lights.
In other words, they were shot on an iPhone. And processed there too, incidentally. What's to "c'mon" about?
Uh, yeah, that’s standard process for astrophotography. Not at all a “c’mon” moment.
It’s still extremely impressive that a smartphone camera can do this. I say this as someone that does a good bit of astrophotography as a hobby.
Stars example: https://www.macrumors.com/2021/10/10/amazing-night-sky-photo...
Street light example: https://www.cnet.com/tech/mobile/iphone-13-pro-vs-12-pro-max...
I have the 12 and it multiplies any tiny source of light in dozens of fake lights.
The street light I;m referring too is much darker than this: a dark street with a string of lights. All the lights will get multiplied as fake lights.
- Not a software developer. Obviously.
https://www.pencilofrays.com/lens-design-forms/#mobile has a much more in depth discussion on the how and why if the lens system design (someone referenced this in a reply to the linked thread)
A Taiwanese factory northwest of Dhaka https://www.youngoptics.com/ makes the lion share of molds for plastic lenses worldwide.
YoungOptics used to make them for Sony too. I don't know if it's still the case today.
Today's iPhone optics astonish and impress me: A lens built with over a half-dozen aspherical elements. Coordinated imaging with multiple cameras. Wow!
Yep. And the same is true of modern "prime" lenses, which appear more like incredibly optimised non-zooming-zooms than the traditional prime recipes we are familiar with from textbooks.
A side note: thank you thank you thank you for The Cuckoo's Egg.
As a Brit I would ordinarily say that the reason I am a tech guy is the ZX Spectrum or the BBC Micro, but I am not sure my life would be the same in a much bigger way without your book.
At 15 or 16 in early 1990 I was sure I wasn't going to university; I was sure I didn't belong there. A friend of my mother's suggested your book to her as something I should read, and I received it as a birthday present.
Over time I have come to understand that this recommendation was extraordinarily shrewd. Not just about the tech aspect, or the internet community aspect, or the thrill of the chase aspect, but because it helped me understand that I was exactly the sort of person who should go to university.
When I am asked to recommend books it's yours I recommend, twinned with John Naughton's A Brief History Of The Future; they are like companion volumes for a particular kind of way to think and feel about technology. Douglas Hofstadter should be so lucky.