Quote:Original post by christian hQuote:Original post by ChaosX2
- Loop through every face in the mesh. For each face, check to see if it uses the
current vertex. If so, add this faces'' normal to the vertex normal.
Minor improvement for speed is
- Initialize all vertex normals to 0,0,0
- Loop through faces, calculate it's normal and then add it to all of its vertex-normals that it indexes to
- Normalize all vertex-normals
At least that's how I do it.. :)
ch.
Now that just makes to much sense. Thanks.