[osg-users] OsgText compile issue with the newer versions of OSG

Robert Osfield robert.osfield at gmail.com
Tue Nov 21 06:01:00 PST 2017

Hi Nick,

On 16 November 2017 at 17:05, Trajce Nikolov NICK
<trajce.nikolov.nick at gmail.com> wrote:
>> Getting the coords of glyphs is something we'd need to add to
> osgText::Text, such as Text::getGlyphCorners(int characterPosition,
> osg::Vec3& bottomLeft,   osg::Vec3& bottomRight etc.).
> Right. This will do it.

I have checked in:

    /** Get the coordinates of the character corners in local
coordinates. Use Text::getMatrix() or Text::computeMatrix(..) to get
the transform into model coordinates (see TextBase header.) */
    bool getCharacterCorners(unsigned int index, osg::Vec3&
bottomLeft, osg::Vec3& bottomRight, osg::Vec3& topLeft, osg::Vec3&
topRight) const;

Note the comment about needing to transform this coords - this is
required to handle the overall positioning of the text in model


More information about the osg-users mailing list