How to update scene graph at runtime? #805
Closed
YangShen398
started this conversation in
General
Replies: 1 comment 5 replies
-
Hi Cam, The use of vsg::Operation is only really needed for multi-threaded usage, for the case of responding to UI this can normally be done single threaded and as update of the update phase of the scene graph. The vsgintersection example illustrates this type of usage. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am still getting up to speed with vsg api. I have a general question about how to update scene graph at runtime.
Here is a scenario.
Let's say I am using ImGui for UI. I created a button which will create a sphere using vsg::builder and add it to the scene. This needs to happen at runtime instead of initialization of the application, meaning the code gets executed at the current frame and the updates will be reflected on the next frame.
Thanks,
Cam
Beta Was this translation helpful? Give feedback.
All reactions