> There is a traversal ordered render bin since some time. This one renders just > in the order you traverse your scenegraph with the cull visitor. > Of course you loose plenty of optimizations due to state sorting ...
Ok, for the record here is how I solved it, the traversal order bin actually helped! Thank you. I place the geodes representing the transparent containers in a DepthSortedBin, so these containers get drawn in back to front order (no intersection between tanks is assumed). geodestate->setRenderBinDetails( render_bin, "DepthSortedBin", osg::StateSet::USE_RENDERBIN_DETAILS ); On each drawable I use the nesting feature for render bins, which I discovered in a search of the OSG code base. I am not sure if this is the correct way to do it, but the results look correct. Because the drawables that make up each tank are already added in the order they must be drawn, this seems to work fine. drawablestate->setRenderBinDetails( render_bin, "TraversalOrderBin", osg::StateSet::INHERIT_RENDERBIN_DETAILS ); drawablestate->setNestRenderBins(true); The render_bin variable passed here is 10 (the default for transparent bins). Christian _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

