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?
then youre in trouble. the same index is used for everything, so the 5th vertex will use the 5th normal. calculating the vertex normal means either averaging the surrounding face normals or duplicating the vertex (for sharp edges etc. you dont want an average).
im more or less sure that most 3d modelling programs will give you per vertex normals or maybe even both. if not, you get all the extra info you often dont want (edges, neighbours, etc.) and can use that to calculate average normals.
but i really begin to wonder what kind of questions are asked in the beginners section.
could you tell me how i can find the vertex normsls in 3d studio max or in maya? I have access to these packages but i don’t know how to find the component details,i.e vertex positions and vertex normals.