Development for Collada[edit]
- <.... /> は省略表示
- // 以降はコメント
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset />
<library_images />
<library_effects />
<library_materials />
<library_geometries />
<library_controllers />
<library_effects />
<library_physics_models />
<library_physics_scenes />
<library_visual_scenes />
<scene />
</COLLADA>
<library_geometries>
<geometry id="Leg-mesh" name="Leg">
<mesh>
<source id="Leg-mesh-positions" /> // POSITION
<source id="Leg-mesh-normalsp" /> // NORMAL
<source id="Leg-mesh-map" /> // UVMAP
<source id="Leg-mesh-colors-colorSet0" name="colorSet0" /> // COLOR
<vertices />
<input semantic="POSITION" source="#Leg-mesh-positions"/>
</vertices>
<polylist material="body-material" count="2322" />
</mesh>
</geometry>
<geometry /> // 繰り返し
</library_geometries>
<library_controllers>
<controller id="avatar_Leg-skin" name="avatar"> // <geometry> と同じ数だけ繰り返し
<skin source="#Leg-mesh">
<bind_shape_matrix>1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</bind_shape_matrix>
<source id="avatar_Leg-skin-joints" /> // Joints NAME
<source id="avatar_Leg-skin-bind_poses" /> // Joints TRANSFORM
<source id="avatar_Leg-skin-weights" /> // Joints WEIGHT
</source>
<joints>
<input semantic="JOINT" source="#avatar_Leg-skin-joints"/>
<input semantic="INV_BIND_MATRIX" source="#avatar_Leg-skin-bind_poses"/>
</joints>
<vertex_weights count="1261">
</skin>
</controller>
<controller /> // 繰り返し
</library_controllers>