[osg-users] strange behaviour with osgText::Text

Christoph Dohmen christoph.dohmen at cae.de
Wed Jul 18 05:06:55 PDT 2018


Hi,

I have a strange effect with osgText::Text. My original goal was to have a constant pixel-sized Text close to the starting point of a line. Using dummy values everthing is fine. But using real values the textsize changes!

See the attached source. The wrong behaviour could be seen by setting USE_WRONG_VALUES to 1 and the right behaviour could be seen by setting it to 0.

I use OSG 3.6.1 under opensuse.

Thank you!

Cheers,
Christoph

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74356#74356



-------------- next part --------------
A non-text attachment was scrubbed...
Name: dummy.cpp
Type: text/x-c++src
Size: 4520 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180718/8e0fb8bd/attachment.cpp>


More information about the osg-users mailing list