Hi, my first attempt was using the _bufferAttachmentMap and i got no results. Actually the code never entered the loop so the structure should be empty, (i attach only texture to the camera). Reading from the camera on the other hand performed what i expected.
I don't have deep knowledge of the OpenSceneGraph internals but i think that the first case i mentioned is not a desired behavior. Best Regards, Anthousis Andreadis On Apr 12, 2011, at 10:47 AM, Dietmar Funck wrote: > Hi Anthousis, > a RenderStage has its own buffer attachment map (_bufferAttachmentMap) which > is initialized in runCameraSetUp using the one of the camera. So the map of > the RenderStage is actually used for rendering and should be used by your > addition instead of reading from the camera a second time. > > In most cases your solution should work. However if the scene is drawn > between a change of camera attachments and running runCameraSetUp camera > attachment map and RenderStage attachment map are out of sync. > > Best Regards > Dietmar Funck > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=38417#38417 > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org Anthousis Andreadis [email protected] _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
