Hi Alvaro,

I just did a quick test under Windows 7, with OSG 3.0.1 and Qt 4.8.2.
Two views (created from GraphicsWindowQt) of a CompositeViewer in two
windows can render the same node (lz.osg for my case) smoothly. Could
you please provide more information about your implementation?

If you are going to render textures of view 1 directly in view 2,
maybe you have to enable OpenGL's shared context feature. You may
specify camera 1's graphics context to Traits::sharedContext in such
case.

Wang Rui


2012/10/4 Alvaro Segura <[email protected]>:
> Hi,
>
> We are having trouble using a CompositeViewer with 2 views in 2 windows, 
> showing the same scene (same Node*).
>
> The first view (in addView order) is rendered correctly, but the second view 
> is badly rendered with some missing or garbled geometries.
>
> If only one view is added, its rendering is fine. If instead of 2 windows, we 
> use only one window with two contiguous viewports, rendering is fine.
>
> Each view has its own Camera and GraphicsContext. We use GraphicsWindowQt 
> with or without the shareWidget argument. Using setUpViewInWindow() instead 
> does the same.
>
> Seems that the first render is misusing the GL context or something so that 
> the other has trouble. Threading is set to SingleThreaded to avoid potential 
> sharing problems (but the TaskManager is showing many running threads (?)).
>
> The problematic models are FBX exported from 3ds Max, BTW.
>
> Is there any setting that has to be set in OSG/CompositeViewer to tell it 
> that the scene is shared? Does anyone have an idea what can be wrong in such 
> a setup?
>
> Thank you!
>
> Alvaro
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=50406#50406
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to