Subsurface scattering (SSS), also known as subsurface light transport (SSLT), is a mechanism of light transport in which light that penetrates the surface of a translucent object is scattered by interacting with the material and exits the surface potentially at a different point. Light generally penetrates the surface and gets scattered a number of times at irregular angles inside the material before passing back out at a different angle than it would have had if it had been reflected directly off the surface.
Subsurface scattering is important for realistic 3D computer graphics, being necessary for the rendering of materials such as marble, skin, leaves, wax, and milk. If subsurface scattering is not implemented, the material may look unnatural, resembling plastic or metal.
Physics and significance
The effect arises from the physical properties of semitransparent materials, which absorb a portion of incoming light. An inherent property of such materials is absorption: the further light travels through the material, the greater the proportion that is absorbed. This means a measure of the distance light travels through a material is needed to accurately simulate the phenomenon.
In human skin, for example, only about 6% of reflectance is direct; approximately 94% results from subsurface scattering. This makes accurate modeling of the effect essential for photorealistic rendering of human subjects.
Rendering techniques
Because computing full subsurface scattering is computationally expensive, many real-time computer graphics algorithms only compute reflectance at an object's surface. Several techniques have been developed to approximate or simulate subsurface scattering with varying degrees of accuracy.
Random walk subsurface scattering
Published by Pixar, this technique is considered the state of the art and is usually integrated into a path-tracing renderer. It simulates the behavior of real photons by tracing a light path into the material, generating new paths using a Lambertian distribution around the inverted normal, then picking new directions at multiple steps to scatter the light path further. Isotropic scattering is simulated by picking random directions evenly along a sphere, while anisotropic scattering is typically simulated using the Henyey-Greenstein phase function. Human skin, for example, exhibits anisotropic scattering. Optical depth and absorption are applied based on path length using the Beer-Lambert law.
Depth map based subsurface scattering
This method estimates light travel distance using depth maps, in a manner similar to shadow mapping. The scene is rendered from the light's point of view into a depth map so that the distance to the nearest surface is stored. The depth map is then projected onto the scene and re-rendered, allowing the distance light has traveled through an object to be estimated. The measure of distance obtained can be used to index into an artist-created one-dimensional texture that falls off exponentially with distance, enabling the creation of materials such as marble, jade, and wax. Depth peeling can address issues with non-convex models and varying densities beneath the surface.
Texture space diffusion
This technique, pioneered in rendering faces for The Matrix Reloaded, simulates diffusion by unwrapping a mesh using a vertex shader, calculating lighting based on original vertex coordinates, and remapping vertices using UV texture coordinates. This produces a two-dimensional image of the object's lighting, which can be processed and reapplied as a light map. Diffusion is simulated by blurring the light map texture. The amount of blurring required to accurately model subsurface scattering in skin remains under active research. For human skin, the broadest scattering occurs in the red channel, followed by green, with blue exhibiting very little scattering. A benefit of this method is its independence from screen resolution, as shading is performed once per texel rather than for every pixel.
Applications
Subsurface scattering is widely used across computer graphics industries, including film visual effects, video game rendering, and product visualization. It is essential for rendering realistic skin, wax, marble, milk, leaves, and other translucent materials in software tools such as Blender, V-Ray, Substance 3D Painter, and Marmoset Toolbag.