• Advertisement
Sign in to follow this  

collada and polylist

This topic is 3675 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im writing a loader for collada and ive just gotten to the "polylist"... to my understanding this is the indexbuffer... however im having some difficulties understanding how it works...


                <polylist count="2144" material="blinn3SG">
                    <input offset="0" semantic="VERTEX" source="#LOD3spShape-lib-vertices"/>
                    <input offset="1" semantic="NORMAL" source="#LOD3spShape-lib-normals"/>
                    <input offset="2" semantic="TEXCOORD" source="#LOD3spShape-lib-map1" set="0"/>
                    <vcount>4 4 4 4  """values removed""" </vcount>
                    <p>89 0 23 243 1 26 90 2 28 6 3 29 91 4 30 243 1 26 89 0 23 5 5 31 92 6 33 244 7 35 91 4 """values removed"""</p>
                </polylist>

as u can see it gives a "vcount" of value between 3-5... shouldnt this be the number of vertices in a primitive? how would i know how to triangualte a primitive with 4 or 5 vertices?! also im unsure about the offset values... any help?

Share this post


Link to post
Share on other sites
Advertisement
i find it complicated and hard to understand... and its good practice to make my own...'


EDIT:: also i havent found any good documentation or samples...

Share this post


Link to post
Share on other sites
ok i solved that problem by using triangulated collada models...


however now i got another problem... all the data arrays (position, normals, texcoord) have their own index in the index array... and somehow i have to convert this to normal data with one data array with vertex data and one indexbuffer...


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement