Rafa Gaitan schrieb:
Hi Andreas,

maybe this could help you:

text->setBackDropType(osgText::Text::OUTLINE);
text->setBackDropColor(...);

You can also configure the width and height of the backdrop.. see API reference for all the combinations.

Rafa.
Hi Rafa,

thanks a lot! This is even better than what I had in mind!

I use the text for a kind of tooltip, such I cannot predict over which background it will appear. Now it stays perfectly readable.

The only thing I wonder about now: The text-outline is rendered much better and clearer than the text itself...

Regards,

Andreas


On 4/9/07, *Andreas Goebel* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi,

    is there a simple way of drawing a background-rectangle to ensure
    readability of the text? For instance a white rectangle behind a black
    text to ensure, that the text stays readable if it is over a black
    object?

    If not, I would draw it with a geometry that uses the bounding box of
    the text, right?

    Regards,

    Andreas

    _______________________________________________
    osg-users mailing list
    [email protected] <mailto:[email protected]>
    http://openscenegraph.net/mailman/listinfo/osg-users
    http://www.openscenegraph.org/ <http://www.openscenegraph.org/>


------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to