Cone tracing and
beam tracing Beam tracing is an algorithm to simulate wave propagation.
It was developed in the context of computer graphics to render 3D scenes,
but it has been also used in other similar areas such as acoustics and
electromagnetism simulations.
Beam tracin ...
are a derivative of the
ray tracing algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
that replaces rays, which have no thickness, with thick rays.
Principles
In
ray tracing, rays are often modeled as geometric ray with no thickness to perform efficient geometric queries such as a ray-triangle intersection. From a
physics of light transport point of view, however, this is an inaccurate model provided the pixel on the sensor plane has non-zero area.
In the simplified
pinhole camera
A pinhole camera is a simple camera without a lens but with a tiny aperture (the so-called ''Pinhole (optics), pinhole'')—effectively a light-proof box with a small hole in one side. Light from a scene passes through the aperture and projects a ...
optics model, the energy reaching the pixel comes from the integral of radiance from the
solid angle
In geometry, a solid angle (symbol: ) is a measure of the amount of the field of view from some particular point that a given object covers. That is, it is a measure of how large the object appears to an observer looking from that point.
The poin ...
by which the sensor pixel sees the scene through the pinhole at the focal plane. This yields the key notion of pixel footprint on surfaces or in the
texture space
Texture mapping is a term used in computer graphics to describe how 2D images are projected onto 3D models. The most common variant is the UV unwrap, which can be described as an inverse paper cutout, where the surfaces of a 3D model are cut ap ...
, which is the back projection of the pixel on to the scene. Note that this approach can also represent a lens-based camera and thus
depth of field
The depth of field (DOF) is the distance between the nearest and the farthest objects that are in acceptably sharp focus (optics), focus in an image captured with a camera. See also the closely related depth of focus.
Factors affecting depth ...
effects, using a cone whose cross-section decreases from the lens size to zero at the
focal plane
In Gaussian optics, the cardinal points consist of three pairs of points located on the optical axis of a rotationally symmetric, focal, optical system. These are the '' focal points'', the principal points, and the nodal points; there are two ...
, and then increases.
Real optical system do not focus on exact points because of
diffraction
Diffraction is the deviation of waves from straight-line propagation without any change in their energy due to an obstacle or through an aperture. The diffracting object or aperture effectively becomes a secondary source of the Wave propagation ...
and imperfections. This can be modeled with a
point spread function
The point spread function (PSF) describes the response of a focused optical imaging system to a point source or point object. A more general term for the PSF is the system's impulse response; the PSF is the impulse response or impulse response ...
(PSF) weighted within a solid angle larger than the pixel.
From a signal processing point of view, ignoring the
point spread function
The point spread function (PSF) describes the response of a focused optical imaging system to a point source or point object. A more general term for the PSF is the system's impulse response; the PSF is the impulse response or impulse response ...
and approximating the integral of radiance with a single, central sample (through a ray with no thickness) can lead to strong
aliasing
In signal processing and related disciplines, aliasing is a phenomenon that a reconstructed signal from samples of the original signal contains low frequency components that are not present in the original one. This is caused when, in the ori ...
because the "projected geometric signal" has very high frequencies exceeding the
Nyquist-Shannon maximal frequency that can be represented using the uniform pixel sampling rate.
The physically based image formation model can be approximated by the convolution with the
point spread function
The point spread function (PSF) describes the response of a focused optical imaging system to a point source or point object. A more general term for the PSF is the system's impulse response; the PSF is the impulse response or impulse response ...
assuming the function is shift-invariant and linear. In practice, techniques such as
multisample anti-aliasing
Multisample anti-aliasing (MSAA) is a type of spatial anti-aliasing, a technique used in computer graphics to remove jaggies.
It is an optimization of supersampling, where only the necessary parts are sampled more. Jaggies are only noticed in ...
estimate this cone-based model by oversampling the signal and then performing a convolution (the reconstruction filter). The backprojected cone footprint onto the scene can also be used to directly pre-filter the geometry and textures of the scene.
Note that contrary to intuition, the reconstruction filter should not be the pixel footprint (as the pinhole camera model would suggest), since a
box filter has poor spectral properties. Conversely, the ideal
sinc function
In mathematics, physics and engineering, the sinc function ( ), denoted by , has two forms, normalized and unnormalized..
In mathematics, the historical unnormalized sinc function is defined for by
\operatorname(x) = \frac.
Alternatively, ...
is not practical, having infinite support with possibly negative values which often creates
ringing artifacts
In signal processing, particularly digital image processing, ringing artifacts are Artifact (error), artifacts that appear as spurious signals near sharp transitions in a signal. Visually, they appear as bands or "ghosts" near edges; audibly, t ...
due to the
Gibbs phenomenon
In mathematics, the Gibbs phenomenon is the oscillatory behavior of the Fourier series of a piecewise continuously differentiable periodic function around a jump discontinuity. The Nth partial Fourier series of the function (formed by summing ...
. A
Gaussian
Carl Friedrich Gauss (1777–1855) is the eponym of all of the topics listed below.
There are over 100 topics all named after this German mathematician and scientist, all in the fields of mathematics, physics, and astronomy. The English eponymo ...
or a
Lanczos filter are considered good compromises.
Computer graphics models
Cone and Beam early papers rely on different simplifications: the first considers a circular section and treats the intersection with various possible shapes. The second treats an accurate pyramidal beam through the pixel and along a complex path, but it only works for
polyhedrical shapes.
Cone tracing solves certain problems related to
sampling and aliasing, which can plague conventional ray tracing. However, cone tracing creates a host of problems of its own. For example, just intersecting a cone with scene geometry leads to an enormous variety of possible results. For this reason, cone tracing has remained mostly unpopular. In recent years, increases in computer speed have made
Monte Carlo
Monte Carlo ( ; ; or colloquially ; , ; ) is an official administrative area of Monaco, specifically the Ward (country subdivision), ward of Monte Carlo/Spélugues, where the Monte Carlo Casino is located. Informally, the name also refers to ...
algorithms like
distributed ray tracing Distribution may refer to:
Mathematics
*Distribution (mathematics), generalized functions used to formulate solutions of partial differential equations
*Probability distribution, the probability of a particular value or value range of a varia ...
- i.e. stochastic explicit integration of the pixel - much more used than cone tracing because the results are exact provided enough samples are used. But the convergence is so slow that even in the context of off-line rendering a huge amount of time can be required to avoid
noise
Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
.
Differential cone-tracing, considering a differential angular neighborhood around a ray, avoids the complexity of exact geometry intersection but requires a LOD representation of the geometry and appearance of the objects.
MIPmapping
In computer graphics, a mipmap (''mip'' being an acronym of the Latin phrase ''multum in parvo'', meaning "much in little") is a pre-calculated, optimization (computer science), optimized sequence of digital image, images, each of which has an i ...
is an approximation of it limited to the integration of the surface texture within a cone footprint. Differential ray-tracing
[Homan Igehy. "Tracing Ray Differentials". http://www.graphics.stanford.edu/papers/trd/] extends it to textured surfaces viewed through complex paths of cones reflected or refracted by curved surfaces.
Raymarching methods over
signed distance fields (SDFs) naturally allow easy use of cone-like tracing, at zero additional cost to the tracing, and both speeds up tracing and improves quality.
See also
*
Anisotropic filtering
In 3D computer graphics, anisotropic filtering (AF) is a technique that improves the appearance of Texture filtering, textures, especially on surfaces viewed at sharp Viewing angle, angles. It helps make textures look sharper and more detailed ...
*
Sampling (signal processing)
In signal processing, sampling is the reduction of a continuous-time signal to a discrete-time signal. A common example is the conversion of a sound wave to a sequence of "samples".
A sample is a value of the signal at a point in time and/or ...
*
Spatial anti-aliasing
In digital signal processing, spatial anti-aliasing is a technique for minimizing the distortion artifacts (aliasing) when representing a high-resolution image at a lower resolution. Anti-aliasing is used in digital photography, computer graphics ...
References
{{Computer graphics
Global illumination algorithms
Computer graphics