Re: [osg-users] CompositeViewer views rendering order

2008-12-03 Thread Robert Osfield
Hi Sebastien, The Camera::setRenderOrder(RenderOrder,int) method controls the rendering order that cameras are rendering in. If you have just one camera active per view then you'd use something like: v1-getCamera()-setRenderOrder(osg::Camera::PRE_RENDER);

Re: [osg-users] CompositeViewer views rendering order

2008-12-03 Thread Sebastien Roy
Thanks Robert, Using -setRenderOrder() does fix the problem, but only partially. Now the rendering of overlapping viewports is displayed correctly, but the mouse input events still go to the first added view. Actually, the composite viewer process events in the order of cameras of the

Re: [osg-users] CompositeViewer views rendering order

2008-12-03 Thread Robert Osfield
Hi Sebastien, You can disable whether a camera allows event focus using Camera::setAllowEventFocus In general if you have an app that has overlapping viewports then I would tend to think perhaps separate views is not the most appropriate usage of the viewer, perhaps using slave cameras (that has