ArticleslgStudy

computer science

Phong reflection model

Phong reflection model is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Phong reflection model rather than just read about it. In short: The Phong reflection model (also called Phong illumination or Phong lighting) is an empirical model of the local illumination of points on a surface designed by the computer graphics researcher Bui Tuong Phong. In 3D computer graphics, it is sometimes referred to as "Phong shading", particularly if the model is used with the interpolation method of the same name and in the context of pixel shaders or other places wh…

Phong reflection model — main illustration
Phong reflection model — illustration

Key takeaways

  • Phong reflection model belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Phong reflection model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Phong reflection model from memory before moving on to harder problems.

Reference excerpt

The Phong reflection model (also called Phong illumination or Phong lighting) is an empirical model of the local illumination of points on a surface designed by the computer graphics researcher Bui Tuong Phong. In 3D computer graphics, it is sometimes referred to as "Phong shading", particularly if the model is used with the interpolation method of the same name and in the context of pixel shaders or other places where a lighting calculation can be referred to as “shading”.

History The Phong reflection model was developed by Bui Tuong Phong at the University of Utah, who published it in his 1975 Ph.D. dissertation. It was published in conjunction with a method for interpolating the calculation for each individual pixel that is rasterized from a polygonal surface model; the interpolation technique is known as Phong shading, even when it is used with a reflection model other than Phong's. Phong's methods were considered radical at the time of their introduction, but have since become the de facto baseline shading method for many rendering applications. Phong's methods have proven popular due to their generally efficient use of computation time per rendered pixel.

Concepts Phong reflection is an empirical model of local illumination. It describes the way a surface reflects light as a combination of the diffuse reflection of rough surfaces with the specular reflection of shiny surfaces. It is based on Phong's informal observation that shiny surfaces have small intense specular highlights, while dull surfaces have large highlights that fall off more gradually. The model also includes an ambient term to account for the small amount of light that is scattered about the entire scene. For each light source in the scene, components i s {\displaystyle i_{\text{s}}} and i d {\displaystyle i_{\text{d}}} are defined as the intensities (often as RGB values) of the specular and diffuse components of the light sources, respectively. A single term i a {\displaystyle i_{\text{a}}} controls the ambient lighting; it is sometimes computed as a sum of contributions from all light sources. For each material in the scene, the following parameters are defined:

k s {\displaystyle k_{\text{s}}} , which is a specular reflection constant, the ratio of reflection of the specular term of incoming light,

k d {\displaystyle k_{\text{d}}} , which is a diffuse reflection constant, the ratio of reflection of the diffuse term of incoming light (Lambertian reflectance),

k a {\displaystyle k_{\text{a}}} , which is an ambient reflection constant, the ratio of reflection of the ambient term present in all points in the scene rendered, and

α {\displaystyle \alpha } , which is a shininess constant for this material, which is larger for surfaces that are smoother and more mirror-like. When this constant is large the specular highlight is small.

Furthermore, there is

lights {\displaystyle {\text{lights}}} , which is the set of all light sources,

L ^ m {\displaystyle {\hat {L}}_{m}} , which is the direction vector from the point on the surface toward each light source ( m {\displaystyle m} specifies the light source),

N ^ {\displaystyle {\hat {N}}} , which is the normal at this point on the surface,

R ^ m {\displaystyle {\hat {R}}_{m}} , which is the direction that a perfectly reflected ray of light would take from this point on the surface, and

V ^ {\displaystyle {\hat {V}}} , which is the direction pointing towards the viewer (such as a virtual camera). Then the Phong reflection model provides an equation for computing the illumination of each surface point I p {\displaystyle I_{\text{p}}} :

… excerpt ends here. Continue reading the full article.

Illustrations

Phong reflection model: Vectors for calculating Phong and Blinn–Phong shading
Vectors for calculating Phong and Blinn–Phong shading

Worked examples

Example 1 — a first encounter with Phong reflection model

Start with the simplest possible case. Write down what Phong reflection model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Phong reflection model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Phong reflection model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Phong reflection model

In research
Phong reflection model appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Phong reflection model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Phong reflection model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer graphics algorithms, Shading, Vietnamese inventions, so understanding it makes those chapters shorter.
In everyday life
Look for Phong reflection model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Phong reflection model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Phong reflection model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Phong reflection model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Phong reflection model in simple terms?

The Phong reflection model (also called Phong illumination or Phong lighting) is an empirical model of the local illumination of points on a surface designed by the computer graphics researcher Bui Tuong Phong. In 3D computer graphics, it is sometimes referred to as "Phong shading", particularly if…

Why does Phong reflection model matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Phong reflection model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Phong reflection model.

Tags

  • Computer graphics algorithms
  • Shading
  • Vietnamese inventions

Keep exploring