Newer
Older
EPQ-3D-renderer / cube.json
@cory cory on 30 Jan 2023 1 KB Fix #5
{
  "collections": {
  "name":"Main",
    "subCollections":
    [
      {
        "name":"collection1",
        "objects":[
          {
            "name":"Cube",
            "position":
            [0,0,0],
            "rotation":
            [0,0,0],
            "points":
            [[-30.0, -10.0, -10.0],
            [-30.0, -10.0, 10.0],
            [-30.0, 10.0, -10.0],
            [-30.0, 10.0, 10.0],
            [-10.0, -10.0, -10.0],
            [-10.0, -10.0, 10.0],
            [-10.0, 10.0, -10.0],
            [-10.0, 10.0, 10.0]
            ]
            ,"faceList":[
            [0, 2, 3, 1],
            [4, 5, 7, 6],
            [0, 1, 5, 4],
            [1, 3, 7, 5],
            [3, 2, 6, 7],
            [2, 0, 4, 6]],
            "textureList":
            ["red", "green", "blue", "cyan", "magenta", "yellow"],
            "uvPointsList":
            [
            [[0, 0], [100, 0], [100, 100], [0, 100]],
            [[0, 0], [100, 0], [100, 100], [0, 100]],
            [[0, 0], [100, 0], [100, 100], [0, 100]],
            [[0, 0], [100, 0], [100, 100], [0, 100]],
            [[0, 0], [100, 0], [100, 100], [0, 100]],
            [[0, 0], [100, 0], [100, 100], [0, 100]]
            ]
            }
          ]
        }
    ]
  },
  "textures":[
    {
      "name":"red",
      "type":"solid",
      "color":"FF0000"
    },{
      "name":"green",
      "type":"solid",
      "color":"00FF00"
    },{
      "name":"blue",
      "type":"solid",
      "color":"0000FF"
    },{
      "name":"cyan",
      "type":"solid",
      "color":"00FFFF"
    },{
      "name":"magenta",
      "type":"solid",
      "color":"FF00FF"
    },{
      "name":"yellow",
      "type":"solid",
      "color":"FFFF00"
    }
]
}