   Verts and Indicies Question
  Hi all,I have finished writing my MD2 file importer and I have noticed that the lighting is slightly wrong with some models, I assumed this was to do with the pre-calculated normals not being applicable to every model.So I have a list of every vertex in the model from file (including repeats) and I also have the indicies list from the file. How would I loop through to extract just the unique verticies? Then once I have this list I can use the indicies to calculate and average the normals which should hopefully sort out the lighting.Thanks all.   
  Hello,I normally calculate the triangle face normal and store that in a temporary list.  Then for each vertex, start with a zero vector and add each triangle normal to that vector for every triangle that the vertex is part of.  After all of that, you normalize the resulting vector and that should be a decent approximation of the appropriate normal vector.There are ways to tweak the algorithm too - you can scale the contribution of each normal vector based on the interior angle of the triangle at the vertex to weight larger triangles more than smaller ones, but I always just used the standard version with good results.I hope that helps!   