PDA

View Full Version : How to make it faster



Dominik
07-31-2001, 01:20 AM
Hi,

at the moment I am using GL_TRIANGLES to draw my faces. I read thought the Red Book and found i even can use FANS and STRIPS. But how can I convert a tiangle bases 3D object to a object that is optimized for triangles strips?

My object looks like this:

struct
{
float x;
float y;
float z;
} veclist;

struct
{
int a;
int b;
int c;
} face;

struct
{
int facecount;
face *faces;
veclist *list;
} object;

I even got some more variables (texture, dimension, normal, u, v).

Stormie
07-31-2001, 01:32 AM
Originally posted by Dominik:
But how can I convert a tiangle bases 3D object to a object that is optimized for triangles strips?

Nvidia have a library for converting triangle objects into triangle strips. It is optimised for GeForce T&L caches but I believe it does not require Nvidia extensions at all.

It is at http://partners.nvidia.com/Marketing/Developer/DevRel.nsf/bookmark/3603A69E78460D9C88256A3B000FF831

Dominik
07-31-2001, 01:36 AM
fast reply.

thank you!

jxruan
07-31-2001, 08:49 AM
You can try the "glVertexArray", "glNormalArray" and "glDrawArrayElement".