> Well I have already tried to change the stateset of the geode of the
> osgText for example with something like
> 
> stateSetGeode->setRenderBinDetails(15, "RenderBin", 
> osg::StateSet::OVERRIDE_RENDERBIN_DETAILS)
> 
> , but it doesn't seem to help. The bigger the renderbin the 
> later it is rendered in the scene, right?

Yes, the foremost object have to get the highest binNumber. In my case I
only have to set these number like below and it works fine for me with
static objects:

        osg::StateSet *stateSet = new osg::StateSet;

        // specify when object is going to be drawn
        stateSet->setBinNumber(99);

        object->setStateSet(stateSet);

I don't know if this works with HUDs. May be you also have to set the
binNumber for the HUD. Perhaps the problem lies elsewhere and someone
else can help.
-- 
Andreas Richter
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to