How to achieve smooth tangent space normals?
For smooth surfaces (no edges) I do it like this: create space for per vertex double N[3]; //normal int cnt; per vertex init N={0.0,0.0,0.0} cnt=0; compute per face normal normal must be normalized length=1.0 !!! add this Normal to all vertexes used in face and increment cnt to all vertexes used in face per vertex … Read more