Introduction: Ray Tracing and Rasterization
The problem of rendering 3D graphics can be conceptually presented as finding all intersections between a set of "primitives" (typically triangles or polygons) and a set of "rays" (typically one or more per pixel).
Up to 2010 all typical graphic acceleration boards, called graphics processing units (GPUs), use rasterization algorithms. The ray tracing algorithm solves the rendering problem in a different way. In each step, it finds all intersections of a ray with a set of relevant primitives of the scene.
Both approaches have their own benefits and drawbacks. Rasterization can be performed using devices based on a stream computing model, one triangle at the time, and access to the complete scene is needed only once. The drawback of rasterization is that non-local effects, required for an accurate simulation of a scene, such as reflections and shadows are difficult; and refractions nearly impossible to compute.
The ray tracing algorithm is inherently suitable for scaling by parallelization of individual ray renders. However anything other than ray casting requires recursion of the ray tracing algorithm (and random access to the scene graph) to complete their analysis, since reflected, refracted, and scattered rays require that various parts of the scene be re-accessed in a way not easily predicted. But it can easily compute various kinds of physically correct effects, providing much more realistic impression than rasterization.
Whilst the complexity of the computation for rasterization scales linearly with number of triangles the complexity of a properly implemented ray tracing algorithm scales logarithmically; this is due to objects (triangles and collections of triangles) being placed into BSP trees or similar structures, and only being analyzed if a ray intersects with the bounding volume of the binary space partition.
Read more about this topic: Ray Tracing Hardware
Famous quotes containing the words ray and/or tracing:
“I paint what cannot be photographed, that which comes from the imagination or from dreams, or from an unconscious drive. I photograph the things that I do not wish to paint, the things which already have an existence.”
—Man Ray (18901976)
“Our life is a faint tracing on the surface of mystery, like the idle, curved tunnels of leaf miners on the face of a leaf. We must somehow take a wider view, look at the whole landscape, really see it, and describe whats going on here. Then we can at least wail the right question into the swaddling band of darkness, or, if it comes to that, choir the proper praise.”
—Annie Dillard (b. 1945)