PDA

View Full Version : triangles strips optimizing



jframosr
09-12-2003, 02:47 AM
Hi People!
I am using GL_TRIANGLE_STRIPS primitives, so if I send the vertexs:
1 2 2 2 2 3
What will be the result? the triangle 1 2 3?

Thanks in advance
F.

Deiussum
09-12-2003, 04:41 AM
No, you will essentially get 2 lines. With that strip, it breaks down into triangles like so..

(Parenthesis show which of your vertices are used for the triangle)

1,2,2 -> (1 2 2) 2 2 3

2,2,2 -> 1 (2 2 2) 2 3

2,2,2 -> 1 2 (2 2 2) 3

2,2,3 -> 1 2 2 (2 2 3)