Strange effect with multiple views

classic Classic list List threaded Threaded
2 messages Options
dmitriano dmitriano
Reply | Threaded
Open this post in threaded view
|

Strange effect with multiple views

I wrote a sample application using OsgQtQuick (QML wrapper for OSG) that shows the Earth in two views and got some strange effect, see video: https://youtu.be/OEA8i-7ygjg. (if I rotate the Earth in a view so that the text label (annotation) becomes invisible, the Earth in other view becomes black). I wonder if anyone has an idea on what can cause this? The original OsgEarth sample osgearth_overlayviewer with the same nodes added over the map works fine, so probably there can be some initialization settings, for example, resulting in this behavior. I already asked this question on OsgQtQuick's github, but I am not sure that will be able to find the answer quickly. See the link to the source code of my samples: https://developernote.com/2017/08/multiple-views-with-osgqtquick/
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Strange effect with multiple views

Dmitri,
The only thing I can think of is to make sure your two views are sharing the same Graphics Context.
Glenn Waldron / Pelican Mapping