Skip to content

Instantly share code, notes, and snippets.

@nickjanssen
Created November 22, 2016 01:13
Show Gist options
  • Save nickjanssen/14c8c1ca111e4951443075ca22281ff9 to your computer and use it in GitHub Desktop.
Save nickjanssen/14c8c1ca111e4951443075ca22281ff9 to your computer and use it in GitHub Desktop.
Sample JSON export
{
"metadata": {
"version": "4.3",
"type": "Object",
"generator": "UnityThreeExporter"
},
"geometries": [
{
"uuid": "29217a08-464f-4839-80c7-b7ce9f03a234",
"type": "Geometry",
"data": {
"vertices": [0.5,-0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,-0.5,-0.5,0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,0.5,-0.5,-0.5,-0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,0.5,-0.5,0.5,0.5],
"normals": [1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,-1,0,0,-1,0,0,0,1,0,0,1,0,-1,0,0,-1,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1],
"uvs": [[0,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,0,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1],[0.5561291,0.08169054,0.6289063,0.08169054,0.5561291,0.1544677,0.6289063,0.1544677,0.4653553,0.08169051,0.3925781,0.08169051,0.4742686,0.1544677,0.5470458,0.1544677,0.4653553,0.1544677,0.3925781,0.1544677,0.4742686,0.08169051,0.5470458,0.08169051,0.4742686,0,0.5470458,0.07277717,0.5470458,0,0.4742686,0.07277717,0.5559592,0.07277717,0.6287363,0,0.5559592,0,0.6287363,0.07277717,0.4653553,0,0.3925781,0.07277717,0.4653553,0.07277717,0.3925781,0]],
"faces": [8,1,3,0,1,3,0,1,3,0,8,3,2,0,3,2,0,3,2,0,8,9,5,8,9,5,8,9,5,8,8,5,4,8,5,4,8,5,4,8,8,11,7,10,11,7,10,11,7,10,8,7,6,10,7,6,10,7,6,10,8,14,13,12,14,13,12,14,13,12,8,13,15,12,13,15,12,13,15,12,8,18,17,16,18,17,16,18,17,16,8,17,19,16,17,19,16,17,19,16,8,22,21,20,22,21,20,22,21,20,8,21,23,20,21,23,20,21,23,20]
}
},
{
"uuid": "ebb1f667-3d0c-418a-b637-8c231f95c824",
"type": "Geometry",
"data": {
"vertices": [0.5,-0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,-0.5,0.5,0.5,-0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,-0.5,-0.5,0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,0.5,-0.5,-0.5,-0.5,-0.5,0.5,0.5,-0.5,-0.5,-0.5,0.5,0.5,0.5,0.5,0.5,-0.5,0.5,-0.5,0.5,0.5],
"normals": [1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,-1,0,0,-1,0,0,0,1,0,0,1,0,-1,0,0,-1,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1],
"uvs": [[0,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,0,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1],[0.4743536,0.1972661,0.5107422,0.1972661,0.4743536,0.2336546,0.5107422,0.2336546,0.4289667,0.1972661,0.3925781,0.1972661,0.4334234,0.2336546,0.4698119,0.2336546,0.4289667,0.2336546,0.3925781,0.2336546,0.4334234,0.1972661,0.4698119,0.1972661,0.4334234,0.1564208,0.4698119,0.1928094,0.4698119,0.1564208,0.4334234,0.1928094,0.4742686,0.1928094,0.5106572,0.1564208,0.4742686,0.1564208,0.5106572,0.1928094,0.4289667,0.1564208,0.3925781,0.1928094,0.4289667,0.1928094,0.3925781,0.1564208]],
"faces": [8,1,3,0,1,3,0,1,3,0,8,3,2,0,3,2,0,3,2,0,8,9,5,8,9,5,8,9,5,8,8,5,4,8,5,4,8,5,4,8,8,11,7,10,11,7,10,11,7,10,8,7,6,10,7,6,10,7,6,10,8,14,13,12,14,13,12,14,13,12,8,13,15,12,13,15,12,13,15,12,8,18,17,16,18,17,16,18,17,16,8,17,19,16,17,19,16,17,19,16,8,22,21,20,22,21,20,22,21,20,8,21,23,20,21,23,20,21,23,20]
}
},
{
"uuid": "5a7686f9-aaf2-4d66-8d7a-4b53bc359a22",
"type": "Geometry",
"data": {
"vertices": [0,-0.5,0.5,0,0.5,-0.5,0,-0.5,-0.5,0,0.5,0.5],
"normals": [1,0,0,1,0,0,1,0,0,1,0,0],
"uvs": [[2.34395E-08,0,0.390625,0.390625,0.390625,0,0,0.390625],[2.34395E-08,0,0.390625,0.390625,0.390625,0,0,0.390625]],
"faces": [8,2,1,0,2,1,0,2,1,0,8,0,1,3,0,1,3,0,1,3]
}
}
],
"materials": [
{
"uuid": "2b9fa8ff-fbd2-4527-a2e8-027cf295ffec",
"name": "Cube",
"type": "MeshPhongMaterial",
"color": "0xFFF4EC",
"emissive": "0x000000",
"opacity": 1,
"lightMap": "45efe682-5d4a-4fec-b581-4257952e47dc_MainTex",
"transparent": false,
"wireframe": false
},
{
"uuid": "b5b6da12-a4a8-4ab6-8380-1c3250eb136e",
"name": "Cube",
"type": "MeshPhongMaterial",
"color": "0xFFF4EC",
"emissive": "0x000000",
"opacity": 1,
"lightMap": "45efe682-5d4a-4fec-b581-4257952e47dc_MainTex",
"transparent": false,
"wireframe": false
},
{
"uuid": "9b78cb15-ddfc-4891-b8d1-b44c131d7a22",
"name": "Floor",
"type": "MeshPhongMaterial",
"color": "0xECFEFF",
"emissive": "0x000000",
"opacity": 1,
"lightMap": "45efe682-5d4a-4fec-b581-4257952e47dc_MainTex",
"transparent": false,
"wireframe": false
}
],
"object": {
"uuid": "ed9b6fa2-6fc6-469e-bd39-960be3fd4e3c",
"type": "Object3D",
"name": "World",
"matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
"children": [
{
"uuid": "a7d7622d-f225-4083-98f3-b8c5d5094a78",
"type": "AmbientLight",
"color": "#000000",
"name": "RenderSettingsAmbientLight"
},
{
"uuid": "af9a4065-db71-46e3-8f47-b927f5c2ba64",
"type": "Object3D",
"name": "SimpleScene",
"matrix": [0,0,1,0,0,1,0,0,-1,0,0,0,-0.5761,-0.4599,-0.1991,1]
},
{
"uuid": "4c3c18ea-2109-4927-a4a6-662380795b5d",
"type": "Object3D",
"name": "Big Cube",
"children": [
{
"uuid": "09143d2b-4c76-4c07-b9e3-8834a7824c70",
"name": "Big Cube_Collider",
"type": "Object3D",
"userData": {
"type": "BoxCollider",
"center": [0,0,0],
"size": [1,1,1]
}
},
{
"uuid": "073127c7-41de-495f-8a08-2b6e95329f46",
"type": "Mesh",
"name": "Big Cube_SubMesh 0",
"geometry": "29217a08-464f-4839-80c7-b7ce9f03a234",
"material": "2b9fa8ff-fbd2-4527-a2e8-027cf295ffec",
"userdata": {}
}
],
"matrix": [0,0,2,0,0,2,0,0,-2,0,0,0,-1.86,1,0.48,1]
},
{
"uuid": "f6928769-5688-4679-a3b7-b8b49e8fb632",
"type": "Object3D",
"name": "Small Cube",
"children": [
{
"uuid": "e519dd3d-0381-4308-925b-c45b31c5514d",
"name": "Small Cube_Collider",
"type": "Object3D",
"userData": {
"type": "BoxCollider",
"center": [0,0,0],
"size": [1,1,1]
}
},
{
"uuid": "ed74d924-ea55-4cc5-80e0-0bdc1c757274",
"type": "Mesh",
"name": "Small Cube_SubMesh 0",
"geometry": "ebb1f667-3d0c-418a-b637-8c231f95c824",
"material": "b5b6da12-a4a8-4ab6-8380-1c3250eb136e",
"userdata": {}
}
],
"matrix": [0,0,1,0,0,1,0,0,-1,0,0,0,0.73,0.5,-1.82,1]
},
{
"uuid": "3fef50fa-4f3a-4e6b-b5f0-764e5d9ead9a",
"type": "Object3D",
"name": "Ground",
"children": [
{
"uuid": "d1841052-6a3f-4398-8833-ffca55f40bb1",
"type": "Mesh",
"name": "Ground_SubMesh 0",
"geometry": "5a7686f9-aaf2-4d66-8d7a-4b53bc359a22",
"material": "9b78cb15-ddfc-4891-b8d1-b44c131d7a22",
"userdata": {}
}
],
"matrix": [0,1,0,0,0,0,-10,0,-10,0,0,0,0,0,0,1]
},
{
"uuid": "3b93809a-3f5c-417d-9032-70cf7cf86ada",
"type": "PerspectiveCamera",
"name": "Main Camera",
"fov": "60",
"aspect": "2.010331",
"near": "0.3",
"far": "1000",
"matrix": [0,0,1,0,0,1,0,0,-1,0,0,0,0,1,-10,1]
},
{
"uuid": "faaaa4f7-a7a9-40be-a29d-5228a20f5e25",
"type": "Object3D",
"name": "Main Camera",
"matrix": [0,0,1,0,0,1,0,0,-1,0,0,0,0,1,-10,1]
},
{
"uuid": "474df39b-8ee5-44ea-9ab7-a810d148f93f",
"type": "Object3D",
"name": "Point light",
"matrix": [0.5646,-0.6611,-0.4942,0,0.4974,0.7503,-0.4354,0,0.6587,0,0.7524,0,-3.888,3.79,2.384,1]
}
]
},
"images": [
{
"url": "Lightmap-0_comp_light.png",
"uuid": "7dfbe2a9-b80b-4c5a-bd12-1610cd914f9a",
"name": "Lightmap-0_comp_light.png",
"originalUrl": "Lightmap-0_comp_light.png"
},
{
"url": "Lightmap-0_comp_dir.png",
"uuid": "657e2181-92ca-4692-a6e4-5e1feecb4422",
"name": "Lightmap-0_comp_dir.png",
"originalUrl": "Lightmap-0_comp_dir.png"
}
],
"textures": [
{
"uuid": "45efe682-5d4a-4fec-b581-4257952e47dc_MainTex",
"offset": [0, 0],
"repeat": [1, 1],
"magFilter": 1006,
"minFilter": 1008,
"wrap": [1001,1001],
"image": "7dfbe2a9-b80b-4c5a-bd12-1610cd914f9a",
"name": "Lightmap-0_comp_light.png",
"anisotropy": 16
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment