Hi Terry,

Does OSG have any sort of convenience routine for drawing a
semi-transparent rectangle behind a block of osgText?  This would make
text a little easier to read against distracting background imagery.

Not that I know of, but you're right, it's something that I have often needed to do. The osghud example shows that it's pretty easy to do it by taking the axis-aligned bounding box of the text and making a quad of that size (of course I'd personally add a small margin all around, but that could be a parameter in the convenience function).

Feel free to submit it. I, for one, would use it.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to