PDA

View Full Version : Better way to make the faces



KurtCob
08-16-2000, 02:17 AM
Dear people,

Witch is the better way to calculate the faces, in quads or triangles ?

Thanks

Best regards

Kurt

jc
08-16-2000, 02:25 AM
If you mean by calculate render a geometry, u should use GL_TRIANGLE_STRIP or GL_QUAD_STRIP.

If not, i don't understand you'r question :

KurtCob
08-16-2000, 05:34 AM
Ok,

I know witch function I have to use, but witch of the ways will give me the best result ?

Thanks

Kurt

jc
08-16-2000, 05:43 AM
u can also use (if u have a good card) the vertex arrays. It send the values directly to the card and u can have good results.

U should test different ways because it depends of what u want to render.
If you just need geometries and static colors and static textures, u can use the vertex arrays.
If the colors and the texture are not static during your appli, use GL_TRIANGLE_STRIP...

KurtCob
08-16-2000, 09:40 AM
Ok,

But using the vertex array, will I be able to render it ???? As I know, I can render a surface, just using quads or triangles...

The vertex array, that you are talking about, is the X,Y,Z data ???? or the vertex of the quads or triangles...

Thank you for the moment

Best regards

Kurt