[osg-users] Antialiasing Text

Glenn Waldron gwaldron at gmail.com
Tue Feb 7 14:25:19 PST 2017


Try increasing the texture resolution with
osgText::Text::setFontResolution().


Glenn Waldron

On Tue, Feb 7, 2017 at 5:01 PM, Roko Talk <schirokotal at gmail.com> wrote:

> Hi guys,
>
> anyone an idea how I could apply the authors solution without specifying
> the font?
>
> I just try to have 2D text on top of everything, which should not change
> it's screen size. (<-- "setCharacterSizeMode(osgText:
> :Text::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT)")
>
> But no matter what I try the text itself looks pretty ugly and I think
> this is caused by anti aliasing. - Do I miss something how I could get 2D
> text in just raw, crystal clear, pixels? So the text either has exactly the
> color specified or there is no text. And what I get right now is, that I
> specify white as the color and the font color is partially white, light
> grey.
>
> Anyone an idea? : )
>
> Many thanks in advance!
>
>
> Cheers,
> Roko
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70123#70123
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170207/b435c934/attachment-0003.htm>


More information about the osg-users mailing list