I think he doesn't need the usual Z buffer applied to the text, but instead
requires the visibility of the entire text depend on whether the point to
which is anchored is directly visible to the camera.

Christian



2014-11-27 16:46 GMT+01:00 Robert Osfield <[email protected]>:

> Hi Alex,
>
> On 27 November 2014 at 10:43, Alex Malygin <[email protected]> wrote:
>
>> I put the text to a specific point on the stage. He displayed until
>> completely visible. I need that he was hiding from the scene when the point
>> at which it is placed, is not visible.
>>
>
> I'm not 100% clear yet, but sounds like you want an object and it's label
> to appear when the object is not culled.  If this is the case then using an
> subclass from  osg::Drawable::ComputeBoundingBoxCallback callback assigned
> to the Text drawable might the way forward.  This custom callback would
> return the bounding box for the object you want to associate the label with.
>
> Robert.
>
>
> _______________________________________________
> 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