camera->setViewport(0,0,tex_width,tex_height);
to
camera->setViewport(0,tex_height/2,tex_width,tex_height/2);
then no image is rendered at all. If the render target implementation is set to FRAME_BUFFER then an image is rendered, but it seems to ignore the viewport setting and renders to the full texture size.
Sorry I don't have a fix yet. Was hoping somebody who knows the code better might know what is causing the trouble. Otherwise, I can probably look at this in more detail in a couple weeks....
--
Terry Welsh - mogumbo 'at' gmail.com
www.reallyslick.com | www.mogumbo.com
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
