Free software

About OpticalSetup

Copyright © 2026 Luca Genchi and contributors.

OpticalSetup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

It is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

The numbers OpticalSetup reports come from models with stated limits; read each component's page in the wiki before relying on one.

If you use OpticalSetup in your research, teaching or publications, please cite the software:

Bertoncini, A., & Genchi, L. (2026). OpticalSetup - the optical workbench software [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23191537

Wiki / Detectors / Human eye

Human eye

A reduced eye: a pupil and one lens focus light onto a retina that detects it and can reflect part of it back, mirror-like or diffusely.

Open in the canvas →

A live trace, not a picture of one — but this preview is not interactive. Open it in the canvas to move things, change parameters, and save or export your own version.

In the real world

The eye forms an image on the retina using the refractive power of the cornea and crystalline lens, about 60 dioptres in total, in an eyeball about 24 mm long[2]. Schematic eyes describe it at very different levels of detail, from a single refracting surface to four aspheric surfaces with a gradient-index lens[1]. The iris sets the pupil, between roughly 2 mm in bright light and 8 mm in the dark[3]. An eye whose power does not match its length is myopic (too strong) or hyperopic (too weak), and the spectacle power that corrects it is its refractive error. The fundus sends a small fraction of the light back from several layers[6]: Delori and Pflibsen measured an equivalent reflectance of about 1–2 % at 560 nm and 10–12.5 % at 805 nm, depending on the retinal site[4]. Most of it is diffuse; a smaller directional part, guided by the cone photoreceptors, returns towards a preferred region of the pupil, usually near its centre[5,10]. This returned light is what ophthalmoscopes, fundus cameras, scanning laser ophthalmoscopes and OCT systems detect.

P=1000fP = \frac{1000}{f}
Optical power P in dioptres from the focal length f in millimetres.
E=1000L−PE = \frac{1000}{L} - P
Refractive error E for an eye of length L (mm): negative is myopic, positive hyperopic, both at the eye's lens.
η=R d sin⁡2α\eta = R\,d\,\sin^2\alpha
Share η of the light reaching the retina that leaves the pupil diffusely, for reflectivity R, diffuse share d and pupil half-angle α seen from the retina.

More detailed eye models

A schematic eye is built for a purpose, and the simplest one that answers the question is usually the best[1]. A reduced eye, with one refracting surface or one thin lens, gets the power, the focus and the refractive error right, which is enough to explain how an ophthalmoscope, a fundus camera or a model eye on the bench works. Finer questions need finer models:

In OpticalSetup

OpticalSetup models a reduced eye in air: the pupil clips incoming rays, one thin lens at the pupil bends them, and the retina sits one eye length behind it, where a retinal detector records the signal. A new eye is the textbook 60 D eye: 16.7 mm focal length, the same length, and a 4 mm pupil. Its length is the air-equivalent one, shorter than the 24 mm of a real eyeball[2], so that ray angles inside and outside the eye stay right.

Set the power as a focal length or in dioptres: both edit the same lens, and a sketch stores the focal length whichever you choose. The Refractive error line compares the power with the length; change either to model a myopic or hyperopic eye and watch the retinal spot spread.

Retinal reflectivity (0–100 %, default 0) sends that fraction of the light back from the retina. Diffuse share splits it: the mirror-like part goes back through the lens, so a collimated beam focused on the retina returns collimated, like a cat's eye, and the eye can stand in for the lens-and-mirror pair that ophthalmic instruments use to model it. The diffuse part scatters in all directions as a Lambertian surface would. Only the part headed for the pupil can leave, so it is traced as a small fan across the pupil carrying exactly that share; what would hit the eye wall is absorbed. A beamsplitter in front of the eye routes either return to a camera or detector.

The retinal reading counts all the light that reaches the retina, whatever fraction is reflected, and the inspector shows it in watts, carried from the sources' configured power like a power meter's reading. Light arriving at the back of the eyeball is blocked by the eye wall: it neither reaches the retina nor reflects. Sketches saved before the 60 D defaults open with the 30 mm eye, 12 mm pupil and 30 mm focal length they were drawn with.

Making the eye more realistic

Every eye setting is yours to choose: start from the 60 D default and change only what your setup needs.

  • A refractive error E (negative for myopia): change the power to 1000/L − E and keep the length, or change the length to 1000/(P + E) and keep the power. A −3 D myopic eye is the default eye at about 62.9 D, or the default eye lengthened to about 17.6 mm.
  • Looking at something near: an object d metres away needs 1/d extra dioptres of accommodation, 2.5 D for a page at 40 cm. Add them to the power.
  • The pupil: about 2–3 mm in bright light and 6–8 mm when dark-adapted or dilated[3].
  • A bench model eye, a lens with a target at its focus as used to test ophthalmic instruments: set the focal length to the lens's, the eye length equal to it, and the retinal reflectivity to the target's reflectance (close to 100 % for a mirror). Then choose a 0 % diffuse share for a mirror target or 100 % for a white card; the diffuse-share control appears once the reflectivity is above zero.
  • The fundus reflection at your wavelength, as an illustrative starting point rather than a calibrated value. Delori and Pflibsen report an equivalent reflectance, calibrated for a diffusely reflecting fundus behind clear media in an eye of 22 mm focal length. At the nasal fundus and at the fovea it is about 1.4 and 0.3 % at 480 nm, 2.3 and 1.2 % at 560 nm, 6.4 and 3.3 % at 610 nm, 10.2 and 6.7 % at 675 nm, and 12.5 and 10.4 % at 805 nm, and individual eyes differ from these averages by tens of percent[4]. Set the retinal reflectivity first, then the diffuse share to 100 %. This eye collects diffuse light over its own length L, so the same reflectivity returns about (22 mm / L)² as much light, 1.7 times as much in the default 16.7 mm eye; to match the measured return with the same pupil, multiply the tabulated value by (L / 22 mm)², about 0.58 for the default eye.
  • A directional return: a diffuse share a little below 100 % adds a mirror-like part, the closest this eye comes to the cone-guided light of a real retina.

What the eye cannot do is listed under Simplified vs. reality below; the detailed models above are the ones to reach for when those limits matter.

Simplified vs. reality

This is a geometric teaching model, not an anatomical eye prescription. One thin lens replaces the cornea and crystalline lens, so the pupil and the lens coincide: an instrument that images a source exactly into the pupil (Maxwellian view) is approximated, not reproduced. It is not a finite schematic eye with aspheric surfaces and a curved retina[7,8,2], so it does not predict visual acuity, diffraction, aberrations, accommodation dynamics or retinal physiology.

The retina is a single plane. Its diffuse share uses the 3-D Lambertian fraction for a round pupil, exact on axis and estimated from the in-plane extent off axis; there are no retinal layers, no depth structure and no wavelength dependence, although the real fundus reflects five to eight times more at 805 nm than at 560 nm[4]. The mirror-like part reflects specularly, whereas the directional light of a real retina returns towards a preferred region of the pupil, usually near its centre, with a strength that depends on where the light entered[10]. The power at the retina is not compared with any exposure limit[9] and must not be used for laser-safety decisions. The carrier phase through the eye is not modeled, so the eye's return adds power to an interferometer's output but does not form fringes.

Related components

References

  1. D. A. Atchison and L. N. Thibos, "Optical models of the human eye," Clinical and Experimental Optometry 99(2), 99–106 (2016)
  2. H.-L. Liou and N. A. Brennan, "Anatomically accurate, finite model eye for optical modeling," J. Opt. Soc. Am. A 14(8), 1684–1695 (1997)
  3. A. B. Watson and J. I. Yellott, "A unified formula for light-adapted pupil size," Journal of Vision 12(10):12 (2012)
  4. F. C. Delori and K. P. Pflibsen, "Spectral reflectance of the human ocular fundus," Applied Optics 28(6), 1061–1077 (1989)
  5. J. van de Kraats and D. van Norren, "Directional and nondirectional spectral reflection from the human fovea," J. Biomed. Opt. 13(2), 024010 (2008)
  6. T. T. J. M. Berendschot, P. J. DeLint and D. van Norren, "Fundus reflectance — historical and present ideas," Progress in Retinal and Eye Research 22(2), 171–200 (2003)
  7. R. Navarro, J. Santamaría and J. Bescós, "Accommodation-dependent model of the human eye with aspherics," J. Opt. Soc. Am. A 2(8), 1273–1280 (1985)
  8. I. Escudero-Sanz and R. Navarro, "Off-axis aberrations of a wide-angle schematic eye model," J. Opt. Soc. Am. A 16(8), 1881–1891 (1999)
  9. F. C. Delori, R. H. Webb and D. H. Sliney, "Maximum permissible exposures for ocular safety (ANSI 2000), with emphasis on ophthalmic devices," J. Opt. Soc. Am. A 24(5), 1250–1265 (2007)
  10. S. A. Burns, S. Wu, F. Delori and A. E. Elsner, "Direct measurement of human-cone-photoreceptor alignment," J. Opt. Soc. Am. A 12(10), 2329–2338 (1995)
  11. L. N. Thibos, X. Hong, A. Bradley and X. Cheng, "Statistical variation of aberration structure and image quality in a normal population of healthy eyes," J. Opt. Soc. Am. A 19(12), 2329–2348 (2002)
  12. D. A. Atchison, "Optical models for human myopic eyes," Vision Research 46(14), 2236–2250 (2006)
  13. J. Polans, B. Jaeken, R. P. McNabb, P. Artal and J. A. Izatt, "Wide-field optical model of the human eye with asymmetrically tilted and decentered lens that reproduces measured ocular aberrations," Optica 2(2), 124–134 (2015)
  14. D. A. Atchison and G. Smith, "Chromatic dispersions of the ocular media of human eyes," J. Opt. Soc. Am. A 22(1), 29–37 (2005)
  15. D. van Norren and L. F. Tiemeijer, "Spectral reflectance of the human eye," Vision Research 26(2), 313–320 (1986)
  16. S. J. Preece and E. Claridge, "Monte Carlo modelling of the spectral reflectance of the human eye," Physics in Medicine and Biology 47(16), 2863–2877 (2002)

Further reading