Hi Himar, If you are just resizing occassionally and its you don't have a frame rate critical app then the overhead of recreating an FBO shouldn't be a great issue. Ease of use wise tweaking the internals of RenderStage to recreate the FBO when the setup changes would be the right thing to do long term, I'm too busy right now to go chasing such features, but you are welcome.
Otherwise stick to your workaround, or just aim for a large enough FBO enough for the maximum window sizes you expect to encounter. FBO's can go up to 4k by 4k with is far in excess of what window will ever be so you have plenty of head room. Robert. On Dec 1, 2007 7:10 PM, Himar Carmona <[EMAIL PROTECTED]> wrote: > Hi Robert, > > i only resize (i.e. recreate) the FBO when a resize operation is performed > (when it is detected as finished). 99% of the time this will not happen. > Really, my app performance is dropping due to the readback operation every > frame. In my case this is acceptable, as i don't need constant frame rate > (i'm rendering on demand, my app is a CAD like one). OSG is so fast doing > its work, that the response time is good enough. > > This is my workaround to the problem i mentioned in my post: > > osgViewer::Renderer* renderer = > (osgViewer::Renderer*)camera->getRenderer(); > > renderer->getSceneView(0)->getRenderStage()->setCameraRequiresSetUp(true); > > renderer->getSceneView(0)->getRenderStage()->setFrameBufferObject(NULL); > > These lines force the RenderStage to recreate the FBO, but this only > happens when the resize operation ends. > > Your idea is better of course. But my app must be able to handle a > multimonitor system. How can i determine in this situation what is the > largest region i need? Is this region independent of the multimonitor > configuration? > > > Thank you for your advices, Robert. I really appreciate them. > Himar. > > > > _______________________________________________ > 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

