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!
Left 4 Dead 2 Dark Carnival Screenshots PAX 09 [6] (0)

C&C:Renegade Review, wrist-slittingly good! (8) by McStu
Meditation of a Tyranid (0) by Aftermath
Scandle at EVGA! (2) by exe3
»» best haiku ever (0) by darkportal_4
Apple of your eye... (0) by SuperCharge
Overclocking: The Basics (2) by slugbug
it could have been better T_T (0) by exe3
What is so cool about Gigabyte’s Ultra-Durable 3 technology (0) by SuperCharge
War! Huh! Yeah! (aka Blatant Plagiarism) (1) by ICDP
Guide to Overclocking: OC Juice and Overclocking Your Way to Become a Better Person (2) by jarrodthome

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
I am an AMD AgentRead this Media-Blog entry!» How to Overclock Guide (2)
by SuperCharge (4) Talk with this user on their Shout Box (My other blogs) Posted 5 months ago


 Latest Headlines
Modern Warfare 2 PC limited to 9v9 matches (26)
RAGE won't support dedicated servers either (22)
NVIDIA earns $107.6 million in Q3 (2)
Battlefield Bad Company 2 beta plans announced (2)
Modern Warfare 2 launch trailer released (13)
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