PDA

View Full Version : Vertex Arrays



JM
10-01-2000, 11:43 PM
I have got some trouble with the vertex array. It is possible to set a different Index Array for Color and Vertex? I know this feature from Java3D.

Thanks a lot for your replies.

Olive
10-02-2000, 04:47 AM
No, you can't do that will openGL vertex arrays. It would sure be user friendly but it wouldn't make much sense in terms of optimization. The idea behind vertex arrays is to transform a vertex complete with attributes (color and tex coords - the normal is only there to compute the color value with a lighting equation) once even if its used more times. If you start adding an index per attribute, the driver will have to keep track of each individual combination !