Usage of glNormalPointer
Hi all,
I am experiencing a few dificulties with glNormalPointer. I have an array of flat normals with each element being a struct for x,y,z. the values stored in the array are correct as they display fine when using glNormal3f, but not when used with the drawElements command. Everything else is fine. My question is: how does OpenGL expect the normal data to be defined in the arrays? I have tried 1 array element per triangle and one array element per vertex for each triangle (all being the same values) but neither is working.
Any help would be appreciated.
thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement