Re: [osg-users] problems with CompositeViewer

2008-12-03 Thread Robert Osfield
HI David, I'll stop being subtle about it then as you seem to have ignored my previous email which told you exactly what to do. Using two views to do what you want to do is *completely* the wrong way to tackle the problem. You task requires a single view, but with either a slave Camera or a in

Re: [osg-users] problems with CompositeViewer

2008-12-03 Thread David Oyarzun
Hi all, regarding the question yesterday about the problem with the compositeviewer, I attach the fragment of code that i am using. Has somebody any idea about where is the problem? Thank you very much. osg::ref_ptr traits = new osg::GraphicsContext::Traits; // Init the Windata Variable t

Re: [osg-users] problems with CompositeViewer

2008-12-02 Thread Robert Osfield
Hi David, The Camera::setRenderOrder(..) method is used to control order in which the cameras on a GraphicsWindow are rendered. In you application the wish to have a background image is not served well by creating a separate view for it. A far better solution would be to insert a Camera into the

[osg-users] problems with CompositeViewer

2008-12-02 Thread David Oyarzun
Hi all, I think I have a problem with the render order of the CompositeViewer. I am trying to program a osg-based windowed application that shows a 3D animated object centered in the right middle of the window. Moreover, it has a background image that fills all the window, including the