Skip to content

Broken default light for multi-window setup #1535

Answered by robertosfield
PowerOfNames asked this question in Q&A
Discussion options

You must be logged in to vote

The light(s) need to be each vsg::View, if each vsg::View shares the same subgraph that contains the light(s) then both View's should be lit.

Extra windows shouldn't in principle change things, but if the window is on a different graphics device then you may need multiple Vulkan logical vkDevices.

There are multiple examples that illustrate multiple views, windows, creating views and windows dynamically:

vsgwindows.cpp
vsgoverlay.cpp
vsgmultiviews.cpp
vsgcameras.cpp
vsgstateswitch.cpp
vsganaglyphicstereo.cpp

If you can't spot the error yourself then you might be best to just modify one of these examples to illustrate the problem you are seeing and then share those modifications. I suggest…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PowerOfNames
Comment options

Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants