Hi Mike,

I have attached an image showing the issue.

In my experience, the best quality using osgText is when you have text aligned at integer screen coordinates. So you need to use setPosition() with coordinates that have no fractional part (i.e. 3.0, not 3.1), and you can't use center alignment (because then OSG will place the center at the position you set, but the characters will probably fall on fractional coordinates). Try those guidelines and see if you get less quality problems.

Jeremy Moles discussed this while he was developing osgWidget, and it was one of the reasons why osgWidget has a path to render all text through Pango. You can search the archives, he posted screenshots and there's even a test of font quality at different settings in the osgwidget* examples I think. The comments in the osgWidget source code also mention this at a few places IIRC.

Perhaps it would be interesting to modify osgText to make sure text always falls on integer coordinates, so that text quality is always optimal. But I don't know if there would be other repercussions.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to