VulkanSceneGraph
VulkanSceneGraph copied to clipboard
mix the vsgHelloworld example and vsgImgui
Hello Robert,
I'm trying to mix the vsgHelloworld example and vsgImgui, but I'm stuck on the commandGraph:
auto commandGraph = createCommandGraphForView(window, camera, sceneGraph);
// auto renderGraph = vsg::RenderGraph::create(window); // commandGraph->addChild(renderGraph);
// Create the ImGui node and add it to the renderGraph
// auto params = Params::create(); // auto renderImGui = vsgImGui::RenderImGui::create(window, MyGui::create(params, options)); // renderGraph->addChild(renderImGui);
viewer->assignRecordAndSubmitTaskAndPresentation({commandGraph});
viewer->compile();
There I can clearly see the openstreet map.
auto commandGraph = createCommandGraphForView(window, camera, sceneGraph);
auto renderGraph = vsg::RenderGraph::create(window);
commandGraph->addChild(renderGraph);
// Create the ImGui node and add it to the renderGraph
auto params = Params::create();
auto renderImGui = vsgImGui::RenderImGui::create(window, MyGui::create(params, options));
renderGraph->addChild(renderImGui);
viewer->assignRecordAndSubmitTaskAndPresentation({commandGraph});
viewer->compile();
Now I only see the Imgui window.
Can you help me, please?
Michel Guenin