Through water and glass

A focus curved to the dome holds the wall and loses the fish

Behind a centred dome port a flat wall's virtual image curves toward the camera, and at its middle the curvature is the dome's own, (n − 1)/(nR), whatever the wall's distance. So a lens whose focus surface is a sphere of that curvature, about four dome radii across, holds a flat wall sharp at every distance at once: to its 45° corners at f/0.49 when the wall is 300 mm away and f/0.17 at 700 mm, where a flat focus needs f/12.5. The match is to one dome. A lens curved for a 100 mm dome is no better than a flat one behind a 200 mm dome, and a lens curved for a small dome has no focus at the corners of a large one. And the curve is spent once: the fish flank and the coral head that a matched dome held sharp with a flat focus lose a stop or more. Each subject wants the dome's curvature less its own over n, and a flat focus suits exactly one.

Worth reading first: The port that is not there · What a ray does at a surface.

The focus ring reads what the dome hides found that a dome port centred on a camera’s entrance pupil bends no chief ray but is a lens of constant power. The camera focuses on the dome’s virtual image of the scene, and in dioptres, nearness along each ray, a subject dd from the pupil is imaged at VV with

1V=1n d+n−1n R,\frac{1}{V} = \frac{1}{n\,d} + \frac{n-1}{n\,R},

RR the dome’s radius and nn the water’s index. A flat wall’s corners therefore miss a flat focus by (n−1)(1−cos⁡θ)/(nR)(n-1)(1-\cos\theta)/(nR) at field angle θ\theta, the same at any distance, which costs a 16 mm lens behind a 100 mm dome f/12.5 to hold a 45° corner.

A dome flattens one shape, and it is not a ball turned the subject instead of the lens. The subject whose image is flat is a hyperboloid with its focus at the pupil, which near the axis is a ball of R/(n−1)R/(n-1), three dome radii, convex toward the camera; a dome can be chosen to flatten a small convex subject, and for a wall or a cave only a larger dome ever helps. It closed on the other half of the same equation. A lens focuses on a flat plane by default, but some lenses are built with a curved field and some sensors are curved; the dome’s image of a flat wall has the same curvature at every distance, so a lens whose focus is curved to match should hold a flat wall at every distance at once. The questions were which curvature does that, whether one lens can serve every dome or must be matched to one, and what the curved focus costs the convex subjects a matched dome had flattened.

The image of a wall has the dome’s curvature at every distance

Behind a dome a flat wall's virtual image curves toward the camera by the dome's own amount at every distance, so a focus curved by that amount follows it where a flat focus cannotPlan view, in millimetres, of a camera's entrance pupil at the centre of a 100 mm dome port in water. The virtual image the dome forms of a flat wall 400 mm away lies 229 mm from the pupil on the axis, and of one 2 m away 348 mm (solid curves, out to ±45°); both curve toward the camera at the edges with the same curvature at the middle, (n − 1)/(nR), the curvature of a sphere of 400 mm radius. A flat focus set on the 400 mm wall's middle (grey line) falls behind the image at the edges; a focus sphere of that radius through the same point (dashed) lies on it to within a fraction of a millimetre across the field. Dotted rays mark ±45°.dome, 100 mmimage of a wall at 0.4 mimage of a wall at 2 mflat focusfocus curved to the domeplan view, mm; water n = 1.333the camera looks right
Fig. 1 Plan view of a 100 mm dome and the virtual images it forms of flat walls 400 mm and 2 m away, out to ±45°, with a flat focus and a focus curved to the dome set on the nearer wall’s middle.

Put a flat wall’s distance along each ray, d0/cos⁡θd_0/\cos\theta, into the law, and the image’s nearness along the ray at angle θ\theta is

1V(θ)=cos⁡θV0+n−1n R (1−cos⁡θ),\frac{1}{V(\theta)} = \frac{\cos\theta}{V_0} + \frac{n-1}{n\,R}\,(1-\cos\theta),

where V0V_0 is the image of the wall’s middle. The first term is a flat plane through V0V_0. The second bends the image toward the camera at the edges, and its size does not mention d0d_0 at all. Expanding to second order in the angle, a surface whose nearness exceeds a plane’s by κ(1−cos⁡θ)\kappa(1-\cos\theta) is curved toward the camera with curvature κ\kappa at its middle, so the image of every flat wall, near or far, is curved by exactly (n−1)/(nR)(n-1)/(nR) where it crosses the axis. In water that is 0.25/R0.25/R, the curvature of a sphere of 4.0 R4.0\,R, which is the radius at which the focus ring reads what the dome hides found every distant object imaged: the far image sphere, concentric with the dome.

