Hi Jimmy,

The Text's StateSet  sets the RenderBin locally to use the
TRANSPARENT_BIN hint so this will overriding what you are setting from
above.  You could set the Text's StateSet::RenderBinDetails directly
or use the a StateSet::RenderBinMode of OVERRIDE_RENDERBIN_DETAILS in
your decorating StateSet.  This is a recent feature though so check to
see if this is available.

Robert.

On Thu, Jul 29, 2010 at 1:18 AM, Jimmy Lin <[email protected]> wrote:
> Hi,
>
> I am trying to display text which always stay on top. (but it's not a hud)
> So I turn off depth test on the text, and set bin number to 20 to make it 
> render last. It only worked partially. The text rendered on top of all opaque 
> objects, but not transparent objects.
>
> I tried both "RenderBin" and "DepthSortedBin" as bin name, and also tried the 
> override flag. But nothing helps.
>
> Can sameone tell me how exactly the renderring order works.
> Does it order objects by bin number first then bin name or the other way 
> around?
> Does object hierarchy matters?
>
> My text and transparent object are both under the same parent.
> Something like this:
>
> Parent  -- PAT   -- Geode   --  Drawable
>  \______ PAT   -- Geode   --  Text
>
> The transparent bin was set at PAT level for the transparent object, but the 
> setting bin number to 20 is down at osgText level.
>
> Could this be the problem?
>
> Thank you!
>
> Cheers,
> Jimmy
> Code:
>
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30357#30357
>
>
>
>
>
> _______________________________________________
> 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