Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Collada tristripper

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    Collada tristripper

    Hello there;

    I'd like to know if there's a Collada 1.4 tristripper around, or if I should start writing one.

    Cheers

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Location
    California
    Posts
    165
    The answer is sorta.

    There is a tristripper in the Refinery package, but its not the same as the conditioners distributed as samples from the COLLADA DOM distrobution. It wouldn't be that difficult to turn it into a stand alone conditioner. If you take a simple conditioner like filename_conditioner and strip out its functionality, copy and paste in what the tristripper does. A few tweeks here and there to make it compile and you're done.

    I will make an official stand alone tristripper in a few weeks. Even though it would be relatively simple I am swamped with work for SIGGRAPH.

    -Andy

  3. #3
    Member
    Join Date
    Feb 2005
    Location
    San Jose, CA
    Posts
    63
    There is a package call refinery in COLLDAD_DOM package.
    The Refinery contains a conditioner called tristripper.
    There is a tristripper_1.4.cpp.
    The source code is written for the graphical UI that can tristrip collada files.
    The refinery GUI can run in command line mode
    Let me know if this is not helpful.

    Herbert

  4. #4
    Junior Member
    Join Date
    Oct 2005
    Posts
    24
    Hello;

    It is actually very helpful, except I'm not sure I get the correct results.
    After running the tristripper on a mesh, here is an example of the result:

    Code :
    <tristrips count="494" material="Objet_drakar_OSG">
        <input offset="0" semantic="VERTEX" source="#Objet_drakars_voile_Shape-lib-vertices"/>
        <input offset="1" semantic="NORMAL" source="#Objet_drakars_voile_Shape-lib-normals"/>
        <input offset="2" semantic="TEXCOORD" source="#Objet_drakars_voile_Shape-lib-map1"/>
     
     
    1 1 1 4 4 4 0 0 0 </p>
     
     
    0 0 0 4 4 4 3 3 3 </p>
     
     
    4 4 4 1 1 1 4 4 4 2 2 2 </p>
    ...

    As you can see, the first two

    elements could be a single one (believe); plus it looks like the number of strips is very high, and the number of triangles per strip is between 1 and 2.

    Each

    element is a triangle strip, isn't it?
    Did I miss something?

  5. #5
    Junior Member
    Join Date
    Oct 2005
    Posts
    24
    Hello again;

    My fault, I probably misunderstood the Collada schema documentation about tristrips. After manually reading the indices, it appears that a <tristrips> element contains a single tristrip; each

    element describes a triangle, except those with 4 edges which look like connections between separate strips.

  6. #6
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Quote Originally Posted by izz
    ... it appears that a <tristrips> element contains a single tristrip; each

    element describes a triangle
    Actually I don't think that's correct. The spec describes the "count" attribute on a <tristrips> element as "The number of triangle-strip primitives." Of the

    elements inside <tristrips>, it says "Describes the vertex attributes for an arbitrary number of connected triangles."

    So I think <tristrips> contains an arbitrary number of strips (otherwise it'd be called <tristrip> probably), where each strip is specified by a

    element, which can have any number of indices to form a strip of arbitrary length.

  7. #7
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    Quote Originally Posted by izz
    Each

    element is a triangle strip, isn't it?
    Yes. It's possible the tri-stripper example code is less then optimal.

  8. #8
    Junior Member
    Join Date
    Oct 2005
    Posts
    24
    Quote Originally Posted by marcus
    Yes. It's possible the tri-stripper example code is less then optimal.
    I'd rather think it didn't follow the specs and I'll probably report that.
    In the example I gave,

    4 4 4 1 1 1 4 4 4 2 2 2 </p> is obviously not a tristrip primitive but a connection between two strips.

  9. #9
    Member
    Join Date
    Feb 2005
    Location
    San Jose, CA
    Posts
    63
    do you have the original dae and conditioned dae files?
    I would like to see does it make

    4 4 4 1 1 1 4 4 4 2 2 2 </p>
    thanks,

  10. #10
    Junior Member
    Join Date
    Oct 2005
    Posts
    24
    Hello;

    I've put the original .dae file "drakar.dae" and the collada file after the tristrip "drakar-tristrip.dae" in the drakar.rar file which I've put here:

    http://rapidshare.de/files/28859589/tristrip.rar.html
    (click on the "free" download button below, and enter the captcha in the edit box; couldn't find any other way to provide you the file, sorry)

    I don't know exactly which version of the tristripper in the Collada Refinery I've used because I couldn't find version information, but I believe it's about the latest (I downloaded it on July 21st, when you suggested it).

Page 1 of 2 12 LastLast

Posting Permissions

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