Jump to content

  • Log In with Google      Sign In   
  • Create Account


Colloda Files & Indicies (SOLVED)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Jcoose   Members   -  Reputation: 127

Like
0Likes
Like

Posted 13 June 2012 - 09:34 PM

Posted Image

<float_array id="Geometry-mesh016-normals-array" count="9">
-0.947236 0.315745 -0.0552245
-0.867472 0.289157 -0.404821
-0.904534 0.301511 0.301511
</float_array>



<vcount>3 3</vcount>
<p>2 0 0 0 0 0 1 1 0 0 3 0 2 0 0 3 0 2 0 0 1 2 3 1 0 2 0 0 0 0</p>


I have a really simple mesh that looks something like what you see above. I exported it as a colloda file and started looking with the format (my aim is to write an importer for my model viewer). Everything makes sense, but I can not for the life of me figure out what is going on with the indices (<vcount>).

First of there are a lot more than there should be for just two triangles, and none of them really make any sense to me. The "3 3" makes sense as its saying there are two 3 sided polygons but the rest baffles me. Does anyone know whats going on?

Edited by Jcoose, 13 June 2012 - 10:02 PM.


Sponsor:

#2 Jcoose   Members   -  Reputation: 127

Like
0Likes
Like

Posted 13 June 2012 - 10:03 PM

I was finally able to find an answer. I didn't realize that texture coordinates could also have indices. That doesn't make a lot of sense to me, but anways there is an offset specified. So every 4th number is vertics indicie in this case.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS