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

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Tue Nov 21 14:41:45 PST 2017


Thanks Robert !!!

On Tue, Nov 21, 2017 at 3:01 PM, Robert Osfield <robert.osfield at gmail.com>
wrote:

> 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
> coordinates.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171121/4816417d/attachment.html>


More information about the osg-users mailing list