Hi Pierre-Jean, put your objects in the SORT_FRONT_TO_BACK render bin.
stateset->setRenderBinDetails(binNumber, "SORT_FRONT_TO_BACK"); Ensure that this particular binNumber is only used for objects you want sorted front to back, so that the render bin can be created correctly. The render bin prototypes provided by default in OSG are documented here: https://github.com/openscenegraph/osg/blob/master/src/osgUtil/RenderBin.cpp#L35 Cheers, Jannik ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65763#65763 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

