Re: [osg-users] Odd Text Distortion (Which Does Not Appear to Be Due to the 3.2 Bugfix)
Hi, Thanks Robert! Your suggestion was exactly it! I kept trying for a solution involving the camera or something more complicated, completely dismissing that the problem could have been much simpler. Ha. I figured perhaps the text looking strange and also being off-center were related problems-- this was not the case. Getting freetype working correctly fixed the appearance of the font, and then some bit later I dug up where the offset issue was coming from and fixed that. For the curious, the offset was being caused by using the dimensions of the text's bounding sphere in a calculation to center the text, instead of the dimensions of the text's bounding box (I thought we'd been using the bounding box, but I was incorrect). Since the bounding sphere has a radius presumably determined by the longest dimension of the text, the longer a line of text was along its longest axis, the further offset it turned out along its shorter axis. Thank you guys for the suggestions! Cheers, Sam -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68127#68127 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Odd Text Distortion (Which Does Not Appear to Be Due to the 3.2 Bugfix)
It's not entirely clear what the specific issue might be from your description, it sounds like it's simply that the wrong font is being used, from the the look of the picture it looks like the fallback built in font is being used. This would normally only happen if you don't have the freetype plugin built. Or trying to open a font that does not exist which can happen with examples that reference data/times.ttf etc. or being on an embedded system with no fonts at all ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Odd Text Distortion (Which Does Not Appear to Be Due to the 3.2 Bugfix)
Hi Sammy, It's not entirely clear what the specific issue might be from your description, it sounds like it's simply that the wrong font is being used, from the the look of the picture it looks like the fallback built in font is being used. This would normally only happen if you don't have the freetype plugin built. Check if the freetype plugin has been built and being loaded at runtime. Another quick check is to run osgviewer with a simply model and then enable stats by pressing 's'. This will bring up text on screen, if it's blocky then the OSG isn't loading freetype fonts most likely due to lack of feetype plugin being built. Robert. On 29 June 2016 at 23:53, Sam Jones wrote: > Hi, > > I have been having an issue with the display of text for a few days now > (where the correct font is not used), while updating a project from pre-3.0 > OSG to the latest version. > > I know about this bug fix from 3.2 where, now, creating a camera and > assigning it to the viewer without initialising it properly or setting it to > global defaults will give you exactly what you're asking for. It seems that > past posters have had problems with text rendering in a blocky or unusual > way, and have traced it to this bugfix, however, I have not found this > project to have any improperly initialised cameras. > > Does anyone have any suggestions? > > (I have attached an image). > > Thank you! > > Cheers, > Sammy J > > (I should mention, this is on a Win7 machine, building a project in Win32 > Release mode; I have made sure that I am using the correct, non-debug dlls) > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=67921#67921 > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Odd Text Distortion (Which Does Not Appear to Be Due to the 3.2 Bugfix)
Hi, I have been having an issue with the display of text for a few days now (where the correct font is not used), while updating a project from pre-3.0 OSG to the latest version. I know about this bug fix from 3.2 where, now, creating a camera and assigning it to the viewer without initialising it properly or setting it to global defaults will give you exactly what you're asking for. It seems that past posters have had problems with text rendering in a blocky or unusual way, and have traced it to this bugfix, however, I have not found this project to have any improperly initialised cameras. Does anyone have any suggestions? (I have attached an image). Thank you! Cheers, Sammy J (I should mention, this is on a Win7 machine, building a project in Win32 Release mode; I have made sure that I am using the correct, non-debug dlls) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67921#67921 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org