Dynamic loading of a scene not working properly #1634
-
|
Hello, In more complex tests, in the "pre-loaded" case, I am able to extend the scene graph with various nodes (texts, vsg::Builder scenes). But if I don't pre-load, I get crashes such as: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
What OS version/VSG version/Vulkan version and hardware are you using? What happens when you pass the same models that cause issues in your application to vsgdynamicload via the command line? |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I found the culprit(s). The result of the compilation: As I said, I'm fairly new to VSG. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.

Ok, I found the culprit(s).
The result of the compilation:
auto result = _app->_viewer->compileManager->compile(_app->_loaded_scene);must be passed to a call to
vsg::updateViewer(*(_app->_viewer), result);before attaching the new subgraph in an update operation executed the main thread.
As I said, I'm fairly new to VSG. Sorry for the noise.