i
i
i
i
i
i
i
i
482 10. Image-Based Effects
10.12 Lens Flare and Bloom
Lens flare is a phenomenon that is caused by the lens of the eye or camera
when directed at bright light. It consists of a halo and a ciliary corona.
The halo is caused by the radial fibers of the crystalline structure of the
lens. It looks like a ring around the light, with its outside edge tinged
with red, and its inside with violet. The halo has a constant apparent
size, regardless of the distance of the source. The ciliary corona comes
from density fluctuations in the lens, and appears as rays radiating from a
point, which may extend beyond the halo [1208].
Camera lenses can also create secondary effects when parts of the lens
reflect or refract light internally. For example, hexagonal patterns can
appear due to the lens’s aperture blades. Streaks of light can also be seen
to smear across a windshield, due to small grooves in the glass [951]. Bloom
is caused by scattering in the lens and other parts of the eye, creating a
glow around the light and dimming contrast elsewhere in the scene. In
video production, the camera captures an image by converting photons
to charge using a charge-coupled device (CCD). Bloom occurs in a video
camera when a charge site in the CCD gets saturated and overflows into
neighboring sites. As a class, halos, coronae, and bloom are called glare
effects.
In reality, most such artifacts are less and less commonly seen as camera
technology improves. However, these effects are now routinely added digi-
tally to real photos to denote brightness. Similarly, there are limits to the
light intensity produced by the computer monitor, so to give the impres-
sion of increased brightness in a scene or objects, these types of effects are
explicitly rendered. The bloom effect and lens flare are almost interactive
computer graphics clich´es, due to their common use. Nonetheless, when
skillfully employed, such effects can give strong visual cues to the viewer;
for example, see Figure 8.16 on page 306.
Figure 10.26 shows a typical lens flare. It is produced by using a set of
textures for the glare effects. Each texture is applied to a square that is
made to face the viewer, so forming a billboard. The texture is treated as
an alpha map that determines how much of the square to blend into the
scene. Because it is the square itself that is being displayed, the square
can be given a color (typically a pure red, green, or blue) for prismatic
effects for the ciliary corona. Where they overlap, these sprites are blended
using an additive effect to get other colors. Furthermore, by animating the
ciliary corona, we create a sparkle effect [649].
To provide a convincing effect, the lens flare should change with the
position of the light source. King [662] creates a set of squares with different
textures to represent the lens flare. These are then oriented on a line going
from the light source position on screen through the screen’s center. When