Анимированный кубик

This commit is contained in:
parent 99d91a5e2e
commit 8db75cc568
6 changed files with 627 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,209 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.0.44",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0,
0.3826834559440613,
0,
0.9238795638084412
],
"scale":[
0.10000000149011612,
0.10000000149011612,
0.10000000149011612
],
"translation":[
0,
0.10000000149011612,
0
]
}
],
"animations":[
{
"channels":[
{
"sampler":0,
"target":{
"node":0,
"path":"translation"
}
},
{
"sampler":1,
"target":{
"node":0,
"path":"rotation"
}
}
],
"name":"CubeAction",
"samplers":[
{
"input":4,
"interpolation":"CUBICSPLINE",
"output":5
},
{
"input":4,
"interpolation":"CUBICSPLINE",
"output":6
}
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Cube",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":25,
"max":[
10
],
"min":[
0.041666666666666664
],
"type":"SCALAR"
},
{
"bufferView":5,
"componentType":5126,
"count":75,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":75,
"type":"VEC4"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":288,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":576,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":768,
"target":34963
},
{
"buffer":0,
"byteLength":100,
"byteOffset":840
},
{
"buffer":0,
"byteLength":900,
"byteOffset":940
},
{
"buffer":0,
"byteLength":1200,
"byteOffset":1840
}
],
"buffers":[
{
"byteLength":3040,
"uri":"rotating-cube_cubic-spline.bin"
}
]
}

Binary file not shown.

View File

@ -0,0 +1,209 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.0.44",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0,
0.3826834559440613,
0,
0.9238795638084412
],
"scale":[
0.10000000149011612,
0.10000000149011612,
0.10000000149011612
],
"translation":[
0,
0.10000000149011612,
0
]
}
],
"animations":[
{
"channels":[
{
"sampler":0,
"target":{
"node":0,
"path":"translation"
}
},
{
"sampler":1,
"target":{
"node":0,
"path":"rotation"
}
}
],
"name":"CubeAction",
"samplers":[
{
"input":4,
"interpolation":"LINEAR",
"output":5
},
{
"input":4,
"interpolation":"LINEAR",
"output":6
}
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Cube",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":240,
"max":[
10
],
"min":[
0.041666666666666664
],
"type":"SCALAR"
},
{
"bufferView":5,
"componentType":5126,
"count":240,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":240,
"type":"VEC4"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":288,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":576,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":768,
"target":34963
},
{
"buffer":0,
"byteLength":960,
"byteOffset":840
},
{
"buffer":0,
"byteLength":2880,
"byteOffset":1800
},
{
"buffer":0,
"byteLength":3840,
"byteOffset":4680
}
],
"buffers":[
{
"byteLength":8520,
"uri":"rotating-cube_linear.bin"
}
]
}

Binary file not shown.

View File

@ -0,0 +1,209 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.0.44",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"rotation":[
0,
0.3826834559440613,
0,
0.9238795638084412
],
"scale":[
0.10000000149011612,
0.10000000149011612,
0.10000000149011612
],
"translation":[
0,
0.10000000149011612,
0
]
}
],
"animations":[
{
"channels":[
{
"sampler":0,
"target":{
"node":0,
"path":"translation"
}
},
{
"sampler":1,
"target":{
"node":0,
"path":"rotation"
}
}
],
"name":"CubeAction",
"samplers":[
{
"input":4,
"interpolation":"LINEAR",
"output":5
},
{
"input":4,
"interpolation":"STEP",
"output":6
}
]
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Cube",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":25,
"max":[
10
],
"min":[
0.041666666666666664
],
"type":"SCALAR"
},
{
"bufferView":5,
"componentType":5126,
"count":25,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":25,
"type":"VEC4"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":288,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":576,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":768,
"target":34963
},
{
"buffer":0,
"byteLength":100,
"byteOffset":840
},
{
"buffer":0,
"byteLength":300,
"byteOffset":940
},
{
"buffer":0,
"byteLength":400,
"byteOffset":1240
}
],
"buffers":[
{
"byteLength":1640,
"uri":"rotating-cube_step.bin"
}
]
}