995d3b15dbe6a08056bdf11c7f6362b5bf5c1006
[platform/core/uifw/dali-toolkit.git] / automated-tests / resources / AnimatedCube.gltf
1 {
2    "accessors" : [
3       {
4          "bufferView" : 0,
5          "byteOffset" : 0,
6          "componentType" : 5126,
7          "count" : 3,
8          "max" : [
9             2.000000
10          ],
11          "min" : [
12             0.000000
13          ],
14          "type" : "SCALAR"
15       },
16       {
17          "bufferView" : 1,
18          "byteOffset" : 0,
19          "componentType" : 5126,
20          "count" : 3,
21          "max" : [
22             0.000000,
23             1.000000,
24             0.000000,
25             1.000000
26          ],
27          "min" : [
28             0.000000,
29             -8.742278e-008,
30             0.000000,
31             -1.000000
32          ],
33          "type" : "VEC4"
34       },
35       {
36          "bufferView" : 2,
37          "byteOffset" : 0,
38          "componentType" : 5123,
39          "count" : 36,
40          "max" : [
41             35
42          ],
43          "min" : [
44             0
45          ],
46          "type" : "SCALAR"
47       },
48       {
49          "bufferView" : 3,
50          "byteOffset" : 0,
51          "componentType" : 5126,
52          "count" : 36,
53          "max" : [
54             1.000000,
55             1.000000,
56             1.000001
57          ],
58          "min" : [
59             -1.000000,
60             -1.000000,
61             -1.000000
62          ],
63          "type" : "VEC3"
64       },
65       {
66          "bufferView" : 4,
67          "byteOffset" : 0,
68          "componentType" : 5126,
69          "count" : 36,
70          "max" : [
71             1.000000,
72             1.000000,
73             1.000000
74          ],
75          "min" : [
76             -1.000000,
77             -1.000000,
78             -1.000000
79          ],
80          "type" : "VEC3"
81       },
82       {
83          "bufferView" : 5,
84          "byteOffset" : 0,
85          "componentType" : 5126,
86          "count" : 36,
87          "max" : [
88             1.000000,
89             -0.000000,
90             -0.000000,
91             1.000000
92          ],
93          "min" : [
94             0.000000,
95             -0.000000,
96             -1.000000,
97             -1.000000
98          ],
99          "type" : "VEC4"
100       },
101       {
102          "bufferView" : 6,
103          "byteOffset" : 0,
104          "componentType" : 5126,
105          "count" : 36,
106          "max" : [
107             1.000000,
108             1.000000
109          ],
110          "min" : [
111             -1.000000,
112             -1.000000
113          ],
114          "type" : "VEC2"
115       }
116    ],
117    "animations" : [
118     {
119        "channels" : [
120           {
121              "sampler" : 0,
122              "target" : {
123                 "node" : 0,
124                 "path" : "rotation"
125              }
126           }
127        ],
128        "name" : "animation_AnimatedCube",
129        "samplers" : [
130           {
131              "input" : 0,
132              "interpolation" : "LINEAR",
133              "output" : 1
134           }
135        ]
136     }
137    ],
138    "asset" : {
139       "generator" : "VKTS glTF 2.0 exporter",
140       "version" : "2.0"
141    },
142    "bufferViews" : [
143       {
144          "buffer" : 0,
145          "byteLength" : 12,
146          "byteOffset" : 0
147       },
148       {
149          "buffer" : 0,
150          "byteLength" : 48,
151          "byteOffset" : 12
152       },
153       {
154          "buffer" : 0,
155          "byteLength" : 72,
156          "byteOffset" : 60,
157          "target" : 34963
158       },
159       {
160          "buffer" : 0,
161          "byteLength" : 432,
162          "byteOffset" : 132,
163          "target" : 34962
164       },
165       {
166          "buffer" : 0,
167          "byteLength" : 432,
168          "byteOffset" : 564,
169          "target" : 34962
170       },
171       {
172          "buffer" : 0,
173          "byteLength" : 576,
174          "byteOffset" : 996,
175          "target" : 34962
176       },
177       {
178          "buffer" : 0,
179          "byteLength" : 288,
180          "byteOffset" : 1572,
181          "target" : 34962
182       }
183    ],
184    "buffers" : [
185       {
186          "byteLength" : 1860,
187          "uri" : "AnimatedCube.bin"
188       }
189    ],
190    "images" : [
191       {
192          "uri" : "AnimatedCube_BaseColor.png"
193       },
194       {
195          "uri" : "AnimatedCube_MetallicRoughness.png"
196       }
197    ],
198    "materials" : [
199       {
200          "name" : "AnimatedCube",
201          "pbrMetallicRoughness" : {
202             "baseColorTexture" : {
203                "index" : 0
204             },
205             "baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
206             "metallicFactor": 1.0,
207             "roughnessFactor": 0.0
208          },
209          "normalTexture": {
210           "scale": 1,
211           "index": 0
212          },
213          "occlusionTexture": {
214           "index": 0
215          },
216          "emissiveTexture": {
217           "index": 0
218          },
219          "emissiveFactor": [ 0.2, 0.1, 0.0 ],
220          "doubleSided": false,
221          "alphaMode": "MASK",
222          "alphaCutoff": 0.5
223       },
224       {
225          "name" : "AnimatedCube2",
226          "pbrMetallicRoughness" : {
227             "baseColorTexture" : {
228                "index" : 0
229             },
230             "metallicRoughnessTexture" : {
231                "index" : 1
232             },
233             "baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
234             "metallicFactor": 1.0,
235             "roughnessFactor": 0.0
236          },
237          "normalTexture": {
238           "scale": 1,
239           "index": 0
240          },
241          "occlusionTexture": {
242           "index": 0
243          },
244          "emissiveTexture": {
245           "index": 0
246          },
247          "emissiveFactor": [ 0.2, 0.1, 0.0 ],
248          "doubleSided": false,
249          "alphaMode": "OPAQUE"
250       }
251    ],
252    "meshes" : [
253       {
254          "name" : "AnimatedCube",
255          "primitives" : [
256             {
257                "attributes" : {
258                   "NORMAL" : 4,
259                   "POSITION" : 3,
260                   "TANGENT" : 5,
261                   "TEXCOORD_0" : 6,
262                   "COLOR_0" : 3
263                },
264                "indices" : 2,
265                "material" : 0,
266                "mode" : 4
267             }
268          ]
269       },
270       {
271          "name" : "AnimatedCube2",
272          "primitives" : [
273             {
274                "attributes" : {
275                   "NORMAL" : 4,
276                   "POSITION" : 3,
277                   "TANGENT" : 5,
278                   "TEXCOORD_0" : 6,
279                   "COLOR_0" : 3
280                },
281                "indices" : 2,
282                "material" : 1,
283                "mode" : 4
284             }
285          ]
286       }
287    ],
288    "nodes" : [
289       {
290          "mesh" : 0,
291          "name" : "AnimatedCube",
292          "rotation" : [
293             0.000000,
294             -1.000000,
295             0.000000,
296             0.000000
297          ]
298       },
299       {
300          "mesh" : 1,
301          "name" : "AnimatedCube2"
302       },
303       {
304
305         "camera" : 0,
306         "scale" : [ 0.5, 0.5, 3.0 ]
307       },
308       {
309         "camera" : 1,
310         "translation" : [ 0.5, 0.5, 3.0 ],
311         "children": [
312           4
313         ]
314       },
315       {
316         "camera" : 2,
317         "matrix": [
318             1.0,
319             0.0,
320             0.0,
321             0.0,
322             0.0,
323             0.0,
324             -1.0,
325             0.0,
326             0.0,
327             1.0,
328             0.0,
329             0.0,
330             0.0,
331             0.0,
332             0.0,
333             1.0
334         ]
335       }
336    ],
337    "scene" : 0,
338    "scenes" : [
339       {
340          "nodes" : [
341             0, 1, 2, 3
342          ]
343       }
344    ],
345    "textures" : [
346       {
347          "sampler" : 0,
348          "source" : 0
349       },
350       {
351          "sampler" : 1,
352          "source" : 1
353       }
354    ],
355    "cameras" : [
356     {
357       "type": "perspective",
358       "perspective": {
359         "aspectRatio": 1.0,
360         "yfov": 0.7,
361         "zfar": 100.0,
362         "znear": 0.01
363       }
364     },
365     {
366       "type": "orthographic",
367       "orthographic": {
368         "xmag": 1.0,
369         "ymag": 1.0,
370         "zfar": 100.0,
371         "znear": 0.01
372       }
373     },
374     {
375       "type": "orthographic",
376       "orthographic": {
377         "xmag": 1.0,
378         "ymag": 1.0,
379         "zfar": 100.0,
380         "znear": 0.01
381       }
382     }
383    ],
384    "samplers": [
385     {
386         "magFilter": 9729,
387         "minFilter": 9987,
388         "wrapS": 33071,
389         "wrapT": 10497
390     },
391     {
392         "magFilter": 9728,
393         "minFilter": 9986,
394         "wrapS": 33071,
395         "wrapT": 33648
396     }
397    ]
398 }