[osg-users] Colored Bounding Box over osgText::Text
Diego Mancilla
dmancillac at gmail.com
Sat Apr 6 14:27:24 PDT 2019
Hello,
I've found a workaround my problem. I had to inherit a class from osgText::Text and override the drawImplementation method like so:
Code:
void MyTextNode::drawImplementation(osg::RenderInfo& renderInfo) const
{
osg::Vec4 color = getColor(); # stored custom color
osgText::Text::drawImplementation(*renderInfo.getState(), color);
}
Cheers,
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75787#75787
More information about the osg-users
mailing list