Hi
 
using separate renderbin ID for each set of objects should do exactly what you want, as they should be sorted by depth inside each set, and sets rendered in order of renderbin ID's. How you assigning render bin ids? You may need to set RenderBinMode to USE_RENDERBIN_DETAILS or OVERRIDE_RENDERBIN_DETAILS to make it work. And back to front depth sorted renderbin prototypes names are "DepthSortedBin" and "SORT_BACK_TO_FRONT", check if you typed it right.
Dont use setRenderingHint(...) after you've set bin number or mode, as it overrides them. Best to use only setRenderBinDetails call like:
setRenderBinDetails(binID, "DepthSortedBin", osg::StateSet::USE_RENDERBIN_DETAILS);
Cheers.
 
09.12.2012, 01:34, "Preet" <[email protected]>:
Hiya,
I have multiple sets of depth sorted geometry that I'd like rendered in a specific order. So the depth sorted part itself only matters within a single set, if that makes any sense. For example, I might have three sets, each containing 100 osg::Geometry objects. I'd like each of the objects to render correctly with respect to the other objects in their own set, but I'd like all the objects in the first set to show up over all the objects in the second set and so on.
I'm not sure how to do this with OpenSceneGraph. I tried giving each set of objects a separate DepthSorted render bin... but this doesn't do what I want. I'd appreciate any advice.
Preet
,

_______________________________________________
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

Reply via email to