Skip to content

Instantly share code, notes, and snippets.

@sbarthelemy
Created October 4, 2010 17:00
Show Gist options
  • Save sbarthelemy/610049 to your computer and use it in GitHub Desktop.
Save sbarthelemy/610049 to your computer and use it in GitHub Desktop.
collada examples
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<created>2005-06-27T21:00:00Z</created>
<modified>2005-06-27T21:00:00Z</modified>
<unit meter="1" name="meter"/>
<up_axis>Y_UP</up_axis>
</asset>
<library_materials>
<material id="Red">
<instance_effect url="#Red-fx"/>
</material>
<material id="Green">
<instance_effect url="#Green-fx"/>
</material>
<material id="Blue">
<instance_effect url="#Blue-fx"/>
</material>
</library_materials>
<library_effects>
<effect id="Red-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>1. 0. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Green-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 1. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Blue-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 0. 1. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_geometries>
<geometry id="frame_arrows_geometry">
<mesh>
<source id="frame_arrows_positions">
<float_array count="12" id="frame_arrows_positions_array">0. 0. 0. 1. 0. 0. 0. 1. 0. 0. 0. 1.</float_array>
<technique_common>
<accessor count="4" source="#frame_arrows_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="frame_arrows_vertices">
<input semantic="POSITION" source="#frame_arrows_positions"/>
</vertices>
<lines count="1" material="x_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 1</p>
</lines>
<lines count="1" material="y_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 2</p>
</lines>
<lines count="1" material="z_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 3</p>
</lines>
</mesh>
</geometry>
</library_geometries>
<library_nodes>
<node id="frame_arrows">
<instance_geometry url="#frame_arrows_geometry">
<bind_material>
<technique_common>
<instance_material symbol="x_axis" target="#Red"/>
<instance_material symbol="y_axis" target="#Green"/>
<instance_material symbol="z_axis" target="#Blue"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
</library_nodes>
<library_animations>
<animation id="anim0">
<animation>
<source id="anim0-frame0-translate-input">
<float_array count="5" id="anim0-frame0-translate-input-array">0 1 2 3 4</float_array>
<technique_common>
<accessor count="5" source="#anim0-frame0-translate-input-array" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="anim0-frame0-translate-interpolation">
<Name_array count="15" id="anim0-frame0-translate-interpolation-array">STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP </Name_array>
<technique_common>
<accessor count="5" source="#anim0-frame0-translate-interpolation-array" stride="3">
<param name="X" type="Name"/>
<param name="Y" type="Name"/>
<param name="Z" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="anim0-frame0-translate-output">
<float_array count="15" id="anim0-frame0-translate-output-array"> 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0</float_array>
<technique_common>
<accessor count="5" source="#anim0-frame0-translate-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="anim0-frame0-translate-sampler">
<input semantic="INPUT" source="#anim0-frame0-translate-input"/>
<input semantic="OUTPUT" source="#anim0-frame0-translate-output"/>
<input semantic="INTERPOLATION" source="#anim0-frame0-translate-interpolation"/>
</sampler>
<channel source="#anim0-frame0-translate-sampler" target="frame0/translate"/>
</animation>
</animation>
<animation id="anim1">
<animation>
<source id="anim1-frame0-translate-input">
<float_array count="5" id="anim1-frame0-translate-input-array">0 1 2 3 4</float_array>
<technique_common>
<accessor count="5" source="#anim1-frame0-translate-input-array" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="anim1-frame0-translate-interpolation">
<Name_array count="15" id="anim1-frame0-translate-interpolation-array">STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP </Name_array>
<technique_common>
<accessor count="5" source="#anim1-frame0-translate-interpolation-array" stride="3">
<param name="X" type="Name"/>
<param name="Y" type="Name"/>
<param name="Z" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="anim1-frame0-translate-output">
<float_array count="15" id="anim1-frame0-translate-output-array">0 0 0 1 0 0 2 0 0 3 0 0 4 0 0</float_array>
<technique_common>
<accessor count="5" source="#anim1-frame0-translate-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="anim1-frame0-translate-sampler">
<input semantic="INPUT" source="#anim1-frame0-translate-input"/>
<input semantic="OUTPUT" source="#anim1-frame0-translate-output"/>
<input semantic="INTERPOLATION" source="#anim1-frame0-translate-interpolation"/>
</sampler>
<channel source="#anim1-frame0-translate-sampler" target="frame0/translate"/>
</animation>
</animation>
</library_animations>
<library_visual_scenes>
<visual_scene id="scene">
<node id="frame0">
<translate sid="translate">0 -1 0</translate>
<instance_node url="#frame_arrows"/>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#scene"/>
</scene>
</COLLADA>
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<created>2005-06-27T21:00:00Z</created>
<modified>2005-06-27T21:00:00Z</modified>
<unit meter="1" name="meter"/>
<up_axis>Y_UP</up_axis>
</asset>
<library_materials>
<material id="Red">
<instance_effect url="#Red-fx"/>
</material>
<material id="Green">
<instance_effect url="#Green-fx"/>
</material>
<material id="Blue">
<instance_effect url="#Blue-fx"/>
</material>
</library_materials>
<library_effects>
<effect id="Red-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>1. 0. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Green-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 1. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Blue-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 0. 1. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_geometries>
<geometry id="frame_arrows_geometry">
<mesh>
<source id="frame_arrows_positions">
<float_array count="12" id="frame_arrows_positions_array">0. 0. 0. 1. 0. 0. 0. 1. 0. 0. 0. 1.</float_array>
<technique_common>
<accessor count="4" source="#frame_arrows_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="frame_arrows_vertices">
<input semantic="POSITION" source="#frame_arrows_positions"/>
</vertices>
<lines count="1" material="x_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 1</p>
</lines>
<lines count="1" material="y_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 2</p>
</lines>
<lines count="1" material="z_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 3</p>
</lines>
</mesh>
</geometry>
</library_geometries>
<library_nodes>
<node id="frame_arrows">
<instance_geometry url="#frame_arrows_geometry">
<bind_material>
<technique_common>
<instance_material symbol="x_axis" target="#Red"/>
<instance_material symbol="y_axis" target="#Green"/>
<instance_material symbol="z_axis" target="#Blue"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
</library_nodes>
<library_animations>
<animation id="anim0">
<source id="anim0-input">
<float_array count="5" id="anim0-input-array">0 1 2 3 4</float_array>
<technique_common>
<accessor count="5" source="#anim0-input-array" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<animation id="frame0-translate">
<source id="frame0-translate-interpolation">
<Name_array count="15" id="frame0-translate-interpolation-array">STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP STEP </Name_array>
<technique_common>
<accessor count="5" source="#frame0-translate-interpolation-array" stride="3">
<param name="X" type="Name"/>
<param name="Y" type="Name"/>
<param name="Z" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="frame0-translate-output">
<float_array count="15" id="frame0-translate-output-array"> 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0</float_array>
<technique_common>
<accessor count="5" source="#frame0-translate-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="frame0-translate-sampler">
<input semantic="INPUT" source="#anim0-input"/>
<input semantic="OUTPUT" source="#frame0-translate-output"/>
<input semantic="INTERPOLATION" source="#frame0-translate-interpolation"/>
</sampler>
<channel source="#frame0-translate-sampler" target="frame0/translate"/>
</animation>
<animation id="frame1-translate">
<source id="frame1-translate-interpolation">
<Name_array count="15" id="frame1-translate-interpolation-array">LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR LINEAR</Name_array>
<technique_common>
<accessor count="5" source="#frame1-translate-interpolation-array" stride="3">
<param name="X" type="Name"/>
<param name="Y" type="Name"/>
<param name="Z" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="frame1-translate-output">
<float_array count="15" id="frame1-translate-output-array"> 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0</float_array>
<technique_common>
<accessor count="5" source="#frame1-translate-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="frame1-translate-sampler">
<input semantic="INPUT" source="#anim0-input"/>
<input semantic="OUTPUT" source="#frame1-translate-output"/>
<input semantic="INTERPOLATION" source="#frame1-translate-interpolation"/>
</sampler>
<channel source="#frame1-translate-sampler" target="frame1/translate"/>
</animation>
</animation>
</library_animations>
<library_visual_scenes>
<visual_scene id="scene">
<node>
<translate>-3 0 0</translate>
<node id="frame0">
<translate sid="translate">0 -1 0</translate>
<instance_node url="#frame_arrows"/>
</node>
</node>
<node>
<translate>3 0 0</translate>
<node id="frame1">
<translate sid="translate">0 0 0</translate>
<instance_node url="#frame_arrows"/>
</node>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#scene"/>
</scene>
</COLLADA>
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<created>2005-06-27T21:00:00Z</created>
<modified>2005-06-27T21:00:00Z</modified>
<unit meter="1" name="meter"/>
<up_axis>Y_UP</up_axis>
</asset>
<library_materials>
<material id="Red">
<instance_effect url="#Red-fx"/>
</material>
<material id="Green">
<instance_effect url="#Green-fx"/>
</material>
<material id="Blue">
<instance_effect url="#Blue-fx"/>
</material>
<material id="Grey">
<instance_effect url="#Grey-fx"/>
</material>
</library_materials>
<library_effects>
<effect id="Red-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>1. 0. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Green-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 1. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Blue-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 0. 1. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Grey-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>.5 .5 .5 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_geometries>
<geometry id="frame_arrows_geometry">
<mesh>
<source id="frame_arrows_positions">
<float_array count="12" id="frame_arrows_positions_array">0. 0. 0. 1. 0. 0. 0. 1. 0. 0. 0. 1.</float_array>
<technique_common>
<accessor count="4" source="#frame_arrows_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="frame_arrows_vertices">
<input semantic="POSITION" source="#frame_arrows_positions"/>
</vertices>
<lines count="1" material="x_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 1</p>
</lines>
<lines count="1" material="y_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 2</p>
</lines>
<lines count="1" material="z_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 3</p>
</lines>
</mesh>
</geometry>
<geometry id="arrow_geometry">
<mesh>
<source id="arrow_positions">
<float_array count="6" id="arrow_positions_array">0 0 0 1 1 1</float_array>
<technique_common>
<accessor count="2" source="#arrow_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="arrow_vertices">
<input semantic="POSITION" source="#arrow_positions"/>
</vertices>
<lines count="1" material="all">
<input offset="0" semantic="VERTEX" source="#arrow_vertices"/>
<p>0 1</p>
</lines>
</mesh>
</geometry>
</library_geometries>
<library_nodes>
<node id="frame_arrows">
<instance_geometry url="#frame_arrows_geometry">
<bind_material>
<technique_common>
<instance_material symbol="x_axis" target="#Red"/>
<instance_material symbol="y_axis" target="#Green"/>
<instance_material symbol="z_axis" target="#Blue"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
<node id="vector" sid="root" type="JOINT">
<translate sid="TxTyTz">0 0 0</translate>
<instance_node url="#frame_arrows"/>
</node>
</library_nodes>
<library_controllers>
<controller id="skin">
<skin source="#arrow_geometry">
<source id="joints">
<Name_array id="joints-array" count="1">root</Name_array>
<technique_common>
<accessor source="#joints-array" count="1" stride="1">
<param name="JOINT" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="weights">
<float_array id="weights-array" count="2">0 1</float_array>
<technique_common>
<accessor source="#weights-array" count="2" stride="1">
<param name="WEIGHT" type="float"/>
</accessor>
</technique_common>
</source>
<source id="inv_bind_mats">
<float_array id="inv_bind_mats-array" count="16"> 1 0 0 -1 0 1 0 -1 0 0 1 -1 0 0 0 1</float_array>
<technique_common>
<accessor source="#inv_bind_mats-array" count="1" stride="16">
<param name="TRANSFORM" type="float4x4"/>
</accessor>
</technique_common>
</source>
<joints>
<input semantic="JOINT" source="#joints"/>
<input semantic="INV_BIND_MATRIX" source="#inv_bind_mats"/>
</joints>
<vertex_weights count="2">
<input offset="0" semantic="JOINT" source="#joints"/>
<input offset="1" semantic="WEIGHT" source="#weights"/>
<vcount>1 1</vcount>
<v>
-1 1
0 1
</v>
</vertex_weights>
</skin>
</controller>
</library_controllers>
<library_animations>
<animation>
<source id="frame0-input">
<float_array count="5" id="frame0-input-array">0 1 2 3 4</float_array>
<technique_common>
<accessor count="5" source="#frame0-input-array" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="frame0-interpolation">
<Name_array count="5" id="frame0-interpolation-array">LINEAR LINEAR STEP LINEAR STEP</Name_array>
<technique_common>
<accessor count="5" source="#frame0-interpolation-array" stride="1">
<param name="ANGLE" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="frame0-output">
<float_array count="15" id="frame0-output-array"> 0 0 0 1 1 1 1 2 2 1 3 3 1 4 4 </float_array>
<technique_common>
<accessor count="5" source="#frame0-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="frame0-sampler">
<input semantic="INPUT" source="#frame0-input"/>
<input semantic="OUTPUT" source="#frame0-output"/>
<input semantic="INTERPOLATION" source="#frame0-interpolation"/>
</sampler>
<channel source="#frame0-sampler" target="vector/TxTyTz"/>
</animation>
</library_animations>
<library_visual_scenes>
<visual_scene id="scene">
<node id="toto">
<instance_node url="#vector"/>
</node>
<node id="frame0">
<translate sid="TxTyTz">0 0 0</translate>
<instance_node url="#frame_arrows"/>
</node>
<node>
<instance_controller url="#skin">
<skeleton>#vector</skeleton>
<bind_material>
<technique_common>
<instance_material symbol="all" target="#Grey"/>
</technique_common>
</bind_material>
</instance_controller>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#scene"/>
</scene>
</COLLADA>
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<created>2005-06-27T21:00:00Z</created>
<modified>2005-06-27T21:00:00Z</modified>
<unit meter="1" name="meter"/>
<up_axis>Y_UP</up_axis>
</asset>
<library_materials>
<material id="Red">
<instance_effect url="#Red-fx"/>
</material>
<material id="Green">
<instance_effect url="#Green-fx"/>
</material>
<material id="Blue">
<instance_effect url="#Blue-fx"/>
</material>
<material id="Grey">
<instance_effect url="#Grey-fx"/>
</material>
</library_materials>
<library_effects>
<effect id="Red-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>1. 0. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Green-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 1. 0. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Blue-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>0. 0. 1. 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
<effect id="Grey-fx">
<profile_COMMON>
<technique sid="blender">
<constant>
<emission>
<color>.5 .5 .5 1.</color>
</emission>
</constant>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_geometries>
<geometry id="frame_arrows_geometry">
<mesh>
<source id="frame_arrows_positions">
<float_array count="12" id="frame_arrows_positions_array">0. 0. 0. 1. 0. 0. 0. 1. 0. 0. 0. 1.</float_array>
<technique_common>
<accessor count="4" source="#frame_arrows_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="frame_arrows_vertices">
<input semantic="POSITION" source="#frame_arrows_positions"/>
</vertices>
<lines count="1" material="x_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 1</p>
</lines>
<lines count="1" material="y_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 2</p>
</lines>
<lines count="1" material="z_axis">
<input offset="0" semantic="VERTEX" source="#frame_arrows_vertices"/>
<p>0 3</p>
</lines>
</mesh>
</geometry>
<geometry id="arrow_geometry">
<mesh>
<source id="arrow_positions">
<float_array count="6" id="arrow_positions_array">0 0 0 0 0 0</float_array>
<technique_common>
<accessor count="2" source="#arrow_positions_array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="arrow_vertices">
<input semantic="POSITION" source="#arrow_positions"/>
</vertices>
<lines count="1" material="all">
<input offset="0" semantic="VERTEX" source="#arrow_vertices"/>
<p>0 1</p>
</lines>
</mesh>
</geometry>
</library_geometries>
<library_nodes>
<node id="frame_arrows">
<instance_geometry url="#frame_arrows_geometry">
<bind_material>
<technique_common>
<instance_material symbol="x_axis" target="#Red"/>
<instance_material symbol="y_axis" target="#Green"/>
<instance_material symbol="z_axis" target="#Blue"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
<node id="vector" sid="root" type="JOINT">
<translate sid="TxTyTz">0 0 0</translate>
<instance_node url="#frame_arrows"/>
</node>
</library_nodes>
<library_controllers>
<controller id="skin">
<skin source="#arrow_geometry">
<source id="joints">
<Name_array id="joints-array" count="1">root</Name_array>
<technique_common>
<accessor source="#joints-array" count="1" stride="1">
<param name="JOINT" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="weights">
<float_array id="weights-array" count="2">0 1</float_array>
<technique_common>
<accessor source="#weights-array" count="2" stride="1">
<param name="WEIGHT" type="float"/>
</accessor>
</technique_common>
</source>
<source id="inv_bind_mats">
<float_array id="inv_bind_mats-array" count="16"> 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</float_array>
<technique_common>
<accessor source="#inv_bind_mats-array" count="1" stride="16">
<param name="TRANSFORM" type="float4x4"/>
</accessor>
</technique_common>
</source>
<joints>
<input semantic="JOINT" source="#joints"/>
<input semantic="INV_BIND_MATRIX" source="#inv_bind_mats"/>
</joints>
<vertex_weights count="2">
<input offset="0" semantic="JOINT" source="#joints"/>
<input offset="1" semantic="WEIGHT" source="#weights"/>
<vcount>1 1</vcount>
<v>
-1 1
0 1
</v>
</vertex_weights>
</skin>
</controller>
</library_controllers>
<library_animations>
<animation>
<source id="frame0-input">
<float_array count="5" id="frame0-input-array">0 1 2 3 4</float_array>
<technique_common>
<accessor count="5" source="#frame0-input-array" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="frame0-interpolation">
<Name_array count="5" id="frame0-interpolation-array">LINEAR LINEAR STEP LINEAR STEP</Name_array>
<technique_common>
<accessor count="5" source="#frame0-interpolation-array" stride="1">
<param name="ANGLE" type="Name"/>
</accessor>
</technique_common>
</source>
<source id="frame0-output">
<float_array count="15" id="frame0-output-array"> 0 0 0 1 1 1 1 2 2 1 3 3 1 4 4 </float_array>
<technique_common>
<accessor count="5" source="#frame0-output-array" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<sampler id="frame0-sampler">
<input semantic="INPUT" source="#frame0-input"/>
<input semantic="OUTPUT" source="#frame0-output"/>
<input semantic="INTERPOLATION" source="#frame0-interpolation"/>
</sampler>
<channel source="#frame0-sampler" target="vector/TxTyTz"/>
</animation>
</library_animations>
<library_visual_scenes>
<visual_scene id="scene">
<node id="toto">
<instance_node url="#vector"/>
</node>
<node id="frame0">
<translate sid="TxTyTz">0 0 0</translate>
<instance_node url="#frame_arrows"/>
</node>
<node>
<instance_controller url="#skin">
<skeleton>#vector</skeleton>
<bind_material>
<technique_common>
<instance_material symbol="all" target="#Grey"/>
</technique_common>
</bind_material>
</instance_controller>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#scene"/>
</scene>
</COLLADA>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment