Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: triangles strips optimizing

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2003
    Posts
    10

    triangles strips optimizing

    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.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: triangles strips optimizing

    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)
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •