Sign in to follow this  

Colloda Files & Indicies (SOLVED)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this