Earth 2.10 vs Earth 3.0 arcgisonline

classic Classic list List threaded Threaded
5 messages Options
DC DC
Reply | Threaded
Open this post in threaded view
|

Earth 2.10 vs Earth 3.0 arcgisonline

Hello

I've attached a screenshot when running osgEarth 2.10 (with osg340) vs. osgEarth 3.0 (with osg365) arcgisonline.earth. You can see in the screenshot that osgEarth 3.0 is pixelated.

osgEarth 3.0 and OSG 3.6.5 are compiled using OpenGL core profile.
osgEarth 2.10 and OSG 3.4.0 are not using OpenGL core profile.

Any ideas on what may cause this?

Thanks
DC

DC DC
Reply | Threaded
Open this post in threaded view
|

Re: Earth 2.10 vs Earth 3.0 arcgisonline

To add, CodeXL shows both versions having texture min/mag filtering as LINEAR and LINEAR_MIPMAP_LINEAR.
DC DC
Reply | Threaded
Open this post in threaded view
|

Re: Earth 2.10 vs Earth 3.0 arcgisonline

GeoData.cpp
function : reproject

    osgEarth3.0
    bool isNormalized = getImage()->getDataType() != GL_UNSIGNED_BYTE;

    osgEarth2.10
    bool isNormalized = ImageUtils::isNormalized(getImage());

    In osgEarth2.10, this evaluates to true. In osgEarth3.0, this evaluates to false.

    If this is true, bilinear filtering is applied to the manual reprojection, which is done in osgEarth2.10 but not happening in osgEarth3.0. This is causing the pixelation shown in the above screenshot.

DC
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Earth 2.10 vs Earth 3.0 arcgisonline

Great find. This is a vestige of an old deprecated feature. I will clean this up and push a fix!
Glenn Waldron / Pelican Mapping
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Earth 2.10 vs Earth 3.0 arcgisonline

Pushed the master.

Jason says we owe you a beer.
Glenn Waldron / Pelican Mapping