loading...
running...
The science
Geometry of a soft shadow. A lamp of diameter D sits at x = 0, a round opaque occluder of diameter a at x = u and a screen at x = v (all on one axis, v > u). A point on the lamp casts a sharp copy of the occluder, magnified by v/u. Every lamp point casts its own copy, shifted sideways, and the soft edge is the pile-up of all of them. A screen point sees only the part of the lamp that its rays can reach past the occluder, so the brightness there is the visible fraction of the lamp (geometric optics, no wave effects).
umbra radius = ( a v - D (v - u) ) / (2u), penumbra outer radius = ( a v + D (v - u) ) / (2u), penumbra half-width w = D (v - u) / (2u)
The umbra (lamp completely hidden) exists while the first expression is positive. If the occluder is bigger than the lamp (a ≥ D) the umbra cone never closes. If it is smaller (a < D) the cone closes at the apex distance
vapex = u D / (D - a)
and beyond it the centre of the shadow receives a ring of lamp light: the antumbra, the geometry of an annular solar eclipse (the Moon is slightly too small and too far for its umbra to reach the ground).
Exact brightness for a disc lamp. Looking back from a screen point p, the occluder is a disc of radius (a/2)·v/(v - u), centred at - p u/(v - u) in the lamp plane. The visible fraction is one minus the overlap of that disc with the lamp disc, divided by the lamp area, and the overlap of two circles of radii r1, r2 at distance d is closed-form:
A = r12·acos((d2+r12-r22)/(2 d r1)) + r22·acos((d2+r22-r12)/(2 d r2)) - ½√((-d+r1+r2)(d+r1-r2)(d-r1+r2)(d+r1+r2))
The pictures use sampled lamp points (a golden-angle spiral for the disc, equally spaced points for the ring, two small clusters for two lamps) so every shape goes through the same code; for the disc the sampled value is compared with the exact formula in the checks and the readout.
Conservation of shadow area. Each lamp point casts a shadow of area π(a v / 2u)2, so the lamp-averaged shaded fraction integrates to the same area whatever the lamp size. Making the lamp bigger only spreads the same darkness over a wider, softer edge: that is the integral check in the page.
Checks (run in the page). (1) sampled visibility against the exact circle-overlap formula at seven screen points; (2) umbra radius read from the profile against the closed form; (3) outer penumbra radius against the closed form; (4) the screen distance at which the centre first becomes lit against u D/(D - a); (5) the integral of the shaded fraction over the screen against π(a v/2u)2.
Simplifications. Brightness is the visible fraction of the lamp: the cosine and inverse-square weighting of a real Lambertian lamp and the small tilt of the screen are ignored (they change the absolute level by a few percent, not the shadow widths). The occluder is treated as the flat disc of its silhouette, so a sphere and a disc of the same diameter give the same shadow in this model. Diffraction at the occluder edge (fringes a fraction of a millimetre wide for visible light) is not modelled. Units u are arbitrary: the same ratios apply to a 5 cm ball and a 10 cm lamp or to the Sun, the Moon and the Earth.