infinitecmdz
02-20-2004, 08:10 AM
hello guys,
I have a smal doubt. I'm using vertex arrays in my program and i use the glNormalPointer() to specify the normals. My program runs fine but the object is not affected by the light. I have given an array of face normals to the function glNormalPointer(). Should i give it vertex normals? how do i calculate the vertex normals if so?
better still, is there any software or utility that imports a model and tells us the vertex positions as well as the normals for each vertex?
Thanx
I have a smal doubt. I'm using vertex arrays in my program and i use the glNormalPointer() to specify the normals. My program runs fine but the object is not affected by the light. I have given an array of face normals to the function glNormalPointer(). Should i give it vertex normals? how do i calculate the vertex normals if so?
better still, is there any software or utility that imports a model and tells us the vertex positions as well as the normals for each vertex?
Thanx