- Asked 6/25
- 2069 Chaitra · 7 marks
- 2075 Chaitra · 7 marks
- 2069 Asar · 6 marks
- 2068 Chaitra · 8 marks
- 2072 Kartik · 7 marks
- 2072 Chaitra · 5 marks
Gouraud shading for polygon rendering
Short answer
Gouraud shading calculates vertex intensities using averaged normals and the illumination model, then linearly interpolates them along edges and scanlines. It is fast and removes the faceted look, but highlights inside polygons can be missed, Mach bands may appear, and silhouettes remain polygonal.
Explain the Gouraud shading (intensity-interpolation scheme) for polygon rendering, with its pros and cons.
Gouraud shading (intensity-interpolation scheme) renders a polygon mesh by computing the intensity at each vertex with an illumination model and then linearly interpolating these intensities over the polygon surface.
Steps
-
Vertex normal: find the normal at each vertex by averaging the normals of all polygons meeting at that vertex.
N_v = (Σ N_k) / |Σ N_k|
-
Vertex intensity: apply the illumination model at each vertex using N_v.
-
Edge interpolation: for a scan line y_s crossing an edge from vertex 1 (y1) to vertex 2 (y2):
I_a = ((y_s − y2)/(y1 − y2))·I1 + ((y1 − y_s)/(y1 − y2))·I2
(Incremental form: moving down one scan line, I' = I + (I2 − I1)/(y1 − y2).)
-
Scan-line interpolation: between the left (a) and right (b) intersection points, for pixel x_p:
I_p = ((x_b − x_p)/(x_b − x_a))·I_a + ((x_p − x_a)/(x_b − x_a))·I_b
(Incremental form along the scan line: I_{p+1} = I_p + (I_b − I_a)/(x_b − x_a).)
-
Fill each pixel with I_p.
I1 o
|\
Ia o--o Ib I_p interpolated between Ia and Ib
| \
I2 o-----o I3
Advantages
- Removes the faceted look and gives smooth shading.
- Much faster than Phong shading, since the illumination model is applied only at the vertices and the interpolation is linear and incremental.
Disadvantages
- Specular highlights inside a polygon may be missed or appear wrong, because only vertex intensities are used.
- The Mach-band effect (visible bright or dark bands) can appear at polygon boundaries.
- The silhouette still looks polygonal.
- Results depend on the orientation of the polygon on the screen.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Gouraud intensity at midpoint P · Computer Graphics, chapter 8
- Compare Gouraud and Phong shading · Computer Graphics, chapter 8 · asked 7×
- Flat (constant intensity) shading · Computer Graphics, chapter 8 · asked 2×
- Phong shading method · Computer Graphics, chapter 8 · asked 9×
- Disadvantage of intensity interpolation · Computer Graphics, chapter 8
- Distribution layouts, pros/cons, improvements · Water Supply Engineering, chapter 7 · asked 4×
- Phase shift method of SSB generation: pros and cons · Communication Systems, chapter 2 · asked 2×
- Collective intelligence pros and cons · Information System, chapter 4
- Brushless excitation pros and cons · Power Plant Design, chapter 4