i
i
i
i
i
i
i
i
5.6. Aliasing and Antialiasing 119
Figure 5.21. The solid blue line is the original signal, the red circles indicate uniformly
spaced sample points, and the green dashed line is the reconstructed signal. The top
figure shows a too low sample rate. Therefore, the reconstructed signal appears to be
of lower frequency. The bottom shows a sampling rate of exactly twice the frequency
of the original signal, and the reconstructed signal is here a horizontal line. It can be
proven that if the sampling rate is increased ever so slightly, perfect reconstruction is
possible.
a movie camera [404]. Because the wheel spins much faster than the camera
records images, the wheel may appear to be spinning slowly (backwards or
forwards), or may even look like it is not rotating at all. This can be seen
in Figure 5.20. The effect occurs because the images of the wheel are taken
in a series of time steps, and is called temporal aliasing.
Common examples of aliasing in computer graphics are the “jaggies” of
a rasterized line or polygon edge, flickering highlights, and when a texture
with a checker pattern is minified (see Section 6.2.2).
Aliasing occurs when a signal is being sampled at too low a frequency.
The sampled signal then appears to be a signal of lower frequency than the
original. This is illustrated in Figure 5.21. For a signal to be sampled prop-
erly (i.e., so that it is possible to reconstruct the original signal from the
samples), the sampling frequency has to be more than twice the maximum
frequency of the signal to be sampled. This is often called the sampling
theorem, and the sampling frequency is called the Nyquist
7
rate [1035, 1367]
or Nyquist limit [1332]. The Nyquist limit is also illustrated in Figure 5.20.
The fact that the theorem uses the term “maximum frequency” implies
that the signal has to be bandlimited, which just means that there are not
any frequencies above a certain limit. Put another way, the signal has to
be smooth enough relative to the spacing between neighboring samples.
A three-dimensional scene is normally never bandlimited when rendered
with point samples. Edges of polygons, shadow boundaries, and other
phenomena produce a signal that changes discontinuously and so produces
frequencies that are essentially infinite [170]. Also, no matter how closely
7
After Harry Nyquist [1889-1976], Swedish scientist, who discovered this in 1928.