A lamp lights less than half a ball
Worth reading first: The shadow of a ball is a conic · A shadow is a second projection.
Half a sphere faces any direction, so half a sphere is lit. It is one of those statements that is so obviously true that nobody checks it, and it is true of exactly one case: a source infinitely far away.
For a source at a finite distance from the centre of a ball of radius , the lit cap runs out to the angle whose cosine is , and the fraction of the surface inside that cap is
which is a half only in the limit. A lamp ten radii off lights 45% of the ball. A lamp two radii off — a bare bulb a foot from an orange — lights 25%, which is a quarter and not a half.
Where the boundary actually is
The terminator — the line between lit and unlit on the object itself — is where the source grazes the surface. A ray from the source is tangent to the ball at the points where the angle from the centre reaches , and those points form a circle.
That circle is not a great circle. It lies at from the centre, displaced toward the source, and its radius is , which is smaller than . Both effects vanish as grows, and neither vanishes at any finite distance.
So the picture in everyone’s head — the terminator as a great circle, the equator of a tilted sphere — is the limiting case drawn as though it were the general one. For the moon it is very nearly right: the sun is about 23,000 solar-system radii away in the relevant sense, and the offset is negligible. For a photographic softbox at a metre from a face it is not right at all.
The same circle, twice
This is the same circle the shadow rung casts. There it was called the silhouette, and its shadow is the boundary of the cast shadow; here it is called the terminator and it is the boundary of the lit region on the ball itself.
They are one circle because they are one geometric object: the set of tangency points of the cone from the source. Approaching it from the lit side gives the terminator; projecting it onto the floor gives the cast shadow’s edge; and the fact that the two subjects share the circle is why one function computes both.
Reading the distance out of a picture
The offset is , so it carries . And it is visible: seen from the side, the terminator’s image is displaced from where a great circle’s image would be, and the displacement falls exactly as .
That gives the round trip. Photograph a lit ball, measure how far the terminator’s image sits from the sphere’s own centre line, and the source’s distance follows — in units of the ball’s radius, which is the honest form since a single picture cannot supply a scale. At six radii, on a 690-pixel figure, the displacement is a couple of dozen pixels, which is a great deal more than a photograph’s noise.
For the moon this is the classical measurement and it has a famous history. Aristarchus reasoned that at exact half-moon the sun, moon and earth form a right angle, measured the elongation, and got a sun distance nineteen times the moon’s — the method exact, the measurement hopeless, since the true elongation is 89.85° and he needed a fraction of a degree. What the terminator’s bulge offers is the same information from the moon’s own face rather than from an angle in the sky, and it is just as hopeless for the moon, because for the sun-moon system is a part in twenty-three thousand of the moon’s radius. It is entirely practical for a lamp in a room.
What it does to a picture
Three consequences for anybody drawing or judging a lit sphere, and the third is the one that has bitten software.
A nearby source makes the lit region smaller, not merely differently placed. The dark side grows, and the growth is the whole difference between 50% and 25% at two radii. A drawing lit by a lamp in the room and shaded as though by the sun is wrong in area, not just in softness.
The terminator’s curvature is not the ball’s. Its image is an ellipse — the projection of a circle — but of a smaller circle, offset. Drawing the terminator as a diameter of the drawn disc, which is what a half-lit sphere is nearly always drawn as, assumes the source is at infinity even when the rest of the picture says otherwise.
And the cast shadow and the terminator have to agree. They come from one cone, so a picture whose terminator says the lamp is close and whose cast shadow says it is far is inconsistent, and inconsistent in a way that is checkable rather than a matter of feel. That is the shadow rung’s consistency test with the object added.
The limit, and why it is worth stating as one
At the lit fraction is 49.9995% and the offset is of the radius. So the familiar half is not an approximation anybody should feel bad about — for the sun and anything on earth it is right to more decimal places than any measurement will reach.
Stating it as a limit rather than as a fact is worth doing anyway, and for the same reason the eye taken to infinity is worth stating as a limit. A fact with no parameter in it cannot say when it stops applying. A limit with in it says exactly: the error in “half” is , so it reaches one percent at fifty radii and ten percent at five.
Fifty radii is not far. A face lit by a window is at two or three head-radii from the near part of the window; a product photographed in a light tent is at one or two. The regime where the half is wrong by more than a percent is the regime almost all indoor lighting is in.
What the quadrature is doing, and why it is worth doing
The closed form is three symbols and could have been asserted. It is checked against a numerical integration instead, and the way the integration is set up is the part worth describing, because a badly weighted quadrature agrees with a closed form for the wrong reason and cannot be told apart from a good one by looking at the answer.
The surface is divided into bands of equal area rather than equal angle. On a sphere, bands of equal area are bands of equal thickness in the cosine of the polar angle — Archimedes’ result, and the reason a sphere and its circumscribing cylinder have the same area between any two parallel planes. So a plain count of lit bands is an area fraction with no weighting factor anywhere, and there is no weight to get wrong.
Each band is then tested by the condition that decides it: the outward normal at a point faces the source, which is a single dot product and involves nothing about brightness or reflectance. A patch is lit when the segment from it to the source leaves the ball, and unlit when the ball is in the way.
The two routes agree over the whole sweep from just outside the ball to a hundred thousand radii. That is what makes the closed form a result rather than a definition — and the equal-area setup is what makes the agreement mean something rather than being an artefact shared by both.
The other end: a source larger than the object
The formula assumes a point source, and a real source has a size. It is worth saying what happens at the other end, because the direction of the effect reverses.
A source larger than the object and close to it lights more than half. A ball held against a large window is lit from a whole hemisphere of directions, and the fraction of its surface reached by at least one of them exceeds a half — the limiting case being a ball inside a uniformly bright sphere, which is lit everywhere.
So the lit fraction runs from just above zero, for a point source almost touching the surface, through exactly a half for a point source at infinity, to unity for an enveloping one. The point-source result this rung computes covers the lower half of that range, and it is the half that matters for a lamp.
The two regimes are separated by the source’s angular size as seen from the object, which is the same quantity that decides how soft the shadow’s edge is. That is not a coincidence and it is the penumbra rung’s subject: a source’s angular width sets both how much of a ball it lights and how wide the soft band around the ball’s shadow is, because both are questions about which parts of the source a given point can see.
Which makes the terminator and the penumbra one measurement taken on two objects — on the ball, and on the floor beneath it.
The moon, which is the case everybody has in mind
The half-lit sphere is almost always introduced with the moon, and the moon is the one object for which the half is right to more decimal places than anybody needs — so it is worth saying exactly why, because the reason is a ratio rather than a fact about the moon.
The sun is about four hundred solar radii from the earth in the units that matter here, and the moon’s radius against its distance from the sun gives an R/D of roughly one part in twenty-three thousand. The lit fraction is therefore 0.499989, and the terminator’s offset from the moon’s centre is about seventy metres on a body seventeen hundred kilometres in radius. No telescope resolves that and no photograph carries it.
Which means the moon is a demonstration of the limit rather than an instance of the general case, and using it to introduce the subject leaves the general case unmentioned. The objects for which the general case matters are the ones lit from within a room: a face at a window, a product in a light tent, an apple under a desk lamp. In every one of those, R/D is between a tenth and a half, and the lit fraction is between 45% and 25%.
There is a second reason the moon is the wrong example, and it is about the shape rather than the fraction. At half moon the terminator’s image is a straight line down the disc, and it is straight because the source is at infinity. A nearby lamp on a nearby sphere gives a terminator that is visibly bowed toward the light, and the bow is the readable quantity this rung is about. Introducing the subject with the one case where the bow is unmeasurable puts the interesting quantity out of sight.
The consequences for a picture, in order of size
The dark side is bigger than half, always. For an object lit by a source in the same room, the unlit fraction is more than half by R/2D. A softbox a metre from a head twenty centimetres across gives about 5% more dark than the sun would; a bare bulb at arm’s length from an orange gives a great deal more.
The terminator’s image is displaced, and the displacement is readable. By R²/D toward the light, projected. At six radii on a 690-pixel figure it is a couple of dozen pixels, which is far more than a photograph’s noise and far less than anybody draws.
And the terminator’s curvature is not the ball’s. Its image is the projection of a circle smaller than the sphere’s great circle, so it is an ellipse of a different eccentricity — which is why a half-lit sphere drawn with a straight terminator down its middle is drawing a source at infinity, whatever the rest of the picture says about the lamp.
None of the three is large enough to be obvious and all three are large enough to measure, which is the size of effect this site is usually about.
Why the geometry is worth having when the photometry is not
The lit fraction is a purely geometric quantity: it counts area, and it needs to know nothing about the surface. How bright the lit part looks is photometry and needs to know a great deal — the surface’s reflectance, whether it scatters like matte plaster or like polished metal, what else in the room is bouncing light back.
So the two halves of “how is this ball lit” have completely different epistemic status, and the geometric half is the one that can be checked to arithmetic noise. The closed form here is checked against a quadrature over the surface, in bands of equal area so that a plain count is an area fraction and no weighting can be got wrong, and the two agree over the whole sweep from just-outside-the-ball to a hundred thousand radii.
The pattern across the three is worth stating because it is what this field is for. Every question about light that turns out to be a question about where the rays go is answerable here to fifteen digits: the shadow’s shape, the terminator’s position, the penumbra’s width, the lamp’s recovered coordinates. Every question about how much energy arrives is a different subject wearing the same words. The half-lit sphere is a question of the first kind that everybody has answered as though it were too obvious to be either.
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.
- A frame is an interval — both name centre of projection, demonstration, depth cue, point light
- Two triangles and the line nobody drew — both name centre of projection, demonstration, point light
- A centre and a measure are exclusive — both name centre of projection, demonstration
- A focal length is not an angle — both name demonstration, subtended angle
- A projector is a camera run backwards — both name centre of projection, demonstration
- A shadow can be un-cast — both name centre of projection, point light
Named objects
A flat tag is an object no other essay names yet.
centre of projectionConicDemonstrationDepth cuePoint lightRadianceSilhouetteSubtended angleTangent coneTerminator