Hello,
The player.c file uses 4 normals:
-- Begin Code --
glBegin(GL_TRIANGLES);
glNormal3fv(f->normal);
for (i=0; i<3; ++i) {
glNormal3fv(normalL[3*p+i]);
glVertex3fv(mesh->pointL[f->points[i]].pos);
}
glEnd();
-- End Code --
According to my OpenGL redbook, a normal is bind to a vertex, so there's no
use in the first glNormal* call since it will most likly be overwritten by
the following glNormal call. But what is the normal of a face supposed todo,
if you already have normals for each vertex?
Hylke
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel