ModelHandle/test/testfiles/o3dv/hierarchy.o3dv

134 lines
2.3 KiB
Plaintext

{
"root" : {
"children" : [
{
"name" : "Cubes",
"transformation" : {
"translation" : [0.0, 0.0, 2.0]
},
"children" : [
{
"name" : "Cube 01",
"transformation" : {
"translation" : [0.0, 0.0, 0.0]
},
"meshes" : [0]
},
{
"name" : "Cube 02",
"transformation" : {
"translation" : [2.0, 0.0, 0.0]
},
"meshes" : [0]
},
{
"name" : "Cube 03",
"transformation" : {
"translation" : [2.0, 2.0, 0.0]
},
"meshes" : [0]
},
{
"name" : "Cube 04",
"transformation" : {
"translation" : [0.0, 2.0, 0.0]
},
"meshes" : [0]
}
]
},
{
"name" : "Spheres",
"transformation" : {
"translation" : [0.0, 0.0, 4.0]
},
"children" : [
{
"name" : "Spheres 01",
"transformation" : {
"translation" : [0.0, 0.0, 0.0]
},
"meshes" : [1]
},
{
"name" : "Spheres 02",
"transformation" : {
"translation" : [2.0, 0.0, 0.0]
},
"meshes" : [1]
},
{
"name" : "Spheres 03",
"transformation" : {
"translation" : [2.0, 2.0, 0.0]
},
"meshes" : [1]
},
{
"name" : "Spheres 04",
"transformation" : {
"translation" : [0.0, 2.0, 0.0]
},
"meshes" : [1]
}
]
},
{
"name" : "Cube and Sphere",
"transformation" : {
"translation" : [0.0, 0.0, 6.0]
},
"children" : [
{
"name" : "Cube 01",
"transformation" : {
"translation" : [0.0, 0.0, 0.0],
"scale" : [0.8, 0.8, 0.8]
},
"meshes" : [0]
},
{
"name" : "Sphere 01",
"transformation" : {
"translation" : [2.0, 0.0, 0.0],
"scale" : [0.8, 0.8, 0.8]
},
"meshes" : [1]
}
]
}
],
"meshes" : [0, 1]
},
"materials" : [
{
"name" : "Green",
"color" : [0, 200, 0]
},
{
"name" : "Blue",
"color" : [0, 0, 200]
}
],
"meshes" : [
{
"name" : "Cube",
"type" : "cuboid",
"material" : 0,
"parameters" : {
"size_x" : 1.0,
"size_y" : 1.0,
"size_z" : 1.0
}
},
{
"name" : "Sphere",
"type" : "sphere",
"material" : 1,
"parameters" : {
"radius" : 0.5
}
}
]
}