Thomas Harte

08-30-2002, 07:25 AM

First of all, I have to admit to being a bit confused about the different remits of this forum and the beginners analogue. So I apologise if this question is in the wrong place!

My 3d artists are using the 3ds file format, and my program is using OpenGL. It is easy to load a 3ds and display it using GL_TRIANGLES, but all the information I have suggests you should be as implicit as you possibly can be - e.g. using fans and strips and so on if possible.

Therefore, my question is are there any clever algorithms for computing the optimal GL primitive description from a set of triangles? At the minute I am contemplating a brute force search through all the possibilities (which would be an offline process, so isn't so terrible . . .), but it strikes me there is almost certainly a smarter method. Is there?

My 3d artists are using the 3ds file format, and my program is using OpenGL. It is easy to load a 3ds and display it using GL_TRIANGLES, but all the information I have suggests you should be as implicit as you possibly can be - e.g. using fans and strips and so on if possible.

Therefore, my question is are there any clever algorithms for computing the optimal GL primitive description from a set of triangles? At the minute I am contemplating a brute force search through all the possibilities (which would be an offline process, so isn't so terrible . . .), but it strikes me there is almost certainly a smarter method. Is there?