Message from discussion
Team Fortress 2 Character Lighting
Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.uwaterloo.ca!not-for-mail
From: Jeff Dicker <jadic...@cgl.uwaterloo.ca>
Newsgroups: uw.cs.cs488
Subject: Re: Team Fortress 2 Character Lighting
Date: Thu, 13 Mar 2008 20:34:22 -0400
Organization: University of Waterloo
Lines: 39
Message-ID: <frch6e$fvp$1@rumours.uwaterloo.ca>
References: <Pine.GSO.4.64.0803111500530.400@services16.student.cs.uwaterloo.ca>
NNTP-Posting-Host: nullius.cgl.uwaterloo.ca
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: rumours.uwaterloo.ca 1205454862 16377 129.97.114.34 (14 Mar 2008 00:34:22 GMT)
X-Complaints-To: abuse@uwaterloo.ca
NNTP-Posting-Date: Fri, 14 Mar 2008 00:34:22 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.6 (X11/20071008)
In-Reply-To: <Pine.GSO.4.64.0803111500530.400@services16.student.cs.uwaterloo.ca>
I'm immediately struck with a couple of comments about this with respect
to the projects:
1) Note how much better the Heavy model looks because of phong shading.
There were a couple of final ray traced scenes that could have
benefited greatly from phong shading (though it was not required!).
Thanks to phong shading, the model appears to be smooth despite not
having a particularly large number of polygons (you can see the
tesolation). Implementing this in a shader (usually known as per-pixel
shading, since more values than normals may be interpolated) is trivial,
and it's also not hard to implement in a ray tracer.
2) If you are working on an OpenGL project and planning on implementing
shaders, TF2 style shading is quite possible. As Andrew pointed out,
n.l and r.v are the basic keys to diffuse and specular shading - making
the tweaks Valve did, like a half-lambertian lighting term, should be as
easy as passing a couple more variables to the shader. Some parts are
trickier, like the 2D toon-shading lookup, but if you're looking to get
some subjective marks those slides could be helpful!
-Jeff
Andrew Scherkus wrote:
> Just thought some of you might find this presentation from the Game
> Developers Conference really interesting. In summary, the makers of Team
> Fortress 2 describe the art style of the game and how they developed
> shading
> and lighting models to replicate the style of early 20th century commercial
> illustrator J.C. Leyendecker.
>
> Of particular interest are slides 27-58 where they break down every
> piece of both the view-independent and view-depenedent character
> lighting equations. You might be surprised at how many of the lighting
> equations used in A4 show up...
>
> http://www.valvesoftware.com/publications/2008/GDC2008_StylizationWithAPurpose_TF2.pdf
>
>
> Andrew