Horstmeyer et al., 2010; Schechner et al., 1996) will
demand diffraction and interference. A typical ap-
plication example is a lens with a depth-independent
PSF.
Diffraction and interference effects are governed
by laws from wave optics rather than geometric op-
tics. This increases the implementation complexity
but also the computation time of the simulation. The
latter is not desirable when multiple iterations are re-
quired to find the optimal positions for each mask.
The Wigner distribution function (Wigner, 1932) is
a popular light representation and is applicable for
diffraction and interference simulations in the op-
tics community. It basically models light transport
through a grating as a mathematical operation, and
can be applied in a successive fashion for multiple
gratings. The Wigner distribution function is de-
fined in the space–spatial frequency domain which
has recently been shown to have similar properties as
the space–angle domain of the light field representa-
tion (Zhang and Levoy, 2009; Oh et al., 2010). Oh et
al (Oh et al., 2010) demonstrated this idea to render
interference patterns. This technique is valid in both
close or far range (near-field and far-field), however it
is a slow process as it relies on brute-force ray tracing.
We propose a Monte Carlo-based simulation tech-
nique for the Wigner distribution function. As these
calculations are easy to perform in parallel, a GPU
implementation is presented. We show an example
configuration and corresponding PSF on Figure 1 and
show the calculation speed–up compared to the naive
calculation. The resulting computation is in the order
of a fraction of a second, thereby enabling the user
to interactively manipulate the optical configuration
or the projection plane. The proposed method can be
scaled down in precision in order to achieve real-time
performance.
2 RELATED WORK
Light is often described as an electromagnetic field
with amplitude and phase. The Huygens–Fresnel
principle is often used to represent wave propagation,
which is a convolution of point scatterers (Goodman,
2005). In contrast, geometrical optics treats light as
a collection of rays. Among the extensive efforts to
connect wave and ray optics (Wolf, 1978), the no-
table ones are the generalized radiance proposed by
Walther (Walther, 1973) and the Wigner Distribution
Function (Bastiaans, 1977; Bastiaans, 1981; Basti-
aans, 1979), where light is described in terms of lo-
cal spatial frequency, which has a simple relationship
with the angular domain. Although the generalized
radiance or the WDF can be negative, they exhibit
convenient properties and explain diffraction rigor-
ously and conveniently (Bastiaans, 1997). We pre-
fer this light representation as it allows us to create
a probability function in space and spatial frequency
for a more efficient Monte Carlo sampling.
In computer graphics, light simulation often in-
volves solving the rendering equation (Kajiya, 1986)
that describes the light propagation. Multiple tech-
niques have been proposed to render wave phenom-
ena in computer graphics. Moravec proposed a
wave model to render complex light transport effi-
ciently (Moravec, 1981), which is based on phase
tracking. This technique keeps track of the travel dis-
tance of a ray and calculates its phase. Ziegler et al.
developed a wave–based framework (Ziegler et al.,
2008), where complex values can be assigned for oc-
cluders to account for phase effects. They also imple-
mented hologram rendering based on wave propaga-
tion (with the spatial frequency) (Ziegler et al., 2007).
Stam implemented a diffraction shader based on the
Kirchhoff integral (Stam, 1999) for random or peri-
odic patterns. Unfortunately, this technique assumes
the light source and observer to be at infinity, and
therefore not suitable for our system.
3 WIGNER DISTRIBUTION
FUNCTION
The Wigner distribution function is a representation
of light commonly used in the optics community. It
is used to simulate of light in both near–field and far–
field provided that the paraxial approximation is valid.
This approximation assumes that the incoming light
direction is close to the normal direction. For the pur-
pose of plane to plane propagation of light, this as-
sumption is valid.
The microstructure geometry of a diffracting sur-
face can be represented as a complex function t(x) in
space. The amplitude a(x) of t(x) is the amount of
light passing through at position x. The phase part
φ(x) of t(x) represents the phase delay introduced to
the light due to the thickness(height profile) and/or
the refractive index of the surface. We can calculate
the Wigner distribution function (Wigner, 1932) of the
microstructure as
W (x,u) =
Z
t
x +
x
0
2
t
∗
x −
x
0
2
e
−i2πx
0
u
dx
0
(1)
where x is the position, u the spatial frequency and
∗
is the complex conjugate operator. As an incoming
wavefront parallel with the diffracting surface is dis-
torted due to the phase delay, the outgoing wave front
IMAGAPP 2011 - International Conference on Imaging Theory and Applications
20