I’ve gathered from the coherency test that only one <vertices> declared, but I have 3 sets of geometries. What is the correct way to reference the vertices with the triangles? Sets?
I’m not a specialist but I’ve noticed some things. Maybe it will help you.
First of all refer to COLLADA Schema (ver 1.5 the newest), it says that mesh can contain only one <vertices… element per mesh so you can’t put more than one in it. I think you should create a new geometry for each group of vertices that you want to define as a different object. I think you won’t be able to do that with multiple triangles because it’s rather used for assigning different materials for different parts of mesh - paint some with one and some with the other. If you use primitives (triangles, polys etc.) the way you put all together is:
store all vertices positions of chosen group in one source element
in each triangle (if you have multi materials applied) refer to those positions by defining <input… (shared) element with “VERTEX” semantic which leads you to <vertices… and then you get another <vertices…<input… (unshared) with “POSTION” semantics and resolve source attribute… It’s little confusing why we need the <vertices… for, but it was discussed somewhere on this forum…
I have 3 sets of positions but in your example you have 1. Did you merge them into one array? I’d rather not have to write up the code to transform anything. I think creating a new mesh is the right thing to do for me… which you’ve answered for me. Thanks matey