summaryrefslogtreecommitdiffstats
path: root/tests/auto/threed/load_model/models/basic-cube.dae
blob: 06167cafb08e63ec4f112f3b3449a728d29c956e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version="1.0" encoding="utf-8"?>
<COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema">
    <asset>
        <contributor>
            <author>Illusoft Collada 1.4.0 plugin for Blender - http://colladablender.illusoft.com</author>
            <authoring_tool>Blender v:249 - Illusoft Collada Exporter v:0.3.162</authoring_tool>
            <comments></comments>
            <copyright></copyright>
            <source_data>file:///Users/sez/depot/research/qt3d_assimp/tests/auto/threed/load_model/models/basic-cube.blend</source_data>
        </contributor>
        <created>2010-12-15T02:14:49.600213</created>
        <modified>2010-12-15T02:14:49.600247</modified>
        <unit meter="0.01" name="centimeter"/>
        <up_axis>Z_UP</up_axis>
    </asset>
    <library_effects>
        <effect id="Red-fx" name="Red-fx">
            <profile_COMMON>
                <technique sid="blender">
                    <phong>
                        <emission>
                            <color>0.00000 0.00000 0.00000 1</color>
                        </emission>
                        <ambient>
                            <color>0.45937 0.07860 0.07860 1</color>
                        </ambient>
                        <diffuse>
                            <color>0.91873 0.15720 0.15720 1</color>
                        </diffuse>
                        <specular>
                            <color>0.50000 0.50000 0.50000 1</color>
                        </specular>
                        <shininess>
                            <float>12.5</float>
                        </shininess>
                        <reflective>
                            <color>1.00000 1.00000 1.00000 1</color>
                        </reflective>
                        <reflectivity>
                            <float>0.0</float>
                        </reflectivity>
                        <transparent>
                            <color>1 1 1 1</color>
                        </transparent>
                        <transparency>
                            <float>0.0</float>
                        </transparency>
                    </phong>
                </technique>
            </profile_COMMON>
        </effect>
        <effect id="SlateGray-fx" name="SlateGray-fx">
            <profile_COMMON>
                <technique sid="blender">
                    <phong>
                        <emission>
                            <color>0.00000 0.00000 0.00000 1</color>
                        </emission>
                        <ambient>
                            <color>0.18500 0.28000 0.30500 1</color>
                        </ambient>
                        <diffuse>
                            <color>0.37000 0.56000 0.61000 1</color>
                        </diffuse>
                        <specular>
                            <color>0.50000 0.50000 0.50000 1</color>
                        </specular>
                        <shininess>
                            <float>12.5</float>
                        </shininess>
                        <reflective>
                            <color>1.00000 1.00000 1.00000 1</color>
                        </reflective>
                        <reflectivity>
                            <float>0.0</float>
                        </reflectivity>
                        <transparent>
                            <color>1 1 1 1</color>
                        </transparent>
                        <transparency>
                            <float>0.0</float>
                        </transparency>
                    </phong>
                </technique>
            </profile_COMMON>
        </effect>
    </library_effects>
    <library_materials>
        <material id="Red" name="Red">
            <instance_effect url="#Red-fx"/>
        </material>
        <material id="SlateGray" name="SlateGray">
            <instance_effect url="#SlateGray-fx"/>
        </material>
    </library_materials>
    <library_geometries>
        <geometry id="CubeObject-Geometry" name="CubeObject-Geometry">
            <mesh>
                <source id="CubeObject-Geometry-Position">
                    <float_array count="24" id="CubeObject-Geometry-Position-array">1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000 1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000</float_array>
                    <technique_common>
                        <accessor count="8" source="#CubeObject-Geometry-Position-array" stride="3">
                            <param type="float" name="X"></param>
                            <param type="float" name="Y"></param>
                            <param type="float" name="Z"></param>
                        </accessor>
                    </technique_common>
                </source>
                <source id="CubeObject-Geometry-Normals">
                    <float_array count="18" id="CubeObject-Geometry-Normals-array">0.00000 0.00000 -1.00000 0.00000 -0.00000 1.00000 1.00000 -0.00000 0.00000 -0.00000 -1.00000 -0.00000 -1.00000 0.00000 -0.00000 0.00000 1.00000 0.00000</float_array>
                    <technique_common>
                        <accessor count="6" source="#CubeObject-Geometry-Normals-array" stride="3">
                            <param type="float" name="X"></param>
                            <param type="float" name="Y"></param>
                            <param type="float" name="Z"></param>
                        </accessor>
                    </technique_common>
                </source>
                <vertices id="CubeObject-Geometry-Vertex">
                    <input semantic="POSITION" source="#CubeObject-Geometry-Position"/>
                </vertices>
                <triangles count="10" material="Red">
                    <input offset="0" semantic="VERTEX" source="#CubeObject-Geometry-Vertex"/>
                    <input offset="1" semantic="NORMAL" source="#CubeObject-Geometry-Normals"/>
                    <p>0 0 1 0 2 0 2 0 3 0 0 0 0 2 4 2 5 2 5 2 1 2 0 2 1 3 5 3 6 3 6 3 2 3 1 3 2 4 6 4 7 4 7 4 3 4 2 4 4 5 0 5 3 5 3 5 7 5 4 5</p>
                </triangles>
                <triangles count="2" material="SlateGray">
                    <input offset="0" semantic="VERTEX" source="#CubeObject-Geometry-Vertex"/>
                    <input offset="1" semantic="NORMAL" source="#CubeObject-Geometry-Normals"/>
                    <p>4 1 7 1 6 1 6 1 5 1 4 1</p>
                </triangles>
            </mesh>
        </geometry>
    </library_geometries>
    <library_visual_scenes>
        <visual_scene id="Scene" name="Scene">
            <node layer="L1" id="CubeObject" name="CubeObject">
                <translate sid="translate">0.00000 0.00000 0.00000</translate>
                <rotate sid="rotateZ">0 0 1 0.00000</rotate>
                <rotate sid="rotateY">0 1 0 -0.00000</rotate>
                <rotate sid="rotateX">1 0 0 0.00000</rotate>
                <scale sid="scale">1.00000 1.00000 1.00000</scale>
                <instance_geometry url="#CubeObject-Geometry">
                    <bind_material>
                        <technique_common>
                            <instance_material symbol="Red" target="#Red">
                                <bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/>
                            </instance_material>
                            <instance_material symbol="SlateGray" target="#SlateGray">
                                <bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/>
                            </instance_material>
                        </technique_common>
                    </bind_material>
                </instance_geometry>
            </node>
        </visual_scene>
    </library_visual_scenes>
    <library_physics_materials>
        <physics_material id="CubeObject-PhysicsMaterial" name="CubeObject-PhysicsMaterial">
            <technique_common>
                <dynamic_friction>0.5</dynamic_friction>
                <restitution>0.0</restitution>
                <static_friction>0.5</static_friction>
            </technique_common>
        </physics_material>
    </library_physics_materials>
    <library_physics_models>
        <physics_model id="Scene-PhysicsModel" name="Scene-PhysicsModel">
            <rigid_body name="CubeObject-RigidBody" sid="CubeObject-RigidBody">
                <technique_common>
                    <dynamic>false</dynamic>
                    <mass>0</mass>
                    <instance_physics_material url="#CubeObject-PhysicsMaterial"/>
                    <shape>
                        <instance_geometry url="#CubeObject-Geometry"/>
                    </shape>
                </technique_common>
            </rigid_body>
        </physics_model>
    </library_physics_models>
    <library_physics_scenes>
        <physics_scene id="Scene-Physics" name="Scene-Physics">
            <instance_physics_model url="#Scene-PhysicsModel">
                <instance_rigid_body body="CubeObject-RigidBody" target="#CubeObject"/>
            </instance_physics_model>
        </physics_scene>
    </library_physics_scenes>
    <scene>
        <instance_physics_scene url="#Scene-Physics"/>
        <instance_visual_scene url="#Scene"/>
    </scene>
</COLLADA>