PDA

View Full Version : Index Buffers


abcd_z
02-09-2003, 01:01 AM
Is this the correct way to create an index buffer,

i loop the vertex data and check for similar and then create a list of index into the new vertex data.

i tried using this way and it took an enormous amount of time.. the loop part....am i doing it correctly ?

baldurk
02-09-2003, 01:29 AM
If you have correctly generated indices, then why don't you write the result to a file? that way the next time your program runs it just reads it from the file and goes.

You might want to write a small app to simply generate index buffers, write the file and exit.