Skip to content

Instantly share code, notes, and snippets.

@maccyber
Created December 16, 2019 23:09
Show Gist options
  • Save maccyber/7f1ed5449d4b4e49a40fca63834391c4 to your computer and use it in GitHub Desktop.
Save maccyber/7f1ed5449d4b4e49a40fca63834391c4 to your computer and use it in GitHub Desktop.
{
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 36,
"max": [
0.035131800919771194,
-0.59078401327133179,
0.15331600606441498
],
"min": [
-0.035131800919771194,
-0.61689102649688721,
-0.15331600606441498
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 432,
"componentType": 5126,
"count": 36,
"max": [
0.99050790071487427,
1,
0.13745598495006561
],
"min": [
-0.99050790071487427,
-1,
-0.13745598495006561
],
"type": "VEC3"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 36,
"max": [
0.13745598495006561,
1.609118019019651e-15,
1,
1
],
"min": [
-0.13745598495006561,
-1.3470830828306128e-14,
-1,
-1
],
"type": "VEC4"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 36,
"max": [
0.99213600158691406,
0.94569200277328491
],
"min": [
0.62472802400588989,
0.58941102027893066
],
"type": "VEC2"
},
{
"bufferView": 0,
"componentType": 5125,
"count": 60,
"max": [
35
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 864,
"componentType": 5126,
"count": 36,
"max": [
0.035131800919771194,
-0.21509799361228943,
0.15331600606441498
],
"min": [
-0.035131800919771194,
-0.24120500683784485,
-0.15331600606441498
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 1296,
"componentType": 5126,
"count": 36,
"max": [
0.99050790071487427,
1,
0.13745598495006561
],
"min": [
-0.99050790071487427,
-1,
-0.13745598495006561
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 576,
"componentType": 5126,
"count": 36,
"max": [
0.13745598495006561,
2.3574012818325558e-14,
1,
1
],
"min": [
-0.13745598495006561,
-2.8159606096304479e-15,
-1,
-1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 288,
"componentType": 5126,
"count": 36,
"max": [
0.99213600158691406,
0.94569200277328491
],
"min": [
0.62472802400588989,
0.58941102027893066
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 240,
"componentType": 5125,
"count": 60,
"max": [
35
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 1728,
"componentType": 5126,
"count": 806,
"max": [
0.10779300332069397,
-0.89986902475357056,
0.049839798361063004
],
"min": [
-0.10680299997329712,
-1,
-0.049839798361063004
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 11400,
"componentType": 5126,
"count": 806,
"max": [
1,
0.74469316005706787,
1
],
"min": [
-1,
-1,
-1
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 1152,
"componentType": 5126,
"count": 806,
"max": [
1,
0.98079490661621094,
1,
1
],
"min": [
-1,
-0.76723158359527588,
-0.99952352046966553,
-1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 576,
"componentType": 5126,
"count": 806,
"max": [
1,
0.76229202747344971
],
"min": [
0,
0
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 480,
"componentType": 5125,
"count": 3048,
"max": [
805
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 21072,
"componentType": 5126,
"count": 806,
"max": [
0.050334498286247253,
-0.89986902475357056,
0.10729800164699554
],
"min": [
-0.049345199018716812,
-1,
-0.10729800164699554
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 30744,
"componentType": 5126,
"count": 806,
"max": [
1,
0.74469316005706787,
1
],
"min": [
-1,
-1,
-1
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 14048,
"componentType": 5126,
"count": 806,
"max": [
0.99952352046966553,
0.98079502582550049,
1,
1
],
"min": [
-1,
-0.76723062992095947,
-1,
-1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 7024,
"componentType": 5126,
"count": 806,
"max": [
1,
0.76229202747344971
],
"min": [
0,
0
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 12672,
"componentType": 5125,
"count": 3048,
"max": [
805
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 40416,
"componentType": 5126,
"count": 706,
"max": [
0.072295397520065308,
0.16146300733089447,
0.28718599677085876
],
"min": [
-0.072295397520065308,
-0.9965059757232666,
-0.28718599677085876
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 48888,
"componentType": 5126,
"count": 706,
"max": [
1,
1,
1
],
"min": [
-1,
-1,
-1
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 26944,
"componentType": 5126,
"count": 706,
"max": [
0.99931228160858154,
0.96119093894958496,
0.90525913238525391,
1
],
"min": [
-0.99135071039199829,
-0.99995303153991699,
-0.90525954961776733,
-1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 13472,
"componentType": 5126,
"count": 706,
"max": [
1,
0.94298899173736572
],
"min": [
0,
0
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 24864,
"componentType": 5125,
"count": 2640,
"max": [
705
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 57360,
"componentType": 5126,
"count": 290,
"max": [
0.12413900345563889,
1,
0.12413900345563889
],
"min": [
-0.12413900345563889,
-0.99029499292373657,
-0.12413900345563889
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 60840,
"componentType": 5126,
"count": 290,
"max": [
1,
1,
1
],
"min": [
-1,
-1,
-1
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 38240,
"componentType": 5126,
"count": 290,
"max": [
0.89095538854598999,
0.99999535083770752,
0.94660419225692749,
1
],
"min": [
-0.079157307744026184,
-0.96470719575881958,
-0.95744282007217407,
1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 19120,
"componentType": 5126,
"count": 290,
"max": [
0.99767899513244629,
1
],
"min": [
0,
0
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 35424,
"componentType": 5125,
"count": 1200,
"max": [
289
],
"min": [
0
],
"type": "SCALAR"
}
],
"asset": {
"extras": {
"author": "Peter Primini (https://sketchfab.com/Planetrix23)",
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
"source": "https://sketchfab.com/models/d1b5ea63119c40c89a898f650f6d7836",
"title": "Simple Rocket: Firestone 2 Alternate Colors"
},
"generator": "Sketchfab-3.46.3",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 40224,
"byteOffset": 0,
"name": "floatBufferViews",
"target": 34963
},
{
"buffer": 0,
"byteLength": 21440,
"byteOffset": 40224,
"byteStride": 8,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 64320,
"byteOffset": 61664,
"byteStride": 12,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 42880,
"byteOffset": 125984,
"byteStride": 16,
"name": "floatBufferViews",
"target": 34962
}
],
"buffers": [
{
"byteLength": 168864,
"uri": "scene.bin"
}
],
"images": [
{
"uri": "textures/lambert1_metallicRoughness.png"
},
{
"uri": "textures/lambert1_baseColor.jpeg"
},
{
"uri": "textures/lambert1_normal.png"
},
{
"uri": "textures/lambert3_metallicRoughness.png"
},
{
"uri": "textures/lambert3_baseColor.jpeg"
},
{
"uri": "textures/lambert3_normal.png"
},
{
"uri": "textures/lambert2_metallicRoughness.png"
},
{
"uri": "textures/lambert2_baseColor.jpeg"
},
{
"uri": "textures/lambert2_normal.png"
}
],
"materials": [
{
"doubleSided": true,
"name": "lambert1",
"normalTexture": {
"index": 2,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 0,
"strength": 1,
"texCoord": 0
},
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 1,
"texCoord": 0
},
"metallicFactor": 1,
"metallicRoughnessTexture": {
"index": 0,
"texCoord": 0
},
"roughnessFactor": 1
}
},
{
"doubleSided": true,
"name": "lambert2",
"normalTexture": {
"index": 8,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 6,
"strength": 1,
"texCoord": 0
},
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 7,
"texCoord": 0
},
"metallicFactor": 1,
"metallicRoughnessTexture": {
"index": 6,
"texCoord": 0
},
"roughnessFactor": 1
}
},
{
"doubleSided": true,
"name": "lambert3",
"normalTexture": {
"index": 5,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 3,
"strength": 1,
"texCoord": 0
},
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 4,
"texCoord": 0
},
"metallicFactor": 1,
"metallicRoughnessTexture": {
"index": 3,
"texCoord": 0
},
"roughnessFactor": 1
}
}
],
"meshes": [
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 0,
"TANGENT": 2,
"TEXCOORD_0": 3
},
"indices": 4,
"material": 0,
"mode": 4
}
]
},
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 6,
"POSITION": 5,
"TANGENT": 7,
"TEXCOORD_0": 8
},
"indices": 9,
"material": 0,
"mode": 4
}
]
},
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 11,
"POSITION": 10,
"TANGENT": 12,
"TEXCOORD_0": 13
},
"indices": 14,
"material": 2,
"mode": 4
}
]
},
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 16,
"POSITION": 15,
"TANGENT": 17,
"TEXCOORD_0": 18
},
"indices": 19,
"material": 2,
"mode": 4
}
]
},
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 21,
"POSITION": 20,
"TANGENT": 22,
"TEXCOORD_0": 23
},
"indices": 24,
"material": 1,
"mode": 4
}
]
},
{
"name": "defaultMaterial",
"primitives": [
{
"attributes": {
"NORMAL": 26,
"POSITION": 25,
"TANGENT": 27,
"TEXCOORD_0": 28
},
"indices": 29,
"material": 0,
"mode": 4
}
]
}
],
"nodes": [
{
"children": [
1
],
"name": "RootNode (gltf orientation matrix)",
"rotation": [
-0.70710678118654746,
-0,
-0,
0.70710678118654757
]
},
{
"children": [
2
],
"matrix": [
0,
-1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
-1.821999973117272e-07,
3.5100001127830183e-08,
-2.7000000013543968e-09,
1
],
"name": "RootNode (model correction matrix)"
},
{
"children": [
3,
5,
7,
9,
11,
13
],
"matrix": [
1,
0,
0,
0,
0,
-4.3711390063094768e-08,
0.999999999999999,
0,
0,
-0.999999999999999,
-4.3711390063094768e-08,
0,
0,
0,
0,
1
],
"name": "Collada visual scene group"
},
{
"children": [
4
],
"name": "pCylinder22"
},
{
"mesh": 0,
"name": "defaultMaterial"
},
{
"children": [
6
],
"name": "pCylinder21"
},
{
"mesh": 1,
"name": "defaultMaterial"
},
{
"children": [
8
],
"name": "pSphere3"
},
{
"mesh": 2,
"name": "defaultMaterial"
},
{
"children": [
10
],
"name": "pSphere2"
},
{
"mesh": 3,
"name": "defaultMaterial"
},
{
"children": [
12
],
"name": "pCylinder19"
},
{
"mesh": 4,
"name": "defaultMaterial"
},
{
"children": [
14
],
"name": "pCylinder18"
},
{
"mesh": 5,
"name": "defaultMaterial"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987,
"wrapS": 10497,
"wrapT": 10497
}
],
"scene": 0,
"scenes": [
{
"name": "OSG_Scene",
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
},
{
"sampler": 0,
"source": 2
},
{
"sampler": 0,
"source": 3
},
{
"sampler": 0,
"source": 4
},
{
"sampler": 0,
"source": 5
},
{
"sampler": 0,
"source": 6
},
{
"sampler": 0,
"source": 7
},
{
"sampler": 0,
"source": 8
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment