Hi Farshid,

An interesting result.  I'm afraid I can't recall the reason for the
change, it will have been done quite a while ago.  subversion's
revisions might be able to unearth why sizeAdjustment is now 1- but
it's pretty likely it was an attempt to improve one aspect of
rendering so if we change it there is good chance that we'll improve
on one area but make another area worse.   If we can find out what
cases require sizeAdjustment of 1 then perhaps we'll be able to build
a test that reproduces both the issue you are seeing and this other
one then we can come up with an all round solution.

Robert.

On Wed, Mar 17, 2010 at 8:29 PM, Farshid Lashkari <[email protected]> wrote:
> Hi,
> I'm in the process of porting our application from OSG 1.2 to 2.9. One major
> issue that immediately stood out was the quality of osgText. All the letters
> seem to be cut off by one pixel along the edges. There has been a lot of
> changes since 1.2, but I did find one setting that seemed to fix the issue
> for me.
> On line 539 of Font.cpp there is a hard-coded variable called sizeAdjustment
> that is set to 1. In OSG 1.2 this value was set to 0. Changing this value
> back to 0 pretty much resolves the quality issue for me. I've attached a
> screenshot comparing the result of changing the value.
> Does anybody else notice these artifacts? Is there a downside to changing
> the sizeAdjustment value back to 0? Any insight is appreciated.
> Cheers,
> Farshid
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to