Skip to content

Instantly share code, notes, and snippets.

@pushmatrix
Created July 17, 2020 15:31
Show Gist options
  • Save pushmatrix/32fdaf8f819f7a18d2ee407d74e500f9 to your computer and use it in GitHub Desktop.
Save pushmatrix/32fdaf8f819f7a18d2ee407d74e500f9 to your computer and use it in GitHub Desktop.
Melded shoes
{
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"count": 13540,
"componentType": 5126,
"type": "VEC3",
"min": [
-0.999970018863678,
-1,
-0.9999949932098388
],
"max": [
0.999809980392456,
0.9999020099639891,
0.9999240040779114
]
},
{
"bufferView": 1,
"byteOffset": 0,
"count": 13540,
"componentType": 5126,
"type": "VEC3",
"min": [
-1,
-0.5139704942703247,
-0.38874176144599915
],
"max": [
1.0000001192092896,
0.5139704942703247,
0.38874176144599915
]
},
{
"bufferView": 2,
"byteOffset": 0,
"count": 13540,
"componentType": 5126,
"type": "VEC2",
"min": [
0.001952999969944358,
0.03520399332046509
],
"max": [
0.9980469942092896,
0.9980469942092896
]
},
{
"bufferView": 3,
"byteOffset": 0,
"count": 68100,
"componentType": 5125,
"type": "SCALAR",
"min": [
0
],
"max": [
13539
]
}
],
"asset": {
"generator": "THREE.GLTFExporter",
"version": "2.0"
},
"buffers": [
{
"byteLength": 6624664,
"uri": "shoes.bin"
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 162480,
"byteOffset": 0,
"byteStride": 12,
"target": 34962
},
{
"buffer": 0,
"byteLength": 162480,
"byteOffset": 162480,
"byteStride": 12,
"target": 34962
},
{
"buffer": 0,
"byteLength": 108320,
"byteOffset": 324960,
"byteStride": 8,
"target": 34962
},
{
"buffer": 0,
"byteLength": 272400,
"byteOffset": 433280,
"target": 34963
},
{
"buffer": 0,
"byteLength": 1119084,
"byteOffset": 705680
},
{
"buffer": 0,
"byteLength": 1252316,
"byteOffset": 1824764
},
{
"buffer": 0,
"byteLength": 2298412,
"byteOffset": 3077080
},
{
"buffer": 0,
"byteLength": 1249172,
"byteOffset": 5375492
},
{
"buffer": 0,
"byteLength": 1204836,
"byteOffset": 6624664
}
],
"scene": 0,
"extensions": {
"KHR_materials_variants": {
"default_variant": "midnight"
}
},
"extensionsUsed": [
"KHR_materials_variants"
],
"images": [
{
"bufferView": 4,
"mimeType": "image/jpeg"
},
{
"bufferView": 5,
"mimeType": "image/jpeg"
},
{
"bufferView": 6,
"mimeType": "image/jpeg"
},
{
"bufferView": 7,
"mimeType": "image/jpeg"
},
{
"bufferView": 8,
"mimeType": "image/jpeg"
}
],
"materials": [
{
"alphaCutoff": 0.5,
"alphaMode": "OPAQUE",
"doubleSided": false,
"name": "phong1SG",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 1,
"texCoord": 0
},
"metallicFactor": 1,
"roughnessFactor": 1,
"metallicRoughnessTexture": {
"index": 0,
"texCoord": 0
}
},
"normalTexture": {
"index": 2,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 0,
"strength": 1,
"texCoord": 0
},
"emissiveFactor": [
0,
0,
0
]
},
{
"alphaCutoff": 0.5,
"alphaMode": "OPAQUE",
"doubleSided": false,
"name": "phong1SG",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 3,
"texCoord": 0
},
"metallicFactor": 1,
"roughnessFactor": 1,
"metallicRoughnessTexture": {
"index": 0,
"texCoord": 0
}
},
"normalTexture": {
"index": 2,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 0,
"strength": 1,
"texCoord": 0
},
"emissiveFactor": [
0,
0,
0
]
},
{
"alphaCutoff": 0.5,
"alphaMode": "OPAQUE",
"doubleSided": false,
"name": "phong1SG",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 4,
"texCoord": 0
},
"metallicFactor": 1,
"roughnessFactor": 1,
"metallicRoughnessTexture": {
"index": 0,
"texCoord": 0
}
},
"normalTexture": {
"index": 2,
"scale": 1,
"texCoord": 0
},
"occlusionTexture": {
"index": 0,
"strength": 1,
"texCoord": 0
},
"emissiveFactor": [
0,
0,
0
]
}
],
"meshes": [
{
"name": "shoe",
"primitives": [
{
"attributes": {
"NORMAL": 0,
"POSITION": 1,
"TEXCOORD_0": 2
},
"extensions": {
"KHR_materials_variants": {
"mapping": [
{
"material": 0,
"variants": [
"midnight"
]
},
{
"material": 1,
"variants": [
"beach"
]
},
{
"material": 2,
"variants": [
"street"
]
}
]
}
},
"indices": 3,
"material": 0
}
]
}
],
"nodes": [
{
"extras": {
"name": "Shoe"
},
"mesh": 0,
"name": "Shoe"
},
{
"children": [
0
],
"extras": {
"name": "g Shoe"
},
"name": "g_Shoe"
},
{
"children": [
1
],
"extras": {
"name": "Shoe.obj"
},
"matrix": [
0.14893949,
0,
0,
0,
0,
0.14893949,
0,
0,
0,
0,
0.14893949,
0,
0.0016104877,
0.07590251,
0.0048509985,
1
],
"name": "Shoeobj"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9985,
"wrapS": 10497,
"wrapT": 10497
},
{
"magFilter": 9729,
"minFilter": 9985,
"wrapS": 10497,
"wrapT": 10497
},
{
"magFilter": 9729,
"minFilter": 9985,
"wrapS": 10497,
"wrapT": 10497
}
],
"scenes": [
{
"name": "Scene",
"nodes": [
2
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 1,
"source": 1
},
{
"sampler": 2,
"source": 2
},
{
"sampler": 0,
"source": 3
},
{
"sampler": 0,
"source": 4
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment