Hi Robert,
Thanks for your reply. Unfortunately, CompositeViewer only seems to accept osgViewer::View instances - it cannot therefore combine embedded and non-embedded windows. Also in the osgmultiplecamera example, all views are updated using run(), whereas I would need to update them individually. Is there a solution for these two cases? Thanks From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: 10 May 2007 16:17 To: osg users Subject: Re: [osg-users] osgViewer: multiple independent views Hi Roderick, What you need is osgViewer::CompositeViewer, this provide support for multiple views or one or more scenes. See the osgmultiplecamera example. Robert. On 5/10/07, Roderick Kennedy <[EMAIL PROTECTED]> wrote: I am using OSG 1.93. I have an application that requires multiple views. The views are completely independent - they use separate scene data. To test which kind of viewer I needed, I tested them by replacing main() in "Examples osgteapot" so as to create two independent osgViewer::Viewer instances, then running a loop calling frame() on each. Result: One working view, one not. I then tried using CompositeViewer, and created to osgViewer::View instances for it. This worked fine but I had to use CompositeViewer::frame() to update them, and in my application I want to update the views separately. I find the first example, using Viewer, troubling because if I create two viewers, with two scenes, in two windows, how can they interfere? Does this mean that if I have another GL window (not OSG) in the same app, OSG will interfere with it? Can anyone advise me? Thanks! Roderick _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
