Share on other sites

Share this post

Link to post

Share on other sites

If the code you've provided is C++, as I assume it's supposed to be, then it should not even compile.

Please paste in the code exactly as you have it in your source files, as that will make it easier for us to help you. As it is now, it appears as though you have extra information going into your ComputeNormal function which could be a potential problem if you're using the wrong parameters.

As well, none of your parameters match the names of variables used in your functions. Finally, if LoadMap is being called for every vertex please pass along the iterator code so we can see how you're traversing the vertices.