#author("2024-05-05T07:25:25+00:00","default:iseki","iseki")
#author("2024-05-05T07:52:26+00:00","default:iseki","iseki")
* Structure of Collada

** 構造
*** 全体
- <.... /> は省略表示
- // 以降はコメント

<pre>
<?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_physics_models />
    <library_physics_scenes />
    <library_visual_scenes />
    <scene />
</COLLADA>
</pre>


*** [[library_effects>./library_effects]]

*** [[library_materials>./library_materials]]

*** [[library_geometries>./library_geometries]]
<pre>
    <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>
</pre>
*** [[library_controllers>./library_controllers]]
<pre>
    <library_controllers>

        <controller id="avatar_Leg-skin" name="avatar">    // <geometry> と同じ数だけ繰り返し 
            <skin source="#Leg-mesh">
                <bind_shape_matrix>                          // BIND_SHAPE_MATRIX (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" />       // JOINT
                <source id="avatar_Leg-skin-bind_poses" />   // INV_BIND_MATRIX (inverse_bind_matrix)
                <source id="avatar_Leg-skin-weights" />      // 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>
</pre>

*** [[library_visual_scenes>./library_visual_scenes]]
<pre>
    <library_visual_scenes>
        <visual_scene id="Scene" name="Scene">

            <node id="avatar" name="avatar" type="NODE" />   // ALT_INV_BIND_MATRIX

            <node id="NODE_tYZIzQwn" name="UnityChan2" type="NODE">    // <geometory> の数だけ繰り返し
                <matrix>
                    1.000000 0.000000 0.000000 13.780197 0.000000 1.000000 0.000000 24.640701 0.000000 0.000000 1.000000 2.400120 0.000000 0.000000 0.000000 1.000000
                </matrix>
                <scale sid="scale">0.113207 0.160531 0.214631</scale>
                <instance_geometry url="#GEOMETRY_NWR1mCD7">
                    <bind_material>
                        <technique_common>
                            <instance_material symbol="MATERIAL_30f6a741_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABP" target="#MATERIAL_30f6a741_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABP" />
                            <instance_material symbol="MATERIAL_b353f73e_AAAAGQAAAAAAAAAAAAAAAAAAAAAAAABP" target="#MATERIAL_b353f73e_AAAAGQAAAAAAAAAAAAAAAAAAAAAAAABP" />
                        </technique_common>
                    </bind_material>
                </instance_geometry>
            </node>

            <node />  // 繰り返し
            ........
        </visual_scene>
    </library_visual_scenes>
</pre>

*** scene
<pre>
  <scene>
    <instance_visual_scene url="#Scene"/>
  </scene>
</pre>

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS