xelatihy / yocto-gl

Yocto/GL: Tiny C++ Libraries for Data-Driven Physically-based Graphics
https://xelatihy.github.io/yocto-gl
2.83k stars 207 forks source link

save_gltf_scene() is not working #1308

Closed Hurleyworks closed 2 years ago

Hurleyworks commented 3 years ago

save_gltf_scene() doesn't seem to be working in the latest version on github

line 4898 of yocto_sceneio.cpp triggers an error error: [json.exception.type_error.311] cannot use emplace_back() with number

Easy way to test is to just load a .gltf file and try to save it after loading in run_view()

  auto scene = load_scene(params.scene);
  print_info("load scene: {}", elapsed_formatted(timer));

  const std::string out("C:/Users/micro/Desktop/yocto/test.gltf");
  save_scene(out, scene);
xelatihy commented 3 years ago

We'll look into this ASAP.

xelatihy commented 2 years ago

Move to use external library in main branch. Still WIP, but should not crash. I am closing this for now.