PDA

View Full Version : Application of normals.



03-09-2004, 07:35 AM
Okay...I've checked out every single tutorial I could find on normals, and not a single one managed to convey what, exactly they were doing with them. I can calculate them, that's no biggie, but how do I *apply* them? And anyone who answers something like 'Use them for lighting and collision', I will hunt down and murder with a sharpened telephone pole. What I want is a clear cut example...And I CAN'T find any...

chowe6685
03-09-2004, 07:45 AM
a normal defines the orientation of a surface. They can be provided to OpenGL using the glNormal commands. They are part of the phong lighing model explained here: http://www.delphi3d.net/articles/viewarticle.php?article=phong.htm
You use them in collision detection because they are useful for defining surfaces and determining collision response. Does this make sense?

03-09-2004, 08:00 AM
If i said I alredy knew what it was, what it was for, would you be surprised? :P

When I say 'apply' I meant the down and dirty version of the word. I meant practical application....No one uses practical examples anymore. x.x It's all either abstract examples or practical application without explanation.

chowe6685
03-09-2004, 10:49 AM
first, look at the link, this gives a very detailed explanation of the phong lighting model and what normals are used for, it doesn't get much better.