Re: [osg-users] osgText quality issue

2010-03-18 Thread Farshid Lashkari
Hi Robert, I just tried the latest changes and the text looks good. Thanks! Cheers, Farshid On Thu, Mar 18, 2010 at 7:42 AM, Robert Osfield wrote: > Hi All, > > I've been reviewing the texcoord maths in Font.cpp and Text.cpp and > believe that the sizeAdjustment should actually be 0.0, and the

Re: [osg-users] osgText quality issue

2010-03-18 Thread Robert Osfield
Hi All, I've been reviewing the texcoord maths in Font.cpp and Text.cpp and believe that the sizeAdjustment should actually be 0.0, and the we need to also add CLAMP_TO_EDGE. I have been testing using the osgfont example and this change results in better looking text, inline with Farshid's resul

Re: [osg-users] osgText quality issue

2010-03-18 Thread Robert Osfield
Hi Ralf, On Thu, Mar 18, 2010 at 9:22 AM, Ralf Stokholm wrote: > Im not sure if this is the last time it was changed, but inspecting the log > it was changed a revision 6602 from Thanks for the detective work. From Tracs the changes are: http://www.openscenegraph.org/projects/osg/changeset/660

Re: [osg-users] osgText quality issue

2010-03-18 Thread Ralf Stokholm
Hi Im not sure if this is the last time it was changed, but inspecting the log it was changed a revision 6602 from unsigned int sizeAdjustment = 0; // was 1. to unsigned int sizeAdjustment = 1; With the following comment: *Reorganised the managment of margins around glyphs so that is done entire

Re: [osg-users] osgText quality issue

2010-03-18 Thread Mathias Fröhlich
Hi, On Wednesday 17 March 2010, Farshid Lashkari wrote: > 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 change

Re: [osg-users] osgText quality issue

2010-03-18 Thread Robert Osfield
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 chan

Re: [osg-users] osgText quality issue

2010-03-17 Thread Terry Welsh
: Farshid Lashkari > To: OpenSceneGraph Users > Subject: [osg-users] osgText quality issue > Message-ID: ><978d1eac1003171329l4f526d49q78495dbc1f958...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I'm in the proces

Re: [osg-users] osgText quality issue

2010-03-17 Thread Jean-Sébastien Guay
Hello Farshid, Does anybody else notice these artifacts? Is there a downside to changing the sizeAdjustment value back to 0? Any insight is appreciated. Yes, it has been discussed in the past on the list, check the archives. It was even stated by Jeremy Moles as the major reason why he develo

Re: [osg-users] osgText quality (UNCLASSIFIED)

2007-12-06 Thread Buckley, Bob CTR MDA/IC
ROTECTED] Sent: Thursday, December 06, 2007 1:19 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgText quality (UNCLASSIFIED) Is this the Bob Buckley that was famous for the "Buckley Flop" on the Big Piney? Stephen Haithcock General Dynamics Land Systems 38500 Mound Rd.

Re: [osg-users] osgText quality (UNCLASSIFIED)

2007-12-06 Thread haithcoc
ROTECTED] 12/06/2007 12:48 PM Please respond to OpenSceneGraph Users To "OpenSceneGraph Users" cc Subject Re: [osg-users] osgText quality (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE I leveraged the Font class and its internal Glyph sets for calling glBitmap.

Re: [osg-users] osgText quality (UNCLASSIFIED)

2007-12-06 Thread Buckley, Bob CTR MDA/IC
but I'll be cross platform. But, I'm able to leverage TrueTypeFonts. Bob Buckley Raytheon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Himar Carmona Sent: Thursday, December 06, 2007 6:45 AM To: OpenSceneGraph Users Subject: [osg-users] osgTe

Re: [osg-users] osgText quality

2007-12-06 Thread Thibault Genessay
Hi FYI I guess JP was talking about this thread http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/9932/focus=9937 Using two equal values for the resolution worked for me too. You have to try various values because some rounding is performed in background and you won't necessarily no

Re: [osg-users] osgText quality

2007-12-06 Thread J.P. Delport
Hi, I've also had cases with characters clipped, sometimes not even on the same edge. There has been a discussion about this quite some time ago, maybe you can find it if you search for my name, and I remember some other people also proposed solutions. What worked for me was to set the resolut

[osg-users] osgText quality

2007-12-06 Thread Himar Carmona
Hi, have anybody any hints about which parameters values give the best quality with osgText? In my app i must show some text (normally 10-20 pixel height), and the quality i have been able to achieve is not good. I noticed also in osgText that some characters are clipped ( most visible for e and