Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Shading for Computer Topics in Burapha University

458 views

Published on

The topic for present in subject Computer Topics.
more info please check blog: http://thez9.com

Published in: Art & Photos, Technology
  • Be the first to comment

Shading for Computer Topics in Burapha University

  1. 1. Presented by: Mr. Sararith Mao ID: 52031206 Computer Graphic Topic: Shading
  2. 2. 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
  3. 3. 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).
  4. 4. 2. Smooth or Gouraud shading Every 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)
  5. 5. High polygon count. Poor polygon count.
  6. 6. 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
  7. 7. Referrences: • http://en.wikipedia.org/wiki/Phong_shading • http://en.wikipedia.org/wiki/Gouraud_shading • http://en.wikipedia.org/wiki/Shading

×