Quantcast

GeometryClamper Issue

classic Classic list List threaded Threaded
2 messages Options
jiangjj jiangjj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GeometryClamper Issue

Hi Community,
    I find on osgEarth 2.8, the GeometryClamper has a problem, I change the code, screenshot as below:



    code as blow:
                    // if we need to build to z-offsets array, calculate the z offset now:
                    if ( buildZOffsets || _scale != 1.0 )
                    {
                        double lat,lon,hae;
                        em->convertXYZToLatLongHeight(vw.x(), vw.y(), vw.z(), lat, lon, hae);

                        if ( buildZOffsets )
                        {
                            //edit by jiangjj
                            //zOffsets->push_back( (*verts)[k].z() );
                            zOffsets->push_back( float(hae) );

                        }

                        if ( _scale != 1.0 )
                        {
                            msl = vw - n_vector*hae;
                        }
                    }

   If I do not modify this code, ImageOverlay show incorrect, like this:


  Thanks as always,
   yili
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GeometryClamper Issue

yili,

Thanks for the fix; I have pushed it to the master branch.
Glenn Waldron / Pelican Mapping / @glennwaldron
Loading...