I have written a C++ application using the COLLADA-dom to export models into dae. At eye value it looks very correct. I have gone over the syntax many times, double checked against examples and ran through the COLLADA coherencytest which returned no errors (after I had fixed the ones it did find).
I have attached the export below, its very small and just contains the geometries.
The 3Ds MAX importer will crash when importing without any indication of where the parser crashed. The Blender importer will give the error in the console: ValueError: invalid literal for float(): 52-08
I really am stumped here, I wouldn’t post here without exhausting my own attempts. Thanks in advance! COLLADA will give me a real advantage in my project once I get it going.
Your mesh has 200 triangles.
That means you have 200 * 3 = 600 sets of point data.
For each set of point data, you have 1 index for vertex position, 1 index of normals, 1 index for texcoords.
That means you should have 600 * 3 =1800 indices in your
</p>, but you only have 1200 index in your
Check if you export the index of your position, normal, and texcoord correctly in that order.
I am surprise that the coherencytest couldn’t catch that, may I have the full version of the dae file you ran against coherencytest.
I did have trouble understanding those tags. The specification documentation isn’t as clear as your explanation, thank you! Actually the dae I attached is the one I ran through the coherencytest. I will keep posted, cheers.
EDIT: I used the latest version of coherencytest from Sourceforge.
Below is how I cast the mesh index in OGRE xml format but I don’t understand how I would cast this in COLLADA. I don’t suppose you could help me one more time?
You can certainly use more than 3 index buffers.
Beside Position, Normal, and Texcoord, you might want to export other information like Vertex Color, Tangent, BiNormal, etc.
Find out more detail description of your other 2 index buffers.
Each index buffer is describe in the <input> element with semantic like below example.