[osg-users] osgText: problem with SCREEN_COORDS mode
Robert Osfield
robert.osfield at gmail.com
Sun May 20 05:34:09 PDT 2018
Hi Glenn,
I have tried various ways to try and make the scale of the text
consistent when using CharacterSizeMode is SCREEN_COORDS whle
AxisAlignment is not SCREEN but in the end found the only solution
that produces consistent results was to apply the same maths as was
being use for the auto rotate case, except the auto-rotation itself is
ignored when generating the final matrix.
What I have checked in is:
https://github.com/openscenegraph/OpenSceneGraph/commit/55c0afbe3ad2c6587f8c329a7dcc61284d8d18b9
This is also checked into OSG master.
To help test the various possibilities out I amend you test example to
have --xy, --xz, --screen etc. command line options for setting how to
set the axis alignment of the text. This amended version is attached.
With the above fix everything looks to be working fine, at least for
the case of this test, the tests that other users have posted and
osgtext. Fingers crossed this means that osgText is now working
solidly for 3.6.1.
Cheers,
Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1436 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180520/7add3440/attachment.cpp>
More information about the osg-users
mailing list