ModelHandle/test/testfiles/o3dv/translateandrotate.o3dv

51 lines
740 B
Plaintext

{
"root" : 0,
"materials" : [
{
"name" : "Green",
"color" : [0, 200, 0]
}
],
"nodes" : [
{
"children" : [1, 2, 4]
},
{
"name" : "Translated",
"transformation" : {
"translation" : [2.0, 0.0, 0.0]
},
"children" : [4]
},
{
"name" : "Rotated",
"transformation" : {
"rotation" : [0.0, 0.0, 0.7071067811865475, 0.7071067811865476]
},
"children" : [3]
},
{
"name" : "Translated and Rotated",
"transformation" : {
"translation" : [2.0, 0.0, 0.0]
},
"children" : [4]
},
{
"mesh" : 0
}
],
"meshes" : [
{
"name" : "Cube",
"type" : "cuboid",
"material" : 0,
"parameters" : {
"size_x" : 1.0,
"size_y" : 1.0,
"size_z" : 1.0
}
}
]
}