Ah OK, the render to texture idea is maybe a good alternative. Do the RTT affect the performance?
My idea was a observer pattern. The camera settings are in a subject object and the osg::Camera is in the observer object. When the settings to be change the subject notify the observer (cameras with different viewports). But I think it is time consuming. Do you think, the RTT is the better way? Cheers Martin -------- Original-Nachricht -------- > Datum: Fri, 29 Oct 2010 17:32:34 +1100 > Von: Ulrich Hertlein <[email protected]> > An: OpenSceneGraph Users <[email protected]> > Betreff: Re: [osg-users] Two Viewports with one Camera > Hi Martin, > > On 29/10/10 17:17 , "Martin Großer" wrote: > > I would like use two viewports in my application and one camera. Is this > possible? I > > think, the normal way is to define the viewport for a camera like: > > camera->setViewport(...) > > I can't say if it's possible, but if it is then I'd guess it renders the > same scene twice. > In this case it might be easier to render to a texture and just display > the texture in two > viewports. > > /ulrich > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

