From f8490e386a7020b8d1884d0bb244e38537a2730d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 5 Aug 2006 16:57:52 +0000 Subject: [PATCH] Added code to reproduce Text outline bounding box compute bug. --- examples/osgtext/osgtext.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/osgtext/osgtext.cpp b/examples/osgtext/osgtext.cpp index e62645163..67271e302 100644 --- a/examples/osgtext/osgtext.cpp +++ b/examples/osgtext/osgtext.cpp @@ -416,6 +416,13 @@ osg::Group* create3DText(const osg::Vec3& center,float radius) text4->setCharacterSize(characterSize); text4->setPosition(center); text4->setAxisAlignment(osgText::Text::SCREEN); + +#if 1 + // reproduce outline bounding box compute problem with backdrop on. + text4->setBackdropType(osgText::Text::OUTLINE); + text4->setDrawMode(osgText::Text::TEXT | osgText::Text::BOUNDINGBOX); +#endif + text4->setText("SCREEN"); geode->addDrawable(text4);