Jump to content
  • Advertisement
Sign in to follow this  

Colloda Files & Indicies (SOLVED)

This topic is 2226 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


<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

<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

Share this post

Link to post
Share on other sites
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.

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!