Scene Editor

By Chris Tralie

{ "name":"testscene", "materials":{ "green":{ "ka":[0.05, 0.05, 0.05], "kd":[0.0, 1.0, 0.0], "ks":[0.8, 0.0, 0.0] }, "red":{ "kd":[1.0, 0.0, 0.0] } }, "lights":[ { "pos":[0, 2, 0], "color":[1, 1, 1] }, { "pos":[0, 2, -3], "color":[1, 1, 1] } ], "cameras":[ { "pos": [0.00, 1.50, 5.00], "rot": [0.00, 0.00, 0.00, 1.00], "fovy": 1.0 } ], "children":[ { "transform":[1, 0, 0, 0, 0, 1, 0, 0.5, 0, 0, 1, 0, 0, 0, 0, 1], "shapes":[ { "type":"box", "length":1, "width":1, "height":1, "center":[0, 0, 0], "material":"red" } ] }, { "transform":[20, 0, 0, 0, 0, 20, 0, 0, 0, 0, 20, 0, 0, 0, 0, 1], "shapes":[ { "type":"mesh", "filename":"../meshes/square.off", "material":"green" } ] }, { "transform":[2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], "shapes":[ { "type":"sphere", "radius":0.5, "center":[0, 0, -10], "material":"green" } ] } ] }

Controls

  • Mouse: Click and drag to look around
  • W: Forward
  • S: Backwards
  • A: Left
  • D: Right
  • E: Up
  • C: Down