Need a little help Vertex Arrays

Started by
9 comments, last by ChaosX2 18 years, 3 months ago
Quote:Original post by christian h
Quote: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.
<a href="http://ruggles.hopto.org>My Personal Website

This topic is closed to new replies.

Advertisement