Skeletal animation

Hi
I have a two mesh


<library_geometries>
    <geometry id="geometry1"   name="geometry1">
    <mesh>...</mesh>
    </geometry>
    <geometry id="geometry2 name="geometry2">
    <mesh>...</mesh>
</library_geometries>

These meshes of a one model and they have a one skeleton


<controller id="controller1" name="controller1">
    <skin source="#geometry1">
...
    <source id="joints1">
    <IDREF_array id="jointsa1" count="3">
    joint1 joint2 joint3
    </IDREF_array>
    </skin>
</controller>

<controller id="controller2" name="controller2">
    <skin source="#geometry2">
...
    <source id="joints2">
    <IDREF_array id="jointsa2" count="3">
    joint2 joint3 joint4
    </IDREF_array>
    </skin>
</controller>

First mesh uses bones joint1 joint2 joint3
Second - joint2 joint3 joint4.

These bones form a one skeleton - joint1 joint2 joint3 joint4.


<node id="joint1 " name="joint1 " sid="joint1 " type="JOINT">
...
    <node id="joint2" name="joint2 " sid="joint2 " type="JOINT">
        ...
        <node id="joint3" name="joint3 " sid="joint3 " type="JOINT">
             ...
            <node id="joint4" name="joint4 " sid="joint4 " type="JOINT">
            ...
            </node>
        </node>
    </node>
</node>

How do I organize a node to connect the skeleton with the meshes?
Thanks.

I would make one mesh, but they have different materials.

Read the spec reading <instance_controller> and the <skeleton> elements.