Reflection (computer graphics)

Source: Wikipedia, the free encyclopedia.
Ray traced model demonstrating specular reflection

Reflection in computer graphics is used to render reflective objects like mirrors and shiny surfaces.

Accurate reflections are commonly computed using

environment mapping. Reflections on shiny surfaces like wood or tile can add to the photorealistic effects of a 3D rendering
.

Approaches to reflection rendering

environment mapping
(middle), and screen space reflections (right)

For rendering environment reflections there exist many techniques that differ in precision, computational and implementation complexity. Combination of these techniques are also possible.

rasterization
.

Reflections on planar surfaces, such as planar mirrors or water surfaces, can be computed simply and accurately in real time with two pass rendering — one for the viewer, one for the view in the mirror, usually with the help of stencil buffer.[1] Some older video games used a trick to achieve this effect with one pass rendering by putting the whole mirrored scene behind a transparent plane representing the mirror.[2]

Reflections on non-planar (curved) surfaces are more challenging for real time rendering. Main approaches that are used include:

Types of reflection

Polished

- A polished reflection is an undisturbed reflection, like a mirror or chrome surface.

Blurry

- A blurry reflection means that tiny random bumps on the surface of the material causes the reflection to be blurry.

Metallic

- A reflection is metallic if the highlights and reflections retain the color of the reflective object.

Glossy

- This term can be misused: sometimes, it is a setting which is the opposite of blurry (e.g. when "glossiness" has a low value, the reflection is blurry). Sometimes the term is used as a synonym for "blurred reflection". Glossy used in this context means that the reflection is actually blurred.

Polished or mirror reflection

Mirror on wall rendered with 100% reflection

Mirrors are usually almost 100% reflective.

Metallic reflection

The large sphere on the left is blue with its reflection marked as metallic. The large sphere on the right is the same color but does not have the metallic property selected.

Normal (nonmetallic) objects reflect light and colors in the original color of the object being reflected. Metallic objects reflect lights and colors altered by the color of the metallic object itself.

Blurry reflection

The large sphere on the left has sharpness set to 100%. The sphere on the right has sharpness set to 50% which creates a blurry reflection.

Many materials are imperfect reflectors, where the reflections are blurred to various degrees due to surface roughness that scatters the rays of the reflections.

Glossy reflection

The sphere on the left has normal, metallic reflection. The sphere on the right has the same parameters, except that the reflection is marked as "glossy".

Fully glossy reflection, shows highlights from light sources, but does not show a clear reflection from objects.

Examples of reflections

Wet floor reflections

The wet floor effect

better source needed
] is a graphic effects technique popular in conjunction with Web 2.0 style pages, particularly in logos. The effect can be done manually or created with an auxiliary tool which can be installed to create the effect automatically. Unlike a standard computer reflection (and the Java water effect popular in first-generation web graphics), the wet floor effect involves a gradient and often a slant in the reflection, so that the mirrored image appears to be hovering over or resting on a wet floor.

See also

References

  1. ^ Kligard, Mark (1999). "Improving Shadows and Reflections via the Stencil Buffer". ResearchGate: 7. Retrieved 25 April 2020.
  2. ^ Off Camera Secrets, Metal Gear Solid: Twin Snakes - Boundary Break. 2016-11-28. Event occurs at 4:32. Retrieved 25 April 2020.
  3. .
  4. ^ Hongtongsak, Kevin. "Dynamic Cubemapping". people.engr.tamu.edu. Retrieved 2024-03-09.
  5. ^ Kasyan, Nickolay; Schulz, Nicolas; Sousa, Tiago (18 August 2011). "Secrets of CryENGINE 3 Graphics Technology" (PDF). Retrieved 27 November 2022.
  6. ^ Nate. "WetFloor". Archived from the original on 2008-05-31.