Quick Vertex Array Question

Hi there,

Been looking around the web for information on using vertex arrays and while I’ve found enough information to give me a general idea of how they work, most of the stuff I’ve found has been unclear and poorly written. Could someone please either just cleanly layout the usage of vertex arrays for vertex, normal and texture coord information, or perhaps point me somewhere that explains it decently? Thanks much!

Skip vertex arrays. Use VBO’s. You can find NEHE VBO example.

yooyo

alrighty, will look into those, then. thanks

Originally posted by yooyo:
Skip vertex arrays. Use VBO’s. You can find NEHE VBO example.
yooyo

Wonderful. Using VBO without knowing about vertex arrays… I don’t know if this is possible at all.

I suggest to do
Vertex Arrays -> Generic Vertex Attribute Arrays (data interpretation) then
Vertex Arrays -> MultiDraw (not really important anyway, I must still get a nice speedup from that) (how data is sent to GPU)
Vertex Arrays -> VBO (how data is tranferred between memory).

VBO really builds on Vertex Arrays, if you don’t understand them, you’re in bad trouble.