I'm trying to load MD2 files into OpenGL, but I noticed that most sample programs just use
pre-compiled list of normals. something like that.....
//table of precalculated normals { -0.525731f, 0.000000f, 0.850651f }, { -0.442863f, 0.238856f, 0.864188f }, { -0.295242f, 0.000000f, 0.955423f }, { -0.309017f, 0.500000f, 0.809017f }, ... ...
Well, that might sound pretty silly, but I thought that each model is made up of different triangles, so how then is it possible that you can use one set of precompiled normals to render all the models? This seems odd and any ideas would be appreciated.
c ++ c opengl
Dr deo
source share