working scene serialization (saving)
if you hit ctrl + s (or hit the gui button) then it creates a .slate file, containing all the data of every object in the scene
this .slate file is human readable (and editable), written in a format very similar to toml
heres an example .slate file:
[scene]
name = "SlateScene"
version = "1.0"
[[entity]]
index = 0
name = ""
mesh_path = "models/test_obj.obj"
position = [-0.310723, 0.927019, 1.47743]
rotation = [0, -0, 0]
scale = [1.9916, 2.28848, 3.38984]
[entity.material]
albedo = [0.183333, 1, 0, 1]
roughness = 0.5
metallic = 1
ior = 1.5
transmission = 0
[[entity]]
index = 1
name = ""
mesh_path = "models/emerald_monkey.obj"
position = [1.29034, 0, -5.64025e-08]
rotation = [8.61461, 6.18611, 2.71029]
scale = [3.07852, 3.38535, 3.86504]
[entity.material]
albedo = [0.050432, 0.800023, 0.302281, 1]
roughness = 0
metallic = 0
ior = 2.418
transmission = 1
next, ill probably start working on physics 
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.