Multiple Skeleton Collage Animation

I was able to load static geometry using my own loader for collada, which I wrote. However, the next step is to add animation. The problem I am facing is what to do when the controller_ instance has multiple skeletons. In my current model, I am trying to load every node that is falsified that refers to each joint. for instance

<instance_controller url="#geom-Cylinder018-skin1">
<skeleton>#node-Bone024</skeleton>
<skeleton>#node-Bone020</skeleton>
<skeleton>#node-Bone016</skeleton>
<skeleton>#node-Bone009</skeleton>
<skeleton>#node-Bone005</skeleton>
<skeleton>#node-Bone001</skeleton>
<skeleton>#node-Bone025</skeleton>

I'm not sure what should I do with this? I am currently linking them all to the correct nodes in visual_scene. However, each node in the model does what you see above! Ive downloaded it using AssimpView just to see that it is actually displayed, and this works fine. Can someone explain to me what I should do in the above situation. Thanks

+3
source share
1 answer

The COLLADA spec says that <skeleton>under <instance_controller>:

Indicates where the skin controller should start searching for the nodes it needs.

, _ , , , . <controller> , . , :

<library_controllers>
  <controller id="skin">
    <skin source="#base_mesh">
      <source id="Joints">
        <Name_array count="4"> Root Spine1 Spine2 Head </Name_array>
        ...
      </source>
      ...
  </controller>
</library_controllers>

<node>, <skeleton>, node sid . , node :

<node id="Skeleton1" sid="Root">
  <node sid="Spine1">
    <node sid="Spine2">
      <node sid="Head"/>
    </node>
  </node>
</node>

node sid. , , sid.

+6

All Articles