<div dir="ltr">Robert,<div>Thank you for look into this. Indeed, my use case is an earth graticule with labels in the grid cells.</div><div><br></div><div>As the labels become more rotated away from the camera, things begin to break down:</div><div><br></div><div><img src="cid:ii_jhc7e6eb0" alt="2018-05-18_125340.jpg" width="412" height="378"><br><br></div><div>Removing the rotational elements yields a better result:</div><div><br></div><div><img src="cid:ii_jhc7fpv61" alt="2018-05-18_125144.jpg" width="412" height="365"><br><br></div><div>I understand that just removing rotations might cause other side effects so maybe there's a better approach.</div><div><br></div><div>Even if this is not a bug, it is a regression relative to OSG 3.4.1. Let me know if you want me to do any further testing. </div><div><br><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 18, 2018 at 6:27 AM Robert Osfield <<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Glenn,<br><div class="gmail_extra"><br></div><div class="gmail_extra">I have now looked at your test program and can reproduce the stretched text. </div><div class="gmail_extra"><br></div><div class="gmail_extra">The example is a bit unusual in that you have text size set to SCREEN_COORDS but the orientation of the text is free to move with the scene as it gets rotated by the viewer's camera,</div><div class="gmail_extra"><br></div><div class="gmail_extra">What I'd normally expect is that if you are using:<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"> text->setCharacterSizeMode(osgText::Text::SCREEN_COORDS);</div><div class="gmail_extra"><br></div><div class="gmail_extra">Then it would be normal to also us:</div><div class="gmail_extra"><br></div><div class="gmail_extra"> text->setAxisAlignment(osgText::Text::SCREEN);</div><div class="gmail_extra"><br></div><div class="gmail_extra">Adding this to your test example fixes the issue. So I'm curious, do you have an instance where the character size should be scaled to SCREEN_COORDS but with the AxisAlignment set to SCREEN.</div><div class="gmail_extra"><br></div><div class="gmail_extra">As a general comment, if you are scaling the text to screen coords the rotation of the text will be important to take into account as the aspect ratio of the window can be altered so required the horizontal and vertical scaling can be different, which will be affected by the rotation of the text.</div><div class="gmail_extra"><br></div><div class="gmail_extra">At this point I don't think we are looking at a bug, rather just an odd behaviour when using text is an odd way.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Robert.<br></div></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>