The opening figure draws it. Behind a 100 mm dome a wall 400 mm away is imaged 229 mm from the pupil and a wall 2 m away 348 mm from it; both images bow toward the camera at the edges, by the same curvature at the middle. A flat focus through the nearer image’s middle falls behind it at the edges, which is the corner law. A focus sphere of 400 mm radius through the same point lies on the image to well within the figure’s line width.

That answers the first question at once, to second order. The curvature that holds a flat wall sharp is the dome’s: (n−1)/(nR)(n-1)/(nR), a focus surface curved toward the lens like a bowl around the camera, with a radius of about four domes. It is the same at every distance, because the image’s curvature is.

A sphere is the image only near the axis

To second order is not to the corners. The image of a flat wall is not a sphere. Its nearness is a constant plus a multiple of cos⁡θ\cos\theta, which is the polar equation of a conic with its focus at the pupil, an ellipse for distant walls and a hyperbola for near ones; a focus sphere through the same middle point with the same curvature is a different curve, and the two part at fourth order in the angle.

Behind a 100 mm dome a flat wall wants the focus curved by the dome's own amount at every distance: a wall 700 mm away is held to its 45° corners at f/0.03A 16 mm lens with a 0.015 mm circle behind a 100 mm dome, a flat wall filling ±45°, the f-number at which the lens's depth of field holds the worst miss between the wall's virtual image and the lens's focus surface, a sphere of a stated curvature through the image of the wall's middle, focused there. With a flat focus (curvature 0) every wall needs f/12.5. At the dome's own curvature, 1, a wall 300 mm away needs f/0.49, 700 mm f/0.17, 2 m f/0.03. The least is at 0.988 of the dome's curvature for the wall at 700 mm, f/0.03: a sphere matches the image's curvature at the middle and departs from it at the corners, by less the further the wall.01020-0.50000.50011.502focus curvature, in units of the dome's (n − 1)/(nR)f-number a 16 mm lens needswall at 300 mmwall at 700 mmwall at 2000 mm100 mm dome, ±45°, 16 mm lensdot: the best for 700 mm
Fig. 2 A 100 mm dome, a flat wall filling ±45°, a 16 mm lens: the f-number the lens needs to hold the wall’s worst miss, against the curvature of its focus sphere in units of the dome’s, for walls 300, 700 and 2000 mm away. The slider moves the marked best between them.

Measured over ±45° with a 16 mm lens and a 0.015 mm circle, as the f-number at which depth of field covers the worst miss, a flat focus needs f/12.5 for every wall. A focus sphere of the dome’s own curvature needs f/0.49 for a wall 300 mm away, f/0.17 at 700 mm and f/0.03 at 2 m. Each curve has its minimum just below the dome’s curvature: at 0.966 of it for the wall at 300 mm, 0.988 at 700 mm and 0.998 at 2 m, where it needs f/0.09, f/0.03 and f/0.006. A sphere slightly flatter than the image’s middle splits its fourth-order departure between the middle and the corners, the same compromise the earlier essay found when a ball stood in for the hyperboloid.

Below about f/1 an f-number is no longer something a lens can be stopped to; it says only that any aperture the lens has will do. Read that way, a focus curved to the dome holds a flat wall sharp at full aperture from 300 mm to infinity, and a flat focus does not hold it at f/11. That is a change of between six and ten stops, and it comes from a single number in the lens’s design rather than from the dome.

Curved to the dome, the focus holds a flat wall at full aperture over any field a wide lens covers; flat, it needs f/10 by forty degreesA flat wall 700 mm away behind a 100 mm dome, a 16 mm lens: the f-number needed against the half-field the wall fills. With a flat focus: f/0.65 at 10°, f/2.6 at 20°, f/5.7 at 30°, f/10.0 at 40°, f/15.2 at 50°, f/21.3 at 60°, growing as 1 − cos θ. With the focus curved to the dome's (n − 1)/(nR): f/0.0004, f/0.0070, f/0.03, f/0.11, f/0.25, f/0.50, the fourth-order remainder of a sphere against the image's conic.0.010.1110102030405060half the field the wall fills (°)f-number a 16 mm lens needsf/2.8flat focusfocus curved to the domewall at 700 mm, 100 mm dome16 mm lens, circle 0.015 mm
Fig. 3 A flat wall 700 mm away behind a 100 mm dome: the f-number a 16 mm lens needs against the half-field the wall fills, with a flat focus and with the focus curved to the dome, on a logarithmic scale.

