Results 1 to 2 of 2

Thread: FCollada: how to create a triangles

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    15

    FCollada: how to create a triangles

    Hello,

    I'm using FCollada to make my own data/collada files.

    when creating a polygon, there are some types like:


    FCDGeometryPolygons::PrimitiveType::TRIANGLE_STRIP S
    FCDGeometryPolygons::PrimitiveType::TRIANGLE_FANS
    FCDGeometryPolygons::PrimitiveType::LINE_STRIPS
    FCDGeometryPolygons::PrimitiveType::POLYGONS

    and I get:

    Code :
    		POLYGONS
     
            <polylist count="1">
              <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
              <vcount>13</vcount>
     
     
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
            </polylist>
     
    		LINE_STRIPS
     
    		<linestrips count="1">
              <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
     
     
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
            </linestrips>
     
    		TRIANGLE_FANS
     
            <trifans count="1">
              <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
     
     
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
            </trifans>		
     
    		TRIANGLE_STRIPS
            <tristrips count="1">
              <input semantic="VERTEX" source="#Geometry-vertices" offset="0"/>
     
     
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
            </tristrips>




    I don't know how to obtain a triangles like this:



    Code :
            <triangles count="13">
              <input semantic="VERTEX" source="#geoid671-vertices" offset="0"/>
     
     
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38</p>
            </triangles>




    Can some one help me please!

    Thanks

  2. #2
    Junior Member
    Join Date
    Jul 2009
    Posts
    15

    Re: FCollada: how to create a triangles

    I found the solution lol it is in the AddFace function

Posting Permissions

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