Collada. How should i calculate arrays with positions, normals and axis to get array


#1

Hello. Sorry for such basic question but i can not understand. How can i get the array with texture-map when i have arrays with positions (vertices), normals and axis? Why is texture-map is not equal to array with vertices? And how should i calculate all my arrays to have <matrix> array in

  
    <visual_scene> 
      <node>
       <matrix> ..... </matrix> 
      </node> 
    </visual_scene>

Thanks for your replies.


#2

Why is texture-map is not equal to array with vertices?

Because COLLADA uses multi-index buffer. In this may arrays may have different lengths.

And how should i calculate all my arrays to have <matrix> array in

<visual_scene>
<node>
<matrix> … </matrix>
</node>
</visual_scene>

What do you mean?