The field the match holds over is wider than any rectilinear wide-angle lens covers. With the wall at 700 mm a flat focus needs f/2.6 at ±20°, f/5.7 at ±30°, f/10.0 at ±40° and f/21.3 at ±60°, growing as 1−cos⁡θ1-\cos\theta. With the focus curved to the dome: f/0.007, f/0.035, f/0.11 and f/0.50, growing with the fourth power of the angle until at ±60° the sphere’s departure from the conic matters. Even there it is a stop and a half faster than the widest aperture most lenses have.

So the first answer is complete: a focus curved to (n−1)/(nR)(n-1)/(nR) holds a flat wall at every distance and nearly every angle at once. The earlier essay’s corner law, which looked like the price of a dome, is the price of a flat focus behind one.

Matched to one dome

The curvature is the dome’s, and domes differ. A lens’s field curvature is designed into it, so a photographer with one lens and several domes wants to know what a mismatch costs.

A lens curved for one dome serves that dome alone: behind a dome twice as large it is no better than a flat lens, and behind one much larger it has no focus at the cornersA flat wall 700 mm away filling ±40°, a 16 mm lens, against the dome's radius. A flat focus needs f/19.9 behind 50 mm, f/10.0 behind 100 mm and f/2.5 behind 400 mm. A lens curved for a 100 mm dome needs f/9.5, f/0.11 and f/7.8, and ties the flat lens behind a dome of 200 mm (f/5.0 against f/5.0). Curved for 200 mm: f/4.7 behind 100 mm, f/0.13 behind 200. Curved for 50 mm: f/0.07 behind 50 mm and f/19.5 behind 200; behind 300 mm and more its focus sphere is too small for the corner rays to meet, and nothing at the corners is sharp at any aperture.50701002003000.030.10.3131030dome radius (mm)f-number a 16 mm lens needsflat focuscurved for 50 mmcurved for 100 mmcurved for 200 mmwall at 700 mm, ±40°16 mm lens, circle 0.015 mm
Fig. 4 A flat wall 700 mm away filling ±40°: the f-number a 16 mm lens needs against the dome’s radius, with a flat focus and with the focus curved for 50, 100 and 200 mm domes, on logarithmic scales.

The mismatch has a second-order law of its own. A focus curved by κ\kappa behind a dome that wants c=(n−1)/(nR)c = (n-1)/(nR) misses the corners by ∣c−κ∣(1−cos⁡θ)|c-\kappa|(1-\cos\theta), the corner law with the dome’s constant replaced by the difference between the dome and the lens. A lens curved for a 100 mm dome, with a wall at 700 mm over ±40°, needs f/0.11 behind its own dome, f/3.1 behind a 75 mm dome, f/9.5 behind a 50 mm dome and f/3.3 behind a 150 mm one. Behind a 200 mm dome, which wants half its curvature, the difference is exactly the 200 mm dome’s own constant, and the curved lens needs f/5.0, the same as a flat lens there. Behind 300 and 400 mm domes it needs f/6.8 and f/7.8, worse than the flat lens’s f/3.3 and f/2.5, because its curvature is now more wrong than none.

A lens curved for a small dome fails more abruptly. Curved for 50 mm, its focus sphere has a radius of 200 mm, and behind a large dome the wall’s image lies further away than that; past a certain angle the corner rays pass outside the sphere and meet no focus at all. Behind 300 and 400 mm domes nothing at the frame’s corners is sharp at any aperture.

So the second answer is no. A curved focus is matched to one dome, it is as good as nothing behind a dome twice the size, worse than nothing behind larger ones, and far better than nothing behind smaller ones. The rule a photographer can carry: a lens curved for a dome should be used behind that dome or a smaller one, never a much larger one, since a smaller dome’s image curves more and the curved lens has already gone part of the way toward it.

The curve is spent once

The third question was what the curved focus costs the subjects a flat focus had suited. The answer comes from the same equation, read the other way.

Curving the focus to the dome swaps which subjects are sharp: the wall and the cave gain what the fish, the coral and the matched ball loseBehind a 100 mm dome, a 16 mm lens, the f-number each subject needs with a flat focus (upper bars) and with the focus curved to the dome (lower bars): fish flank f/3.0 and f/4.5; coral head f/1.1 and f/2.9; ball of 3R f/0.67 and f/3.3; flat wall f/10.0 and f/0.11; cave f/12.0 and f/2.0. The fish flank is a ball of 150 mm at 400 mm over ±15°, the coral head 600 mm at 700 mm over ±25°, the ball of three dome radii 300 mm at 400 mm over ±20°, the wall at 700 mm and the inside of a cave of 1.5 m radius seen from 700 mm over ±40°. The scale is logarithmic.f/0.1f/0.3f/1f/3f/10fish flankf/3.0f/4.5coral headf/1.1f/2.9ball of 3Rf/0.67f/3.3flat wallf/10.0f/0.11cavef/12.0f/2.0f-number needed (upper: flat focus; lower: curved to the dome)100 mm dome, 16 mm lens
Fig. 5 Behind a 100 mm dome, a 16 mm lens: the f-number five subjects need with a flat focus and with the focus curved to the dome, on a logarithmic scale.

