Advertisement

Usage of glNormalPointer

Started by March 30, 2002 02:09 PM
0 comments, last by DMTSC 22 years, 11 months ago
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.
OpenGL expects per vertex normals (one normal per vertex, i.e. three floats per vertex).

This topic is closed to new replies.

Advertisement