PDA

View Full Version : glNormalPointer with glDrawElements?



PeterK
12-19-2000, 09:45 AM
I am trying to use glNormalPointer to assign normals to each triangle in a triangle strip that is drawn using glDrawElements.

Is it possible to use glNormalPointer when the vertices are indexed like this?

If so, how are the normals applied (eg. normal,vertex, normal,vertex...; normal,vertex,vertex,vertex,...)?

PeterK
12-19-2000, 10:12 AM
I've just seen the post here (http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/000755.html) on normal arrays.

Averaging normals is necessary in this case, eh?