Behind a 100 mm dome, the fish flank of the earlier essay, a ball of 150 mm radius 400 mm away filling ±15°, needs f/3.0 with a flat focus and f/4.5 with the focus curved to the dome. The coral head, 600 mm radius at 700 mm over ±25°, needs f/1.1 and f/2.9. The ball of three dome radii that the dome flattens near the axis, 300 mm at 400 mm over ±20°, needs f/0.67 with a flat focus and f/3.3 with the curved one. The flat wall goes from f/10.0 to f/0.11; the inside of a cave of 1.5 m radius seen from 700 mm over ±40°, from f/12.0 to f/2.0.

The curved focus swaps the winners. The subject a flat focus suited was the one whose own convexity cancelled the dome’s curvature, the ball of three dome radii; curve the focus to the dome and that cancellation is no longer wanted, so the ball’s own convexity is left as an error, and it is exactly as large as the dome’s constant was for the wall. A convex subject is bent the wrong way by a focus that has already bent itself to the dome. The cave gains most of what the wall gains, but not all: its own concavity adds to the dome’s, and a focus curved only to the dome leaves the cave’s part uncorrected.

What each subject wants

The focus a subject wants is the dome's curvature less the subject's own over n: a flat focus suits only the ball of R/(n − 1)Spherical subjects 700 mm away behind a 100 mm dome, filling ±15°, from concave (a cave, negative) through flat to convex: the focus curvature that leaves the least worst miss, in units of the dome's (n − 1)/(nR) (dots), against the second-order law (n − 1)/(nR) − 1/(nρ) (line). ρ = −3000 mm: 1.10; ρ = −1500 mm: 1.20; ρ = −800 mm: 1.38; ρ = 4000 mm: 0.92; ρ = 2000 mm: 0.84; ρ = 1200 mm: 0.74; ρ = 800 mm: 0.60; ρ = 600 mm: 0.46; ρ = 450 mm: 0.25. The law crosses zero, a flat focus, at ρ = R/(n − 1) = 300 mm, the ball the dome flattens.00.50011.50-0.00100.0010.002subject's curvature, 1/ρ per mm (convex toward the camera positive)best focus curvature, units of the dome'sbest, measured(n − 1)/(nR) − 1/(nρ)100 mm dome, subjects at 700 mm, ±15°
Fig. 6 Spherical subjects 700 mm away behind a 100 mm dome, filling ±15°: the focus curvature that leaves the least worst miss, in units of the dome’s, against the subject’s own curvature, with the second-order law.

The swap is a law. A subject of radius ρ\rho, convex toward the camera when ρ\rho is positive, has a nearness that falls with the angle faster than a plane’s, by 1/ρ1/\rho to second order; the dome divides every nearness by nn and adds its constant. The image’s curvature at its middle is therefore

κ=n−1n R−1n ρ,\kappa = \frac{n-1}{n\,R} - \frac{1}{n\,\rho},

the dome’s curvature less the subject’s over nn, and that is the focus curvature each subject wants. Measured for spheres from a concave 800 mm through flat to a convex 450 mm, 700 mm away behind a 100 mm dome over ±15°, the best curvature lies on that line: 1.38 of the dome’s for the concave 800 mm subject, 1.20 for the cave’s 1.5 m, 1.10 and 0.92 for gentle curves of 3 m and 4 m either side of flat, 0.60 for a convex 800 mm ball and 0.25 for one of 450 mm, where the ball’s outline is approaching the edge of the field and the fourth-order terms pull the best below the line.

The law crosses zero, a flat focus, at ρ=R/(n−1)\rho = R/(n-1): the ball of three dome radii that the earlier essay found the dome flattens. That essay and this one are the two ends of one line. A flat focus is the special lens that suits one convex subject, and a focus curved to the dome is the special lens that suits a flat wall; every other subject wants a focus of its own, which for the fish flank, very convex and close, is a focus curved the other way, away from the camera. A lens has one field curvature, so a photographer still chooses which subject to favour; what this adds is that the choice can be made in the lens as well as in the dome, and that the two choices add.

