  We performed accurate numerical calculations of angle-, time-, and
frequency-dependent radiative transfer for the relativistic motion of matter in
gamma-ray burst (GRB) models. Our technique for solving the transfer equation,
which is based on the method of characteristics, can be applied to the motion
of matter with a Lorentz factor up to 1000. The effect of synchrotron
self-absorption is taken into account. We computed the spectra and light curves
from electrons with a power-law energy distribution in an expanding
relativistic shock and compare them with available analytic estimates. The
behavior of the optical afterglows from GRB 990510 and GRB 000301c is discussed
qualitatively.
