[osg-users] Colored Bounding Box over osgText::Text

Diego Mancilla dmancillac at gmail.com
Fri Apr 5 05:43:33 PDT 2019


I'm trying to draw a bounding box around a osgText::Text instance. Setting the draw mode to 'osgText::Text::TEXT|osgText::Text::BOUNDINGBOX' draws a white box around the text. Does anyone knows a simple way to get this box color match the text color? Or, better yet, a way to draw the box myself? The text is dynamic in nature, so I need to be able to resize the box as the text changes. 

 I look at the osgText::Text source code but there is too much GL stuff for a newbie like me.

 Any help will be very much appreciated.

Thank you!


Read this topic online here:

More information about the osg-users mailing list