Hi Sander, Simply create the RTT Camera with a Texture that is half the main windows dimensions and set up the viewport of the RTT Camera to those dimensions.
Robert. On 13 November 2014 15:15, Sander Meessen <[email protected]> wrote: > Hi, > > I am trying to render the main scene at half resolution, but stretch the > resulting image to the normal full resolution (to get a pixelated result). > > I partially using the RTT setup from the OSG 3.0 Cookbook. My main camera > is the RTT; it renders the entire scene to a texture attached to its color > buffer. Next a HUD camera renders the texture to a screen quad. This part > works fine. > > Now is the goal to render the main scene to a half resolution texture. I > tried setting the RTT camera's render texture to half resolution, but this > doesn't affect anything. > > I can render at half resolution by changing the main camera's viewport to > half resolution and keeping the HUD camera's viewport at full resolution. > But then the camera controls (from OsgEarth) are messed up because they > function on the small (invisible) viewport of the main camera. > (Basically the same approach as discussed here > http://forum.openscenegraph.org/viewtopic.php?t=8491, but I am not using > OsgPPU) > > I hope someone can help. > > > Thank you! > > Cheers, > Sander > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61621#61621 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

