Results 1 to 4 of 4

Thread: Triangle index converter?

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2005

    Triangle index converter?

    Does anyone where I can find code for a triangle index converter? Something
    simple like it takes as input a list of indices and returns a list of indices?

    It has to convert:

    and the reverse case:

    [This message has been edited by Dat (edited 08-27-2003).]

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Apr 2003

    Re: Triangle index converter?

    the first case (strips -> normal triangles) is trivial, you can surely do that on your own the second case, turning triangles to triangle strips, is a rather demanding task for which you need a program called "striper".

    And simply to provide the vertex indices is not sufficient for striping, due to the fact that two triangles that share one vertice can have DIFFERENT normal vectors at that vertex and DIFFERENT tex coords when they are rendered as separate triangles (not to mention completely different material properties), but have the SAME when rendered as triangle strips. so the striper has to find out all these tings, quite a complex task. I only know of one striper called "striper" *g* which reads .obj and writes .objf, but I cannot find it on google. But it did not make very much sense anyway, due to the lach of normals and tex coords, it only did the vertices.


  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001

    Re: Triangle index converter?

    Hi !


    You can find a triangle to strip converter, but it only converts the triangles to strips, it does not handle anything else like material and normal problems.


  4. #4
    Senior Member Regular Contributor
    Join Date
    Feb 2000

    Re: Triangle index converter?


    >>triangles (not to mention completely
    >>different material properties), but have
    >>the SAME when rendered as triangle strips.
    >>so the striper has to find out all these
    >>tings, quite a complex task.

    hence you know now why triangle strips are mainly used for large terrain rendering...

Similar Threads

  1. Index Buffer / Shadow Index Buffer ... don't understand the code:
    By KarlWinkler2 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-07-2018, 07:40 AM
  2. Replies: 2
    Last Post: 07-16-2012, 01:40 AM
  3. tessellation and per triangle index in gs
    By Doc in forum OpenGL: GLSL
    Replies: 0
    Last Post: 05-12-2010, 11:22 AM
  4. dxf converter?
    By Blendy in forum COLLADA
    Replies: 2
    Last Post: 10-25-2006, 01:57 PM
  5. I'm looking for a converter
    By Sabonis in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-22-2005, 03:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean