Quantcast

about sky extension

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

about sky extension

i want to danamic add/remove sky effect

void Map3DOptions::on_checkSky_stateChanged(int state)
{
        if(m_sky == 0){
                m_sky = osgEarth::Extension::create("sky_simple", ConfigOptions());
        }
        if(state == Qt::Checked){
                global->getMapNode()->addExtension(m_sky);
        }else if(state == Qt::Unchecked){
                global->getMapNode()->removeExtension(m_sky);
        }
}
but removeExtension not remove sky effect
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: about sky extension

That is because the SimpleSkyExtension::disconnect method is unimplemented. Please submit a github issue for this; thanks!
Glenn Waldron / Pelican Mapping
qing qing
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: about sky extension

In reply to this post by qing
thanks,how to commit issues in github
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: about sky extension

Go here
https://github.com/gwaldron/osgearth/issues

and click New Issue.
Glenn Waldron / Pelican Mapping
qing qing
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: about sky extension

In reply to this post by qing
ok, i had submit
Loading...