shading for computer topics in burapha university
TRANSCRIPT
Presented by:
Mr. Sararith Mao
ID: 52031206
Computer Graphic Topic:
Shading
Introduction to Shading
• Shading is a process used in drawing the levels of shadow of polygon by applying media with a darker shade for darker areas, and a lighter shade for lighter areas.
In this topic I will say about flat shading, flat shading, and phong shading
1. Flat shading
During scan conversion, the entire surface of one polygon has only one color. It is easy to compute and least accurate.
In Open GL, we can specify flat shading through glShadeModel(GL_FLAT).
2. Smooth or Gouraud shadingEvery vertices has its own normal. The
concept is that smooth shading compute each vertices during scan conversion and interpolate colors across all polygon pixels depends on the normal. This method is a superior of flat shading and require more processing, but less accurate to polygon. In OpenGL, we can define smooth shading by glShadeModel(GL_SMOOTH)
High polygon count. Poor polygon count.
It computes illumination for every pixel during scan conversion and also find the interpolate normal too. Although it’s hard to do, but the result of polygon is accurate than other methods. It’s not supported in Open GL directly.
3. Phong shading
Referrences:
• http://en.wikipedia.org/wiki/Phong_shading
• http://en.wikipedia.org/wiki/Gouraud_shading
• http://en.wikipedia.org/wiki/Shading