Dappled Sunlight Plan View: From Sun Pictures to Gap Shapes, Eclipse Crescents and Rings
The same model in 2D: a cross-section of one gap with the ray fans from its two rims, the plan view of the ground patch on a Blender forest floor (stretched along the slope by 1/sin elevation), and a gallery of the same Sun, height and shape through gaps from 0.05 to 12 Sun-image widths that shows the change from a picture of the Sun to a copy of the gap, with crescents and rings when the Moon crosses. Same controls and checks as the 3D version.
Why are the light patches under a tree round, whatever shape the gaps between the leaves have? Every point of the Sun's disc sends its own copy of the gap to the ground, so a patch is the gap shape convolved with a picture of the Sun, d_i = h x 9.3 mrad / sin(elevation), about 1 cm per 1.07 m of height. A gap much smaller than that picture gives a round Sun image (a crescent during a partial eclipse, a ring in an annular one, upside down); a gap much larger copies its own shape with a soft edge. Three Blender leaf canopies at h/2, h and 2h show the patch growing while the gap stays put, with width, height, Sun elevation, gap shape, Moon size and position as controls and graphs of centre illuminance against width, patch profiles and the eclipse. The patch is computed two ways (sampling the Sun disc and sampling the gap) and checked against the exact two-circle lens area, energy conservation, brute-force ground geometry, an eclipse Monte Carlo and the IAU Sun size.
The same model in 2D: a cross-section of one gap with the ray fans from its two rims, the plan view of the ground patch on a Blender forest floor (stretched along the slope by 1/sin elevation), and a gallery of the same Sun, height and shape through gaps from 0.05 to 12 Sun-image widths that shows the change from a picture of the Sun to a copy of the gap, with crescents and rings when the Moon crosses. Same controls and checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install