CSC214 ยท 2078 ยท 5 marks
Define intensity attenuation. Distinguish between Gouraud shading and Phong shading model.
Define intensity attenuation. Distinguish between Gouraud shading and Phong shading model. [5]
Quick answer
where d is the distance between the light source and the object.
Intensity Attenuation and Shading Models
Intensity Attenuation (2 marks)
Definition: The rate of decrease in intensity with respect to the distance between the light source and objects is called intensity attenuation.
- If a point light source is used, the intensity attenuation is given by:
$$\text{Attenuation} = \frac{1}{d^2}$$
- If a distributed light source is used, the intensity attenuation factor is given by the function:
$$f(d) = \frac{1}{a_0 + a_1 d + a_2 d^2}$$
where:
- $a_0$, $a_1$, $a_2$ are surface (attenuation) parameters
- $d$ is the distance between the object and the distributed light source
Distinction Between Gouraud Shading and Phong Shading (3 marks)
| S.No. | Gouraud Shading | Phong Shading |
|---|---|---|
| 1. | Named after Henri Gouraud. | Named after Bui Tuong Phong. |
| 2. | Computes illumination at border vertices and interpolates intensity/color at every interior point of the polygon surface. | Computes illumination by interpolating surface normals at every pixel and then applying the lighting equation per pixel. |
| 3. | Interpolates colors along edges and scan lines. | Interpolates normals instead of colors. |
| 4. | Less expensive computationally. | More expensive than Gouraud shading. |
| 5. | Lighting equation is applied at each vertex. | Lighting equation is applied at each pixel. |
| 6. | Requires moderate processing and time; produces acceptable quality. | Requires complex processing and is slower, but produces better (more realistic) quality images. |
Summary: Gouraud shading is faster but may miss specular highlights at polygon interiors since it only evaluates lighting at vertices. Phong shading is more realistic because it evaluates the lighting model at every pixel using interpolated normals, making it the more preferred method for high-quality rendering despite its higher computational cost.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.