Advertisement

[tutorial 10] trouble with normals

Started by July 16, 2004 11:34 AM
9 comments, last by vincoof 20 years, 4 months ago
Quote: Original post by ZealousElixir
3) You are sending the vertices in a given winding order, most likely. If those vertices are, respectively: v0, v1, v2; then I believe the proper cross is (v0-v1) x (v0-v2). This should result in a normal facing in the "front" face direction. I could be wrong about this, though.

Not wrong at all. The only thing to keep in mind is that once you have "decided" which winding order to use, you have to stick with it. Then, be it cross(v0-v1,v0-v2) or be it cross(v0-v2,v2-v1) or whatever just depends if you prefer CCW or CW.

This topic is closed to new replies.

Advertisement