<div dir="ltr"><br>Here is the solution:<br><br>text->setFontResolution(18,18);<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-25 17:13 GMT+05:00 Volckaert, Guy (CA - MTS) <span dir="ltr"><<a href="mailto:Guy.Volckaert@meggitt.com" target="_blank">Guy.Volckaert@meggitt.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm using OSG v3.4.0 and I resolved this issue by adding a glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,...) before calling glTexSubImage2D() in glyph.cpp. This problem was occurring if I was using an Intel video driver.<br>
<br>
void Glyph::subload() const<br>
{<br>
[...]<br>
<br>
// MTSI_BEGIN<br>
    // This line was added to resolve a problem with intel chipsets. In essence, some of the<br>
    // numeric glyphs would not display correctly. They would appear grey or transparent.<br>
    if( getTexture() )<br>
    {<br>
        glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, getTexture()->getFilter( osg::Texture::MIN_FILTER ) );<br>
    }<br>
// MTSI_END<br>
<br>
    glTexSubImage2D(GL_TEXTURE_2D,<wbr>0,<br>
                    _texturePosX,_texturePosY,<br>
                    s(),t(),<br>
                    (GLenum)getPixelFormat(),<br>
                    (GLenum)getDataType(),<br>
                    data());<br>
[...]<br>
}<br>
<br>
void GlyphTexture::apply(osg::<wbr>State& state) const<br>
{<br>
[...]<br>
// MTSI_BEGIN<br>
            // This line was added to resolve a problem with intel chipsets. In essence, some of the<br>
            // numeric glyphs would not display correctly. They would appear grey or transparent.<br>
            glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, _min_filter);<br>
// MTSI_END<br>
            // Subload the image once<br>
            glTexSubImage2D( GL_TEXTURE_2D, 0, 0, 0,<br>
                    getTextureWidth(),<br>
                    getTextureHeight(),<br>
                    OSGTEXT_GLYPH_FORMAT, GL_UNSIGNED_BYTE, local_data);<br>
[...]<br>
}<br>
<br>
Regards,<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: osg-users [mailto:<a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@<wbr>lists.openscenegraph.org</a>] On Behalf Of Tim Hartter<br>
Sent: April-25-17 7:29 AM<br>
To: OpenSceneGraph Users<br>
Subject: Re: [osg-users] Vanishing letters in osg::Text<br>
<br>
Setting OSG_TEXT_INCREMENTAL_<wbr>SUBLOADING to off does not make a difference and YES it happens on Intel cards (not on Nvidia) (Win 7 OSG 3.4)<br>
<br>
Maybe the patched OSG text works better...<br>
<br>
Mit AquaMail Android<br>
<a href="http://www.aqua-mail.com" rel="noreferrer" target="_blank">http://www.aqua-mail.com</a> gesendet<br>
<br>
<br>
Am 25. April 2017 10:18:21 vorm. schrieb Robert Osfield<br>
<<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>>:<br>
<br>
> On 25 April 2017 at 06:34, Wouter Roos <<a href="mailto:rooswouter@gmail.com">rooswouter@gmail.com</a>> wrote:<br>
>> I've experienced a similar issue lately where we were running a<br>
>> project on lower spec systems with only an integrated GPU. On those<br>
>> systems the frame rate would not show properly, having the same issue<br>
>> as described here, with some numbers not showing properly.<br>
>> I did a test on my laptop, and when I force it to use the integrated<br>
>> GPU<br>
>> (4600) the problems shows up as well. If I switch to use the GTX970M<br>
>> everything is fine again. This is all on Windows 10, osg 3.4.0 I<br>
>> haven't done any further investigation as the project is not using<br>
>> any Text objects, but maybe this might help somehow.<br>
><br>
> Some hardware/drivers don't support texture sub-loading correctly so<br>
> the osgText subloading of new glyphs could cause problems, perhaps<br>
> this is what you are seeing.  It's problem that originally occurred on<br>
> Radeon's and some SGI hardware so there is a workaround in osgText<br>
> that detects these combinations in drivers, you can also enable the<br>
> workaround by setting the env var OSG_TEXT_INCREMENTAL_<wbr>SUBLOADING to<br>
> OFF i.e. under bash you'd do:<br>
><br>
>   export OSG_TEXT_INCREMENTAL_<wbr>SUBLOADING=OFF<br>
>   osgtext<br>
><br>
> Under windows I think it's something like:<br>
><br>
>   set OSG_TEXT_INCREMENTAL_<wbr>SUBLOADING=OFF<br>
>   osgtext<br>
><br>
> The OSG master version has a had a major rewrite of osgText so it no<br>
> longer uses the texture subloading as may well just work out of the<br>
> box on the Intel GPU/drivers that you have.<br>
><br>
> Robert.<br>
> ______________________________<wbr>_________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph</a>.<br>
> org<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br>
______________________________<wbr>__<br>
<br>
<br>
</div></div>This e-mail may contain proprietary information and/or copyright material. This e-mail is intended for the use of the addressee only. Any unauthorized use may be unlawful. If you receive this e-mail by mistake, please advise the sender immediately by using the reply facility in your e-mail software.<br>
<br>
Information contained in and/or attached to this document may be subject to export control regulations of the European Community, USA, or other countries. Each recipient of this document is responsible to ensure that usage and/or transfer of any information contained in this document complies with all relevant export control regulations. If you are in any doubt about the export control restrictions that apply to this information, please contact the sender immediately.<br>
<br>
Be aware that Meggitt may monitor incoming and outgoing e-mails to ensure compliance with the Meggitt IT Use policy.<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--------------------------------</div><div>Maxim Gammer<br></div><div>+79199510073</div></div></div>
</div>