Hi Sebastian, The full code is here: https://gitorious.org/fg/flightgear/blobs/next/src/Viewer/renderer.cxx#line704 I don't move renderbin-items but whole renderbins from a renderbin list to another. It seems to me that render bins contains state graphs and render leafs, so moving a render bin (or deleting one as I do now) moves or deletes associated states.
Note: I now delete states associated to transparent bins generated by the geometry pass because I have a second pass (the light pass) where I draw these transparent object a second time. The code that do the move before was there : https://gitorious.org/fg/flightgear/commit/c1137f371d1bc7c36ca6ba77420e63a96b443bb8 By the way, version 2.8 of Flightgear will be released on August 17th. It contains the deferred renderer codenamed 'Rembrandt' Regards, -Fred ----- Mail original ----- De: "Sebastian Messerschmidt" <[email protected]> À: "OpenSceneGraph Users" <[email protected]> Cc: "Frederic Bouvier" <[email protected]> Envoyé: Lundi 30 Juillet 2012 18:31:23 Objet: Re: [osg-users] Separate rendering of renderbins Hello Fred, I know it's been a while, but right now I really want to solve this issue. Can you give me hint on this one? The problem seems to be, that moving the renderbin-items doesn't seem to move the associated state with them. I.e. they are not rendered in the camera I attach them too. cheers Sebastian > Hello, > > I've tried the approach but it didn't quite give me the results. > As proposed I've installed the 2 cullcallbacks and moved the > transparent bin from one camera to the other. After debugging I also > saw that the transparent bin of the second camera is indeed rendered, > but somehow I think all state associated with it is messed up. E.g. > the geometry is supposed to use a special shader, which is bound to > the second camera, but it seems it is never executed. > Any further hints? > > cheers > Sebastian _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

