Computer Graphics · Unit 8 · 5 hrs
Illumination Models and Surface Rendering Techniques
Exam-focused notes for Illumination Models and Surface Rendering Techniques (Computer Graphics, CSC214): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.
Illumination Models and Surface Rendering Techniques in short
Once the visible surfaces of a scene are known, an illumination model decides what colour and intensity to give each visible point, based on the lights in the scene and the surface's own optical properties, and a surface rendering technique decides how to apply that model efficiently across a whole polygon rather than one point at a time. This chapter covers the basic illumination models culminating in the Phong model, then the three main polygon-shading methods built on top of them.
What this unit covers
- Basic Illumination Models: Ambient light, Diffuse reflection, Specular reflection and Phong model
- Intensity attenuation and Color consideration, Transparency, Shadows
- Polygon Rendering Methods: Constant intensity shading, Gouraud shading, Phong Shading and Fast Phong Shading
Basic Illumination Models
Polygon Rendering Methods
2080 · 5 marks
How a realistic image can be generated in computer graphics? Explain fast phong shading. [5]
2079 · 5 marks
Define the term 'rendering' in computer graphics. Explain Phong Shading Method with its advantage and disadvantage. [5]
Show solved answerHide answer
Rendering in Computer Graphics and Phong Shading Method
Definition of Rendering (1 mark)
Rendering is the process of generating a final 2D image from a 3D scene description by applying lighting, shading, color, and other visual effects to the geometric objects in the scene. It transforms a mathematical model of a scene into a realistic or stylized visual output.
As stated in the notes:
"Scene description + Illumination Model + Rendering Technique = Image"
In other words, polygon (surface) rendering is the process of calculating intensity and color considerations for polygon surfaces so that objects appear realistic on screen.
Phong Shading Method (3 marks)
Phong Shading (also called Normal-Vector Interpolation Shading) is an advanced surface rendering technique that produces smooth and realistic shading across polygon surfaces.
Concept
Instead of interpolating intensity values (as in Gouraud shading), Phong Shading interpolates the surface normal vectors across each polygon surface. The illumination model is then applied at every individual pixel using the interpolated normal, producing a much more accurate and realistic result.
Algorithm / Steps
-
Calculate the surface normal vector at each vertex of the polygon using the surrounding surface geometry.
-
Interpolate the normal vectors across the entire polygon surface (both along edges and across scan lines) to obtain a normal vector at every interior pixel.
-
Apply the illumination model (e.g., Phong illumination model with ambient, diffuse, and specular components) at each pixel using its interpolated normal vector.
-
Assign the computed intensity to each pixel on the surface.
Diagram (Conceptual)
Vertex N1 Vertex N2
*-----------------*
\ Interpolated \
\ Normals at \
\ each pixel \
*-----------------*
Vertex N3
At every pixel inside the polygon, a normal is interpolated and lighting is computed individually.
Advantages of Phong Shading (0.5 mark)
- Produces highly realistic images with accurate specular highlights.
- Eliminates the Mach band effect (intensity discontinuities visible in flat shading).
- Handles specular reflections much better than Gouraud shading because lighting is computed per pixel.
- Gives smooth shading across polygon surfaces.
Disadvantages of Phong Shading (0.5 mark)
- Computationally expensive because the illumination model must be applied at every pixel rather than just at vertices.
- Slower rendering compared to flat shading and Gouraud shading.
- Requires more memory and processing power, making it less suitable for real-time applications (historically).
Summary Table
| Feature | Flat Shading | Phong Shading |
|---|---|---|
| Interpolation | None | Normal vectors |
| Realism | Low | High |
| Computation | Least | Most |
| Specular Highlights | Poor | Accurate |
Conclusion: Phong Shading is one of the most realistic polygon rendering methods because it computes lighting at every pixel using interpolated normals, at the cost of higher computational requirements.
2078 · 5 marks
Define intensity attenuation. Distinguish between Gouraud shading and Phong shading model. [5]
Show solved answerHide answer
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}$$
where d is the distance between the light source and the object.
- 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.
2077 · 10 marks
Define realism in human perception. What is the significance difference between rendering and image synthesis in creating computer generated 3D image? Describe any two polygon rendering methods.[10]
Intensity attenuation and Color consideration, Transparency, Shadows
2075 · 5 marks
How can we detect shadows in computer graphics? List the challenged in computing light model. [5]
Make Unit 8 stick
Practice CSC214 with flashcards & quizzes