Replies: 2 comments 2 replies
-
You need to run compile traversal on newly created scene graphs so the Vulkan objects are created and any data associated with them is transferred to the GPU memory. If you create a subgraph (including text) prior to the viewer.compile() then it'll be automatically compiled for you, but if you create it after the viewer.compile() you'll need to manually compile it using the vsg::CompileManager, The vsgdynamicload example illustrates how this is done. |
Beta Was this translation helpful? Give feedback.
-
It is working now. a new subgraph Compiled and added. But added to a scene using addChild() directly. It works fine. But I see In the example you are using ref_viewer->addUpdateOperation() to queue and updateViewer(*ref_viewer, compileResult); prior the addChild, is this necessary ? |
Beta Was this translation helpful? Give feedback.
-
I succesfully load a font and write text using vsg::Text::create() and add to a scene, but when i try to add text dynamically there is a crash. Any Idea ?
Beta Was this translation helpful? Give feedback.
All reactions