VulkanSceneGraph icon indicating copy to clipboard operation
VulkanSceneGraph copied to clipboard

mix the vsgHelloworld example and vsgImgui

Open Conan42 opened this issue 9 months ago • 7 comments

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

Conan42 avatar Apr 07 '25 17:04 Conan42