Skip to content

Instantly share code, notes, and snippets.

@fraguada
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fraguada/d86637f7987096b361ea to your computer and use it in GitHub Desktop.
Save fraguada/d86637f7987096b361ea to your computer and use it in GitHub Desktop.
JSON Scene Format 4.3
{
"metadata": {
"version": 4.3,
"type": "Object",
"generator": "MyApp"
},
"geometries": [
{
"uuid": "8ae9fe0f-b41e-4b1e-8bda-397f75cbe68a",
"type": "Geometry",
"data": {
"vertices": [
20.847,
0.0,
22.78318,
22.72643,
0.0,
10.91691,
13.62045,
7.660847,
15.55664,
22.72643,
0.0,
10.91691,
12.02171,
0.0,
5.462577,
13.62045,
7.660847,
15.55664,
12.02171,
0.0,
5.462577,
3.526391,
0.0,
13.95789,
13.62045,
7.660847,
15.55664,
3.526391,
0.0,
13.95789,
8.98072,
0.0,
24.66262,
13.62045,
7.660847,
15.55664,
8.98072,
0.0,
24.66262,
20.847,
0.0,
22.78318,
13.62045,
7.660847,
15.55664,
20.847,
0.0,
22.78318,
22.72643,
0.0,
10.91691,
12.02171,
0.0,
5.462577,
3.526391,
0.0,
13.95789,
8.98072,
0.0,
24.66262
],
"normals": [
0.67129,
0.733529,
0.106322,
0.67129,
0.733529,
0.106322,
0.67129,
0.733529,
0.106322,
0.308558,
0.733529,
-0.60558,
0.308558,
0.733529,
-0.60558,
0.308558,
0.733529,
-0.60558,
-0.480591,
0.733529,
-0.480591,
-0.480591,
0.733529,
-0.480591,
-0.480591,
0.733529,
-0.480591,
-0.60558,
0.733529,
0.308558,
-0.60558,
0.733529,
0.308558,
-0.60558,
0.733529,
0.308558,
0.106322,
0.733529,
0.671291,
0.106322,
0.733529,
0.671291,
0.106322,
0.733529,
0.671291,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0
],
"colors": [],
"faces": [
32,
2,
0,
1,
2,
0,
1,
32,
5,
3,
4,
5,
3,
4,
32,
8,
6,
7,
8,
6,
7,
32,
11,
9,
10,
11,
9,
10,
32,
14,
12,
13,
14,
12,
13,
32,
19,
18,
17,
19,
18,
17,
32,
16,
15,
19,
16,
15,
19,
32,
17,
16,
19,
17,
16,
19
]
}
},
{
"uuid": "22a67277-4202-4591-bd34-ff68f0c4a110",
"type": "Geometry",
"data": {
"vertices": [
0.0,
16.0,
-14.0,
4.472136,
13.23607,
-14.0,
1.381966,
13.23607,
-18.25325,
-3.618034,
13.23607,
-16.62865,
-3.618034,
13.23607,
-11.37134,
1.381966,
13.23607,
-9.746746,
3.618034,
8.763932,
-16.62865,
-1.381966,
8.763932,
-18.25325,
-4.472136,
8.763932,
-14.0,
-1.381966,
8.763932,
-9.746746,
3.618034,
8.763932,
-11.37134,
0.0,
6.0,
-14.0
],
"normals": [
0.0,
1.0,
0.0,
0.894427,
0.447214,
0.0,
0.276393,
0.447214,
-0.850651,
-0.723607,
0.447214,
-0.525731,
-0.723607,
0.447214,
0.525731,
0.276393,
0.447214,
0.850651,
0.723607,
-0.447214,
-0.525731,
-0.276393,
-0.447214,
-0.850651,
-0.894427,
-0.447214,
0.0,
-0.276393,
-0.447214,
0.850651,
0.723607,
-0.447214,
0.525731,
0.0,
-1.0,
0.0
],
"colors": [
8388352,
25600,
2263842,
8190976,
10145074,
11403055,
3329330,
10025880,
8388352,
25600,
2263842,
8190976
],
"faces": [
160,
0,
1,
2,
0,
1,
2,
0,
1,
2,
160,
0,
2,
3,
0,
2,
3,
0,
2,
3,
160,
0,
3,
4,
0,
3,
4,
0,
3,
4,
160,
0,
4,
5,
0,
4,
5,
0,
4,
5,
160,
0,
5,
1,
0,
5,
1,
0,
5,
1,
160,
1,
5,
10,
1,
5,
10,
1,
5,
10,
160,
1,
6,
2,
1,
6,
2,
1,
6,
2,
160,
1,
10,
6,
1,
10,
6,
1,
10,
6,
160,
2,
6,
7,
2,
6,
7,
2,
6,
7,
160,
2,
7,
3,
2,
7,
3,
2,
7,
3,
160,
3,
7,
8,
3,
7,
8,
3,
7,
8,
160,
3,
8,
4,
3,
8,
4,
3,
8,
4,
160,
4,
8,
9,
4,
8,
9,
4,
8,
9,
160,
4,
9,
5,
4,
9,
5,
4,
9,
5,
160,
5,
9,
10,
5,
9,
10,
5,
9,
10,
160,
6,
10,
11,
6,
10,
11,
6,
10,
11,
160,
6,
11,
7,
6,
11,
7,
6,
11,
7,
160,
7,
11,
8,
7,
11,
8,
7,
11,
8,
160,
8,
11,
9,
8,
11,
9,
8,
11,
9,
160,
9,
11,
10,
9,
11,
10,
9,
11,
10
]
}
},
{
"uuid": "cb0db7d0-5037-4ea6-a461-7d489b84272f",
"type": "Geometry",
"data": {
"vertices": [
18.0,
0.0,
-19.0,
18.0,
17.0,
-19.0,
25.0,
0.0,
-19.0,
25.0,
17.0,
-19.0,
25.0,
0.0,
-19.0,
25.0,
17.0,
-19.0,
25.0,
0.0,
-26.0,
25.0,
17.0,
-26.0,
25.0,
0.0,
-26.0,
25.0,
17.0,
-26.0,
18.0,
0.0,
-26.0,
18.0,
17.0,
-26.0,
18.0,
0.0,
-26.0,
18.0,
17.0,
-26.0,
18.0,
0.0,
-19.0,
18.0,
17.0,
-19.0,
18.0,
0.0,
-19.0,
25.0,
0.0,
-19.0,
25.0,
0.0,
-26.0,
18.0,
0.0,
-26.0,
18.0,
17.0,
-19.0,
25.0,
17.0,
-19.0,
25.0,
17.0,
-26.0,
18.0,
17.0,
-26.0
],
"normals": [
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0
],
"colors": [],
"faces": [
33,
0,
2,
3,
1,
0,
2,
3,
1,
33,
4,
6,
7,
5,
4,
6,
7,
5,
33,
8,
10,
11,
9,
8,
10,
11,
9,
33,
12,
14,
15,
13,
12,
14,
15,
13,
32,
17,
16,
19,
17,
16,
19,
32,
19,
18,
17,
19,
18,
17,
32,
21,
23,
20,
21,
23,
20,
32,
23,
21,
22,
23,
21,
22
]
}
},
{
"uuid": "96cf59d7-e820-4a48-b7e5-d2358301ab1a",
"type": "Geometry",
"data": {
"vertices": [
-22.0,
0.0,
27.0,
-22.0,
0.0,
-29.0,
34.0,
0.0,
27.0,
34.0,
0.0,
-29.0
],
"normals": [
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0
],
"colors": [],
"faces": [
33,
3,
1,
0,
2,
3,
1,
0,
2
]
}
}
],
"images": [],
"textures": [],
"materials": [
{
"uuid": "6be22aec-5d02-47a5-98d7-22c4fbc53849",
"type": "MeshLambertMaterial",
"name": "Red Shiny",
"color": 16711680,
"ambient": 1791,
"emissive": 5526612,
"opacity": 0.0,
"transparent": false,
"vertexColors": 0,
"map": null
},
{
"uuid": "523db2b5-9f10-4a0a-a664-903df839223d",
"type": "MeshLambertMaterial",
"name": "",
"color": 16777215,
"ambient": 0,
"emissive": 0,
"opacity": 0.0,
"transparent": false,
"vertexColors": 2,
"map": null
},
{
"uuid": "2146738f-54ec-4984-8789-aa6f633545e3",
"type": "MeshLambertMaterial",
"name": "Red Shiny",
"color": 16711680,
"ambient": 1791,
"emissive": 5526612,
"opacity": 0.0,
"transparent": false,
"vertexColors": 0,
"map": null
},
{
"uuid": "8ca48779-4f7f-43db-83a0-aa8c4cdc6ce4",
"type": "MeshLambertMaterial",
"name": "White Shiny",
"color": 16777215,
"ambient": 0,
"emissive": 0,
"opacity": 0.0,
"transparent": false,
"vertexColors": 0,
"map": null
}
],
"object": {
"uuid": "a5420f9e-24f4-4353-84d8-4f14de027a91",
"type": "Scene",
"name": "Scene",
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"children": [
{
"uuid": "94d12a15-2111-4ae0-bb12-2dcc21c0727c",
"type": "Mesh",
"name": "",
"geometry": "8ae9fe0f-b41e-4b1e-8bda-397f75cbe68a",
"material": "6be22aec-5d02-47a5-98d7-22c4fbc53849",
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"uuid": "c778eb0f-659b-48b8-af6a-8c64a0808898",
"type": "Mesh",
"name": "Iso",
"geometry": "22a67277-4202-4591-bd34-ff68f0c4a110",
"material": "523db2b5-9f10-4a0a-a664-903df839223d",
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"uuid": "b2faed29-cb4b-4137-82da-dd7ce290cec9",
"type": "Mesh",
"name": "Cube",
"geometry": "cb0db7d0-5037-4ea6-a461-7d489b84272f",
"material": "2146738f-54ec-4984-8789-aa6f633545e3",
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"uuid": "8ae1cb5f-82bf-473a-b6de-852d30fac957",
"type": "Mesh",
"name": "Ground",
"geometry": "96cf59d7-e820-4a48-b7e5-d2358301ab1a",
"material": "8ca48779-4f7f-43db-83a0-aa8c4cdc6ce4",
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"uuid": "dafb8789-80b7-44d7-83b6-fd2c0c10a7a2",
"name": "Light 03",
"type": "PointLight",
"color": 16777215,
"intensity": 1.0,
"distance": 100.0,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
6.0,
19.952825804342186,
26.999999999999538,
1.0
]
},
{
"uuid": "296810f2-3949-4931-90bd-bb74a0d5dff0",
"name": "Light 04",
"type": "SpotLight",
"color": 16777215,
"intensity": 1.0,
"distance": 126.82588652642239,
"angle": 0.097403175759784938,
"exponent": 292.12415146459227,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
-124.40885349621146,
64.9448224372267,
-77.552829979134742,
1.0
]
},
{
"uuid": "9c4015c7-e01f-4d32-bdf3-18150236bc1a",
"name": "Light 01",
"type": "DirectionalLight",
"color": 16777215,
"intensity": 1.0,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
46.562018967920807,
12.069888698445032,
-15.874768876708572,
1.0
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment