Labels missing - iOS - osgEarth 2.9

classic Classic list List threaded Threaded
2 messages Options
lhussonn lhussonn
Reply | Threaded
Open this post in threaded view
|

Labels missing - iOS - osgEarth 2.9

Hello,

I have tested the iOS viewer using osg 3.4.1 (compiled with gles 3.0 and 2.0) and osgEarth 2.9.
But annotation labels do not appear. (tested with annotation.earth)

I figure out that removing the line below in AnnotationUtils.cpp (AnnotationUtils::createTextDrawable) solve this issue and labels come back :

    // OSG 3.4.1+ adds a program, so we remove it since we're using VPs.
    t->setStateSet(0L);


I'm not sure about it, but does this comment states that is valid for osg version strictly above 3.4.1 or is there any know issue with iOS ?

For now a simple patch is used but perhaps there is a better solution or explanation about this.

Thanks.
Ludovic Hussonnois / Sogeti High Tech
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Labels missing - iOS - osgEarth 2.9

Ludovic,

I think you are caught in a version situation in which the OSG 3.4 + osgEarth 2.9 + GLES combo doesn't work. I'm glad the workaround works for you, because the only real alternative is to upgrade OSG to 3.6.1 and osgEarth to the master branch. The OSG Text implementation changed dramatically from 3.4 to 3.6 and osgEarth didn't catch up with it until after the release of osgEarth 2.9. GLES (and GL CORE profile in general) support did not get much (if any) attention.
Glenn Waldron / Pelican Mapping