Hi, have a look at osgPoster (I think that's the name).
Nick On Tue, Sep 3, 2013 at 2:41 PM, Christoffer Pettersson <[email protected] > wrote: > Hello. > I'm currently implementing a screen capture functionality and I have a few > questions regarding the GraphicsContext size and the Image::readPixels > function. > > In the first scenario I want to create a graphics context of size > 3840x1080. My Monitor is only 2560x1600 and the graphics context seem to > clip around the monitor border, giving me a graphics context of roughly > 2560x1080. Is there a way to force OSG to create a context wider than my > screen resolution? > > Second scenario: I have a 1920x1080 graphics context. This context will be > shared between two cameras. What I want to do now is the following: > 1. Render world as seen from camera 1 to viewport(0, 0, 1920, 1080). > 2. store pixels with Image::ReadPixels in postDrawCallback > 3. Render world as seen from camera 2 to viewport(0, 0, 1920, 1080). > 4. store pixels with Image::ReadPixels in postDrawCallback > Unfortunately this doesn't work very well. The image I get from > Image::ReadPixels is the same for both cameras. > > Thank you > Christoffer > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=56085#56085 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

