FiringSquad: Home of the Hardcore Gamer - Games, Hardware, Reviews and NewsSubmit your own or view users' CPU overclocking results!

  
 Home   News   THE MATRIX   Deals   Hardware   Games   Features   Media   Products   Forums   FS China 
AddThis Social Bookmark Button

Home : Guides : Articles : FS 3D Guide: Filtering and Lighting
» Join the Greatest Gaming Community NOW! (It's free)

Already a member? Login
 


Random Gallery >> 
Click to view high-res Image!
Silent Hunter: Wolves of the Pacific Review Screenshots [74] (4)

Rodent Device (2) by PS2Fish
Round 2 Rules! (20) by fs-lyle
Sins of a Solar Empire Beta Review [Prelim 2] (5) by Itchyeyes
The Bland Addiction: World of Warcraft (17) by Discobiscuits
Bioshock: The Brutally Honest Review [Preliminary #2] (8) by Swatt
A Truely "Epic" Game: Unreal Tournament 3 Review (4) by Discobiscuits
Know Your Roots: Unreal Tournament Review [Preliminary #2] (10) by Discobiscuits
Call of Duty 4: Modern Warfare SP Review (prelim 2) (9) by jacobvandy
What is so cool about Gigabyte’s Ultra-Durable 3 technology (0) by SuperCharge
EVGA: my number 1 (0) by imagination

More Blogs >>




FS 3D Guide: Filtering and Lighting
June 08, 1999   James Yu > [View My Other Articles]
Tim Hsu > [View My Other Articles]
Product Info | User Reviews | Article Images(18) | Image Gallery | Comments | Forum Thread
Gouraud Shading

Gouraud shading, or a modified form of it, is the primary shading type used in today's games. Why is that? Well, it is not so advanced that current hardware can't handle it, and it is certainly more advanced than simple flat shading. What Gouraud shading does is take a set of points of a polygon, like a triangle, and then interpolates the lighting intensity for the rest of the points.

To do this, it uses the intensity of each vertex of the triangle, and interpolates linearly along the edges. The intensity of the vertex is taken by using the illumination of the vertex's normal. (The normal of a point is a vector that is at a right angle to that point.) The normals for the vertex are not always given, so a common method used it to take the average of all of the surfaces that come in contact with the specific vertex. Note that interpolation translates roughly to estimation, so this model of shading is not perfectly accurate. However, Gouraud shading is able to almost completely eliminate the "Mach effect" that flat shading is victim to.

FS 3D Guide: Filtering and Lighting [ Gouraud shading @ 640 x 480 ] > View Full-Size in another window.
Gouraud shading

What is the problem with Gouraud shading?

The problem with Gouraud shading, though, is that you are interpolating light intensity from the vertices of the polygon to approximate the data for the rest of the points of the polygon's face. While this does allow for smooth color gradients and shading, this is not as accurate as you could get, especially if you are trying to realistically represent reflections and specular lights. For example, if a light is meant to reflect off of the center of a polygon's face, Gouraud shading would not be able to accurately represent this because the values for light intensity for the center of the polygon's face are actually determined by the values taken from the vertices. Additionally, because Gouraud shading uses a linear interpolation of the vertices, this can cause problems with surfaces that have a good amount of curvature.

Back! Gettin' shady...     Phong shading Next!
Blog + Share: Digg Del.icio.us Reddit SU furl • More: AddThis Social Bookmark Button
Send This Article to a Friend!  
Table of Contents
  Print Entire Article  

MATRIX CONTENT » RANDOM MEDIA BLOG More Blogs >>
No ratings yet
» Please rate this
Read this Media-Blog entry!» "I need a vacation..." (4)
by ICDP (82) Talk with this user on their Shout Box (My other blogs) Posted 8 months ago


 Latest Headlines
Atari announces open beta dates for Star Trek Online (2)
Modern Warfare 2 PC outsells Call of Duty 4 (9)
Left 4 Dead 2 PC Review (6)
BioShock 2 special edition includes vinyl LP (11)
BioWare announces 1st DLC for Dragon Age Origins (3)
Today's News >>
Today's Siteseeing >>


 Table of Contents


 Quick Fact
So was this one.

FiringSquad is powered by... Back to Top Site MapContact UsAdvertise With Us Privacy StatementAbout Us  
News RSSSiteseeing RSSArticle RSS   © 1998-2009 FS Media, Inc. All Rights Reserved