mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-01-31 12:03:10 -05:00
487 lines
12 KiB
JSON
487 lines
12 KiB
JSON
{
|
|
"accessors": {
|
|
"accessor_0": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 0,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-6
|
|
],
|
|
"max": [
|
|
1,
|
|
1,
|
|
-4
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_1": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 288,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_2": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 576,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
0,
|
|
0
|
|
],
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC2"
|
|
},
|
|
"accessor_3": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 0,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
0
|
|
],
|
|
"max": [
|
|
11
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
"accessor_4": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 36,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
12
|
|
],
|
|
"max": [
|
|
23
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
"accessor_5": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 768,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
4,
|
|
-1,
|
|
-1
|
|
],
|
|
"max": [
|
|
6,
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_6": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 1056,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_7": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 1344,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
0,
|
|
0
|
|
],
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC2"
|
|
},
|
|
"accessor_8": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 72,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
0
|
|
],
|
|
"max": [
|
|
11
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
"accessor_9": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 108,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
12
|
|
],
|
|
"max": [
|
|
23
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
"accessor_10": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 1536,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_11": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 1824,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
"accessor_12": {
|
|
"bufferView": "bufferView_vertex",
|
|
"byteOffset": 2112,
|
|
"byteStride": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"min": [
|
|
0,
|
|
0
|
|
],
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"type": "VEC2"
|
|
},
|
|
"accessor_13": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 144,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
0
|
|
],
|
|
"max": [
|
|
11
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
"accessor_14": {
|
|
"bufferView": "bufferView_index",
|
|
"byteOffset": 180,
|
|
"byteStride": 0,
|
|
"componentType": 5123,
|
|
"count": 18,
|
|
"min": [
|
|
12
|
|
],
|
|
"max": [
|
|
23
|
|
],
|
|
"type": "SCALAR"
|
|
}
|
|
},
|
|
"asset": {
|
|
"generator": "obj2gltf",
|
|
"profile": {
|
|
"api": "WebGL",
|
|
"version": "1.0"
|
|
},
|
|
"version": "1.0"
|
|
},
|
|
"buffers": {
|
|
"buffer": {
|
|
"byteLength": 2520,
|
|
"uri": "data:application/octet-stream;base64,AACAvwAAgL8AAIDAAACAvwAAgD8AAIDAAACAvwAAgD8AAMDAAACAvwAAgL8AAMDAAACAvwAAgL8AAMDAAACAvwAAgD8AAMDAAACAPwAAgD8AAMDAAACAPwAAgL8AAMDAAACAPwAAgL8AAMDAAACAPwAAgD8AAMDAAACAPwAAgD8AAIDAAACAPwAAgL8AAIDAAACAPwAAgL8AAIDAAACAPwAAgD8AAIDAAACAvwAAgD8AAIDAAACAvwAAgL8AAIDAAACAvwAAgL8AAMDAAACAPwAAgL8AAMDAAACAPwAAgL8AAIDAAACAvwAAgL8AAIDAAACAPwAAgD8AAMDAAACAvwAAgD8AAMDAAACAvwAAgD8AAIDAAACAPw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AAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AAAAAAAAAAAAAAAAAAAAAAAAgD8AAIA/AACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AAAAAAAAAAAAAAAAAAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAAAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAAAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcA"
|
|
}
|
|
},
|
|
"bufferViews": {
|
|
"bufferView_vertex": {
|
|
"buffer": "buffer",
|
|
"byteLength": 2304,
|
|
"byteOffset": 0,
|
|
"target": 34962
|
|
},
|
|
"bufferView_index": {
|
|
"buffer": "buffer",
|
|
"byteLength": 216,
|
|
"byteOffset": 2304,
|
|
"target": 34963
|
|
}
|
|
},
|
|
"extensionsUsed": [
|
|
"KHR_materials_common"
|
|
],
|
|
"images": {},
|
|
"materials": {
|
|
"Blue": {
|
|
"extensions": {
|
|
"KHR_materials_common": {
|
|
"technique": "PHONG",
|
|
"values": {
|
|
"ambient": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"diffuse": [
|
|
0,
|
|
0,
|
|
0.64,
|
|
1
|
|
],
|
|
"emission": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"specular": [
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
1
|
|
],
|
|
"shininess": 96.078431,
|
|
"transparency": 1,
|
|
"transparent": false,
|
|
"doubleSided": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Green": {
|
|
"extensions": {
|
|
"KHR_materials_common": {
|
|
"technique": "PHONG",
|
|
"values": {
|
|
"ambient": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"diffuse": [
|
|
0,
|
|
0.64,
|
|
0,
|
|
1
|
|
],
|
|
"emission": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"specular": [
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
1
|
|
],
|
|
"shininess": 96.078431,
|
|
"transparency": 1,
|
|
"transparent": false,
|
|
"doubleSided": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Red": {
|
|
"extensions": {
|
|
"KHR_materials_common": {
|
|
"technique": "PHONG",
|
|
"values": {
|
|
"ambient": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"diffuse": [
|
|
0.64,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"emission": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"specular": [
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
1
|
|
],
|
|
"shininess": 96.078431,
|
|
"transparency": 1,
|
|
"transparent": false,
|
|
"doubleSided": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"meshes": {
|
|
"CubeBlue_CubeBlue_Blue": {
|
|
"name": "CubeBlue_CubeBlue_Blue",
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_0",
|
|
"NORMAL": "accessor_1",
|
|
"TEXCOORD_0": "accessor_2"
|
|
},
|
|
"indices": "accessor_3",
|
|
"material": "Blue",
|
|
"mode": 4
|
|
},
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_0",
|
|
"NORMAL": "accessor_1",
|
|
"TEXCOORD_0": "accessor_2"
|
|
},
|
|
"indices": "accessor_4",
|
|
"material": "Green",
|
|
"mode": 4
|
|
}
|
|
]
|
|
},
|
|
"CubeGreen_CubeGreen_Green": {
|
|
"name": "CubeGreen_CubeGreen_Green",
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_5",
|
|
"NORMAL": "accessor_6",
|
|
"TEXCOORD_0": "accessor_7"
|
|
},
|
|
"indices": "accessor_8",
|
|
"material": "Green",
|
|
"mode": 4
|
|
},
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_5",
|
|
"NORMAL": "accessor_6",
|
|
"TEXCOORD_0": "accessor_7"
|
|
},
|
|
"indices": "accessor_9",
|
|
"material": "Red",
|
|
"mode": 4
|
|
}
|
|
]
|
|
},
|
|
"CubeRed_CubeRed_Red": {
|
|
"name": "CubeRed_CubeRed_Red",
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_10",
|
|
"NORMAL": "accessor_11",
|
|
"TEXCOORD_0": "accessor_12"
|
|
},
|
|
"indices": "accessor_13",
|
|
"material": "Red",
|
|
"mode": 4
|
|
},
|
|
{
|
|
"attributes": {
|
|
"POSITION": "accessor_10",
|
|
"NORMAL": "accessor_11",
|
|
"TEXCOORD_0": "accessor_12"
|
|
},
|
|
"indices": "accessor_14",
|
|
"material": "Blue",
|
|
"mode": 4
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"nodes": {
|
|
"Cube": {
|
|
"name": "Cube",
|
|
"meshes": [
|
|
"CubeBlue_CubeBlue_Blue",
|
|
"CubeGreen_CubeGreen_Green",
|
|
"CubeRed_CubeRed_Red"
|
|
]
|
|
}
|
|
},
|
|
"samplers": {},
|
|
"scene": "scene",
|
|
"scenes": {
|
|
"scene": {
|
|
"nodes": [
|
|
"Cube"
|
|
]
|
|
}
|
|
},
|
|
"textures": {}
|
|
}
|