Results 1 to 3 of 3

Thread: Skeletal animation

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Skeletal animation

    Hi
    I have a two mesh
    Code :
    <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
    Code :
    <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.
    Code :
    <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.

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Re: Skeletal animation

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

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Skeletal animation

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •