Quote:
|
Originally Posted by Sir Pantalones
Okay, that's cool so far, but how did they apply shadowing to it? : P
|
well, each position on the 3D surface has an arrow pointing away from Stan (a 'normal vector')
(like this:
http://www.biocrawler.com/w/images/f...ace_normal.png)
one way to apply shadow on Stan is by calculating the angle between this normal vector and the ray between a light-source and the position on Stan (with the normal-vector).
if this angle is small, you'll have a highlight at that point, if not, you'll have a shadow (you're just making the texture a little brighter/darker at that position). There are some other techniques you can apply here, like making the whole shading-procedure dependant of the camera position/direction (as well as the position of any light source)