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 5 of 5

Thread: triangle -----> triangle_strip ????

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2002
    Location
    Moldova
    Posts
    11

    triangle -----> triangle_strip ????

    how to convert or how to export from Max in TRIANGLE_STRIP format???

  2. #2
    Intern Contributor
    Join Date
    Jan 2002
    Location
    Stockholm, Sweden
    Posts
    75

    Re: triangle -----> triangle_strip ????

    Dont know if you can, unless you write your own script/ exporter of course, that builds strips from your data.

    You could convert what you've exported:

    check the faq on this site,
    22.100 How do I make triangle strips out of triangles?

  3. #3
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: triangle -----> triangle_strip ????

    Don't know of any exporter for max that converts tris to tristrips.
    Download the nvTriStrip triangle-stripping library free from http://developer.nvidia.com/
    It does a very good job of converting discreet (indexed) triangles into (indexed) triangle strips.
    Be warned, though - filter out any degenerate triangles (triangles with 2 or more indices referencing the same vertex) from the list you give it, as it will assert if you don't.
    There are some other quirks too, but can't remember exactly what these are.
    It's a very good library, though - and easy to use.
    Another note - you may have to recompile the source (which nvidia kindly provide) if you're using it in a multi-dll multi-threaded project.
    Knackered

  4. #4
    Member Regular Contributor Julien Cayzac's Avatar
    Join Date
    Aug 2001
    Location
    Yokohama, Japan
    Posts
    251

    Re: triangle -----> triangle_strip ????

    Originally posted by knackered:
    There are some other quirks too, but can't remember exactly what these are.
    Do not remap the indices when using the resulting strips with OpenGL. Indices remapping has been reported to work only when used with d3d (someone reported this on the opengl-gamedev yahoo group: I don't remember who, maybe jwatte).

    Julien.

  5. #5
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: triangle -----> triangle_strip ????

    Why not?
    Remapping the indices seems to work for me with OpenGL. Does it remap them in a way that hits performance in opengl apps? I haven't benchmarked the results....but it certainly *works* with opengl.
    Knackered

Posting Permissions

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