Hi Michael, As Guy says the rendering back end is only doing an internal setup of first entry into osg::Camera, once the rendering back objects are cached they are reused. Setting this cache to NULL will trigger a new update.
Ideally the code should automatically do this though, implementing it will require adding a dirty mechnism to osg::Camera and the related code in src/osgUtil/RenderStage. Robert. On Thu, Apr 10, 2008 at 12:24 AM, Guerrero, Michael (CIV) <[EMAIL PROTECTED]> wrote: > Hi guys, I'm not sure if this is a bug or I'm not understanding > something. The first time I attach images to a camera, the runCameraSetUp > function will be called in RenderStage which sets up the fbo to harvest the > data. > > > > I do the following: > > > > texCam->attach(osg::Camera::COLOR_BUFFER, mReferenceColorImage); > > texCam->attach(osg::Camera::DEPTH_BUFFER, mReferenceDepthImage); > > > > This works just fine. The problem is when I want to change the images > that are attached. For instance I later have the following: > > > > texCam->attach(osg::Camera::COLOR_BUFFER, mSceneColorImage); > > texCam->attach(osg::Camera::DEPTH_BUFFER, mSceneDepthImage); > > > > After setting the attachments to new images, runCameraSetUp will never get > called to set up the frame buffer object. Is there something I can do to > make this happen? > > > > Thanks, > > Michael Guerrero > > _______________________________________________ > 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

