I'm trying to resize the textures attached to my framebuffer during run-time, however the viewport size that the scene is rendered into stays the same. If the framebuffer starts off at 64x64 pixels and I then resize to 512x512, the output only contains rendered pixels in the lower left 64x64 region and the rest of the image is black. I've found other forum posts similar to this issue but their solutions did not work. Here's the code I'm using to resize.
colorbuffer->setTextureSize(width, height); colorbuffer->dirtyTextureObject(); depthbuffer->setTextureSize(width, height); depthbuffer->dirtyTextureObject(); osg::Camera::setViewport(0, 0, width, height); osgViewer::Renderer* renderer = (osgViewer::Renderer* )osg::Camera::getRenderer(); renderer->getSceneView(0)->getRenderStage()>setFrameBufferObject(NULL); renderer->getSceneView(0)->getRenderStage()>setCameraRequiresSetUp(true); ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46416#46416 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org