Skip to content

Instantly share code, notes, and snippets.

@KarimIO
Created March 27, 2017 21:29
Show Gist options
  • Save KarimIO/db80f4e96303f8770a27881cb5175388 to your computer and use it in GitHub Desktop.
Save KarimIO/db80f4e96303f8770a27881cb5175388 to your computer and use it in GitHub Desktop.
Sample Level
{
"name": "Sponza Test",
"numentities": 7,
"entities": [
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 2.0, 0.0]
}, {
"componentType": "COMPONENT_CAMERA"
}, {
"componentType": "COMPONENT_CONTROLLER"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 18.0, 1.0]
}, {
"componentType": "COMPONENT_PHYSICS",
"shapeSphere": 1.0,
"mass": 1.0,
"inertia": [0.0,0.0,0.0],
"create": 0,
"restitution": 0.8,
"damping": [0.2, 0.1],
"friction": 0.8
}, {
"componentType": "COMPONENT_RENDER",
"path": "sphere.obj"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 20.0, 0.0]
}, {
"componentType": "COMPONENT_PHYSICS",
"shapeSphere": 1.0,
"mass": 1.0,
"inertia": [0.0,0.0,0.0],
"create": 0,
"restitution": 0.8,
"damping": [0.2, 0.1],
"friction": 0.8
}, {
"componentType": "COMPONENT_RENDER",
"path": "sphere.obj"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"scale": [0.01, 0.01, 0.01]
}, {
"componentType": "COMPONENT_PHYSICS",
"shapePlane": [0.0, 1.0, 0.0, 0.0],
"mass": 0.0,
"create": 0
}, {
"componentType": "COMPONENT_RENDER",
"path": "crytek-sponza/sponza.obj"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM"
}, {
"componentType": "COMPONENT_LIGHT_DIRECTIONAL",
"castshadow": true,
"color": [1.0,1.0,1.0],
"brightness": 200.0,
"sunradius": 32.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [-10.0,1.5,-4.5]
}, {
"componentType": "COMPONENT_LIGHT_POINT",
"castshadow": true,
"color": [0.2,1.0,0.3],
"brightness": 8.0,
"lightradius": 16.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [-10.0,1.5,4.5]
}, {
"componentType": "COMPONENT_LIGHT_POINT",
"castshadow": false,
"color": [0.2,0.1,1.0],
"brightness": 8.0,
"lightradius": 16.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0,1.5,0.0]
}, {
"componentType": "COMPONENT_LIGHT_POINT",
"castshadow": false,
"color": [1.0,0.9,0.8],
"brightness": 12.0,
"lightradius": 16.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [10.0,1.5,-4.5]
}, {
"componentType": "COMPONENT_LIGHT_POINT",
"castshadow": false,
"color": [1.0,1.0,1.0],
"brightness": 8.0,
"lightradius": 16.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [9.0,1.5,3.5],
"angles": [0.0, 225.0, 0.0]
}, {
"componentType": "COMPONENT_LIGHT_SPOT",
"castshadow": true,
"color": [1.0,0.9,0.8],
"brightness": 16.0,
"lightradius": 8.0,
"innerangle": 20.0,
"outerangle": 45.0
}]
}
],
"numcubemaps": 9,
"cubemaps":[[-10.0, 1.5, -4.5],
[-10.0, 1.5, 0.0],
[-10.0, 1.5, 4.5],
[ 0.0, 1.5, -4.5],
[ 0.0, 1.5, 0.0],
[ 0.0, 1.5, 4.5],
[ 10.0, 1.5, -4.5],
[ 10.0, 1.5, 0.0],
[ 10.0, 1.5, 4.5]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment