I am currently working with OpenGL ES 1.1 and use the DrawElements convention along with vertex, normal, texture coordinates and index arrays.
I recently came across this while exploring the idea of โโusing the Normal / Bump display, which I previously, although I could not, with OpenGL ES: http://iphone-3d-programming.labs.oreilly.com/ch08.html
I can generate a normal map of an apace object already from my 3D designer, but what I did not quite understand is whether an array of normal coordinates will be needed more if the second block of textures is implemented for normal display, or whether there will be a highlight + color texture combined with a normal card using the DOT3_RGB option?
EDIT - After exploring DOT3 Lighting a bit further, I'm not sure if the answer given by ognian is correct. This page http://www.3dkingdoms.com/tutorial.htm gives an example of its use, and if you look at the "Rendering and Final Result" code snippet, there is no normal ClientState array for regular arrays.
I also found this post here, What is DOT3 lighting? which explains it well ... but leads me to another question. In the comments, he stated that instead of translating normals, you are translating the direction of the light. I am confused by this, as if I had a game with a stationary wall ... why should I move the light for only one model? Hoping someone can give a good explanation for all this ...
source share