The dome and the lens together

That last point is the practical form of everything above. The earlier essay found that for a small convex subject there is a best dome, which brings its subject’s image flat for a flat focus; for a wall or a cave there was only a larger dome. With a curved focus there is a second lever, and the levers combine. A photographer who works wide on walls and caves can use a smaller, lighter dome than the corner law demanded, if the lens behind it is curved to match: a 100 mm dome with a matched lens holds a wall at 700 mm across ±40° at full aperture, where a flat lens needed a 400 mm dome to reach f/2.5. A photographer who works close on fish keeps a flat lens and a small dome. The habit of buying the largest dome affordable is the remedy for a flat lens’s mismatch with the wall, and a curved lens removes the mismatch at its source.

What this assumed

The dome is thin, centred and spherical, as in both earlier essays. An off-centre dome is astigmatic, which the dome knows its offset in units of itself measured, and a focus sphere cannot follow two foci at once.

The lens’s focus surface keeps its curvature at every focus distance. In a thin lens’s paraxial account the surface a lens focuses on and its image have the same curvature, because a lens magnifies depths by the square of its lateral magnification, so a sensor or a field curvature fixed in the camera gives a fixed curvature on the dome’s side of the lens whatever the focus. A real lens’s field curvature changes somewhat with focus, as focusing is a zoom found its other properties do, and a close picture carries its own distance is a reminder that behind a dome every focus is close.

Which way the curvature goes matters. The dome’s image of a wall curves toward the camera at the edges, so the lens’s focus surface must too, and a focus surface curved toward the lens on the object side corresponds to an image surface curved away from the lens behind it, by the same curvature. An uncorrected positive lens curves its image the other way, toward itself. The lens wanted here is therefore not an ordinary lens with its correction left out but one deliberately over-corrected, or a sensor bowed away from the lens, which is the sense in which the eye’s own curved picture surface, the eye is a picture surface too, is a design choice rather than a defect.

Depth of field is the simple rule, half a depth of field being the f-number times the circle over the focal length squared. Below f/1 the numbers say only that the lens’s own aperture is enough, and one focus stopped down is as sharp as six is where diffraction would take over at the other end.

The subjects are spheres, as before. A subject curved differently in two directions wants two focus curvatures, and no lens with a symmetric field gives it both.

A curvature that can be spent once

The port that is not there and a point under water has two depths found that what a port does to a picture can often be rewritten as a different scene photographed without one. The dome’s constant is the plainest case: behind it, a flat world is photographed as a world curved toward the camera by (n−1)/(nR)(n-1)/(nR), and every subject’s curvature is read against that. The earlier essay spent the constant on the subject, choosing a dome to suit a convex one. This one spends it on the lens, choosing a focus to suit a flat one. It can be spent once, in one place: whichever subject the lens is curved for, every other subject is measured by its distance from it.

Still open: whether a dome can be curved to suit a flat lens

Everything here and in the earlier essay treats the dome as a sphere centred on the pupil, so that its constant is the same along every ray and a sphere of focus can match it. A dome need not be a sphere. Its outer surface could be shaped, a little flatter at the edges than a sphere or a little steeper, so that its power changes with the angle and its image of a flat wall lies on a flat plane after all.

The measurement that settles it takes a thin dome whose surface departs from a sphere by a stated amount at its edge, keeps the pupil at its centre of curvature on the axis, follows each chief ray through it with the oblique refraction that a sphere centred on the pupil never needed, and asks whether some departure brings a flat wall’s image flat for a flat focus across a 16 mm lens’s field; whether that dome still bends no chief ray, or buys its flat image by distorting the picture the centred dome kept true; and whether the same shape serves walls at every distance, as the curved focus did, or must be matched to one.

Behind a centred dome a flat wall’s virtual image curves toward the camera with the dome’s own curvature, (n − 1)/(nR), at every distance. A lens whose focus surface is a sphere of that curvature holds a flat wall at every distance at once: across ±45° at f/0.49 at 300 mm and f/0.17 at 700 mm, where a flat focus needs f/12.5. The match is to one dome: a lens curved for a 100 mm dome is no better than a flat lens behind a 200 mm dome and worse behind larger ones, and one curved for a 50 mm dome has no focus at a large dome’s corners. And the curvature is spent once. Each subject wants the dome’s curvature less its own over n, so the fish flank and the coral head a flat focus suited lose a stop or more, and the ball of three dome radii that a flat focus held is now the subject that misses.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

Conicdepth of fieldDome portEntrance pupilRefractive indexVirtual image