If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
An interesting spinning ball interactive animation thingy
In an ideal world (at least back in the '80s), you'd figure out the colour of a pixel in a polygon by calculating it's normal vector and applying your lighting model to it. Calculating a normal vector for every pixel is/was prohibitively expensive, so there are approximations to help.
Gouroud (sp?) shading: Calculate the normal vectors at the ends of each scanline on a polygon, calculate the colours at those endpoints, and interpolate the colour over the scanline.
Phong shading: Calculate the normal vectors at the scanline endpoints again, and interpolate the vector over the scanline, applying your lighting model as you go.
Obviously phong shading is much more expensive than gouroud, but the advantage it has is that highlights can appear within polygons, rather than just at the edges as in gouroud shading.
If I've confused anyone, this topic should be much better covered in any graphics book or tutorial.
Originally posted by SitFlyer It's all completely more clear now, NOT.
As I suspected If you've got access to any computer graphics books (look in a bookshop if nothing else), there should be a decent explanation in there. I'm afraid I couldn't find anything on the web which didn't start by throwing equations at you.
Phong?
isn't that the skinny little bathing suit that doubles as butt-floss?
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
Comment