Skip to content

Instantly share code, notes, and snippets.

@KarimIO
Last active February 24, 2018 10:38
Show Gist options
  • Save KarimIO/2dc004cac2bf0dd56e7c4f76975eb856 to your computer and use it in GitHub Desktop.
Save KarimIO/2dc004cac2bf0dd56e7c4f76975eb856 to your computer and use it in GitHub Desktop.
Sponza Scene for Grindstone
{
"name": "Sponza Test",
"numentities": 7,
"skymaterial": "materials/skymain.gmat",
"entities": [
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 20.0, 0.0]
}, {
"componentType": "COMPONENT_CAMERA"
}, {
"componentType": "COMPONENT_CONTROLLER"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 18.0, 1.0],
"scale": [0.01, 0.01, 0.01]
}, {
"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_GEOMETRY_STATIC",
"path": "models/sphere.gmf"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 20.0, 0.0],
"scale": [0.01, 0.01, 0.01]
}, {
"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_GEOMETRY_STATIC",
"path": "models/sphere.gmf"
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"scale": [0.01, 0.01, 0.01]
}, {
"componentType": "COMPONENT_GEOMETRY_STATIC",
"path": "models/sponza.gmf"
}, {
"componentType": "COMPONENT_PHYSICS",
"shapePlane": [0.0, 1.0, 0.0, 0.0],
"mass": 0.0,
"create": 0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"angles": [90.0, 0.0, 0.0]
}, {
"componentType": "COMPONENT_LIGHT_DIRECTIONAL",
"castshadow": true,
"color": [1.0,0.9,0.8],
"brightness": 8.0,
"sunradius": 32.0
}]
},
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [9.5,1.0,4.0],
"angles": [0.0, 200.0, 0.0]
}, {
"componentType": "COMPONENT_LIGHT_SPOT",
"castshadow": true,
"color": [1.0,0.9,0.8],
"brightness": 32.0,
"lightradius": 12.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