Phong lighting model

from Wikipedia, the free encyclopedia
The three individual components of the Phong lighting model

The Phong lighting model is a lighting model in 3D computer graphics that is used to calculate the lighting of objects. The model was named after its developer Bùi Tường Phong and was first presented in 1975 ( Illumination for Computer Generated Pictures , June 1975).

The Phong model is suitable for representing smooth, plastic-like surfaces. The highlight of the surface is described by the term , the parameter determining the roughness of the surface.

It is a completely empirical model that is not built on any physical basis. This means that it contradicts the law of conservation of energy , which dictates that a surface can reflect at most as many photons as it hits. Other lighting models such as the Schlick or Cook-Torrance model , however, are completely or at least approximately physically plausible. In addition, the Phong lighting model is slow to calculate compared to the Blinn lighting model , which enables a comparable image quality. Despite its shortcomings, the Phong lighting model is still widely used due to its simplicity.

formula

Simplifications of the Phong lighting model

  • Light sources are point-like
  • the geometry of the surfaces, except for the surface normals, is ignored
  • diffuse and specular reflection is only modeled locally
  • ambient reflection is modeled globally

Composition of the reflected light

In the Phong lighting model, the reflection of light is described as a combination of ambient, ideally diffuse and ideally specular reflection.

The individual components are described below.

Ambience component of the reflected light

The ambient component of the reflected light is independent of the angle of incidence of the light beam of the point light source and of the viewing angle of the observer of the scene. It depends on the ambient light, which is constant for all points on all surfaces, and an empirically determined reflection factor (material constant).

With

  • ... the intensity of the ambient light
  • ... material constant

Diffuse component of the reflected light

With diffuse reflection, the light is reflected in all directions regardless of the viewer's position ( Lambert's law ). The light intensity of the reflected light from the point light source nevertheless depends on the angle of incidence, since the illuminance of the surface changes with the angle of incidence. The light intensity of the diffuse component is thus dependent on the angle of incidence of the light beam from the point light source and on an empirically determined reflection factor (material constant), but independent of the viewing angle of the observer of the scene.

With

  • ... luminous intensity of the incident light beam from the point light source
  • ... empirically determined reflection factor for diffuse components of the reflection
  • ... angle between the normal vector of the surface and the unit vector in the direction of the incident light beam

Specular component of the reflected light

With specular reflection, the light is reflected in a certain area around the ideal reflection direction. The light intensity of the reflected light depends on the angle of incidence of the light beam from the point light source, on an empirically determined reflection factor (material constant) as well as the surface properties and the viewing angle of the observer of the scene.

With

  • ... luminous intensity of the incident light beam from the point light source
  • ... empirically determined reflection factor for specular components of the reflection
  • ... the angle between the ideal reflection direction of the emerging light beam and the viewing direction of the observer
  • ... constant exponent to describe the surface properties (rough less than 32, smooth greater than 32, would be a perfect mirror)

Furthermore, a normalization factor should be used, which ensures that the brightness does not decrease with large mirror exponents ( ).

It is usually taken as a useful factor .

This results in the following formula for calculating the specular reflection:

Complete formula

And here is the compound formula for the Phong lighting model:

With

Multiple light sources

If there are several light sources, the respective components are first calculated separately for each light source and then added up.

See also

literature

Individual evidence

  1. http://dept-info.labri.fr/~schlick/DOC/ewr3.html A Customizable Reflectance Model for Everyday Rendering