Hello Robert, the reason for changing the FBO attachment is generating dynamic ground tiles on the fly in a separate ground-scene-graph. Each ground-tile is a separate, location bound texture (with allocated image). If the tile location gets dirty I want to re-render the ground tile (the related texture).
The camera setting remains the same all the time, only the position changes. So I want to skip the creation/deletion of the depth buffer (or other meta stuff) for each ground-tile rendering frame. I just want to change the render-target. Any ideas, how to do it in an efficient way? Thanks, Alexej robertosfield wrote: > Hi Alexej, > > The osg::Camera's RTT/Frame buffer object support is designed around > just assigning one FBO and attachements for the lifetime of the > osg::Camera. I haven't ever tried changing the frame buffer > object/attachment assigned dynamically so can't provide any direct > suggestions. > > I would ask why you want to change the attachement, it could be that > there is an alternative way to achieve the result other than changing > the attachments. > > Robert. > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47693#47693 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org