Scene and glTF Loader
[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             "metallicRoughnessTexture" : {
206                "index" : 1
207             },
208             "baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
209             "metallicFactor": 1.0,
210             "roughnessFactor": 0.0
211          },
212          "normalTexture": {
213           "scale": 1,
214           "index": 0
215          },
216          "occlusionTexture": {
217           "index": 0
218          },
219          "emissiveTexture": {
220           "index": 0
221          },
222          "emissiveFactor": [ 0.2, 0.1, 0.0 ],
223          "doubleSided": false,
224          "alphaMode": "MASK",
225          "alphaCutoff": 0.5
226       },
227       {
228          "name" : "AnimatedCube2",
229          "pbrMetallicRoughness" : {
230             "baseColorTexture" : {
231                "index" : 0
232             },
233             "metallicRoughnessTexture" : {
234                "index" : 1
235             },
236             "baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
237             "metallicFactor": 1.0,
238             "roughnessFactor": 0.0
239          },
240          "normalTexture": {
241           "scale": 1,
242           "index": 0
243          },
244          "occlusionTexture": {
245           "index": 0
246          },
247          "emissiveTexture": {
248           "index": 0
249          },
250          "emissiveFactor": [ 0.2, 0.1, 0.0 ],
251          "doubleSided": false,
252          "alphaMode": "OPAQUE"
253       }
254    ],
255    "meshes" : [
256       {
257          "name" : "AnimatedCube",
258          "primitives" : [
259             {
260                "attributes" : {
261                   "NORMAL" : 4,
262                   "POSITION" : 3,
263                   "TANGENT" : 5,
264                   "TEXCOORD_0" : 6,
265                   "COLOR_0" : 3
266                },
267                "indices" : 2,
268                "material" : 0,
269                "mode" : 4
270             }
271          ]
272       },
273       {
274          "name" : "AnimatedCube2",
275          "primitives" : [
276             {
277                "attributes" : {
278                   "NORMAL" : 4,
279                   "POSITION" : 3,
280                   "TANGENT" : 5,
281                   "TEXCOORD_0" : 6,
282                   "COLOR_0" : 3
283                },
284                "indices" : 2,
285                "material" : 1,
286                "mode" : 4
287             }
288          ]
289       }
290    ],
291    "nodes" : [
292       {
293          "mesh" : 0,
294          "name" : "AnimatedCube",
295          "rotation" : [
296             0.000000,
297             -1.000000,
298             0.000000,
299             0.000000
300          ]
301       },
302       {
303          "mesh" : 1,
304          "name" : "AnimatedCube2"
305       },
306       {
307
308         "camera" : 0,
309         "scale" : [ 0.5, 0.5, 3.0 ]
310       },
311       {
312         "camera" : 1,
313         "translation" : [ 0.5, 0.5, 3.0 ],
314         "children": [
315           4
316         ]
317       },
318       {
319         "camera" : 2,
320         "matrix": [
321             1.0,
322             0.0,
323             0.0,
324             0.0,
325             0.0,
326             0.0,
327             -1.0,
328             0.0,
329             0.0,
330             1.0,
331             0.0,
332             0.0,
333             0.0,
334             0.0,
335             0.0,
336             1.0
337         ]
338       }
339    ],
340    "scene" : 0,
341    "scenes" : [
342       {
343          "nodes" : [
344             0, 1, 2, 3
345          ]
346       }
347    ],
348    "textures" : [
349       {
350          "sampler" : 0,
351          "source" : 0
352       },
353       {
354          "sampler" : 1,
355          "source" : 1
356       }
357    ],
358    "cameras" : [
359     {
360       "type": "perspective",
361       "perspective": {
362         "aspectRatio": 1.0,
363         "yfov": 0.7,
364         "zfar": 100.0,
365         "znear": 0.01
366       }
367     },
368     {
369       "type": "orthographic",
370       "orthographic": {
371         "xmag": 1.0,
372         "ymag": 1.0,
373         "zfar": 100.0,
374         "znear": 0.01
375       }
376     },
377     {
378       "type": "orthographic",
379       "orthographic": {
380         "xmag": 1.0,
381         "ymag": 1.0,
382         "zfar": 100.0,
383         "znear": 0.01
384       }
385     }
386    ],
387    "samplers": [
388     {
389         "magFilter": 9729,
390         "minFilter": 9987,
391         "wrapS": 33071,
392         "wrapT": 10497
393     },
394     {
395         "magFilter": 9728,
396         "minFilter": 9986,
397         "wrapS": 33071,
398         "wrapT": 33648
399     }
400    ]
401 }