Hi,
I found another problem with invisible text today.  In TextBase.cpp
there is this chunk of code at line 290:

            // provide a fallback in cases where no bounding box has
been been setup so far
            if (_characterSizeMode!=OBJECT_COORDS || _autoRotateToScreen)
            {
                // default to a zero size.
                bbox.set(_position, _position);
            }
            else
            {
                osg::Matrix matrix;
                matrix.makeTranslate(_position);
                matrix.preMultRotate(_rotation);

bbox.expandBy(osg::Vec3(_textBB.xMin(),_textBB.yMin(),_textBB.zMin())*matrix);

bbox.expandBy(osg::Vec3(_textBB.xMax(),_textBB.yMax(),_textBB.zMax())*matrix);
            }

I'm probably missing something but I don't see the logic behind the
first conditional.  Does it really have a purpose or is it legacy
code?  If I change the whole chunk to this then my text is displayed
properly:

                osg::Matrix matrix;
                matrix.makeTranslate(_position);
                matrix.preMultRotate(_rotation);

bbox.expandBy(osg::Vec3(_textBB.xMin(),_textBB.yMin(),_textBB.zMin())*matrix);

bbox.expandBy(osg::Vec3(_textBB.xMax(),_textBB.yMax(),_textBB.zMax())*matrix);

--
Terry Welsh
mogumbo 'at' gmail.com
www.reallyslick.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to