mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-28 06:24:10 +01:00
update OSG and OSGEarth
This commit is contained in:
parent
bc18da54de
commit
35e84b704d
@ -160,11 +160,7 @@ win32:osg {
|
||||
win32:osgearth {
|
||||
# osgearth libraries
|
||||
OSGEARTH_LIBS = \
|
||||
libosgEarth$${DS}.dll \
|
||||
libosgEarthAnnotation$${DS}.dll \
|
||||
libosgEarthFeatures$${DS}.dll \
|
||||
libosgEarthSymbology$${DS}.dll \
|
||||
libosgEarthUtil$${DS}.dll
|
||||
libosgEarth$${DS}.dll
|
||||
|
||||
# loaded dynamically (probably by an osg plugin, need to find by which)
|
||||
OSGEARTH_LIBS += \
|
||||
@ -181,11 +177,8 @@ win32:osgearth {
|
||||
# osgearth plugins
|
||||
OSGEARTH_PLUGINS += \
|
||||
mingw_osgdb_earth$${DS}.dll \
|
||||
mingw_osgdb_osgearth_arcgis$${DS}.dll \
|
||||
mingw_osgdb_osgearth_engine_mp$${DS}.dll \
|
||||
mingw_osgdb_osgearth_engine_rex$${DS}.dll \
|
||||
mingw_osgdb_osgearth_sky_simple$${DS}.dll \
|
||||
mingw_osgdb_osgearth_tms$${DS}.dll \
|
||||
mingw_osgdb_osgearth_xyz$${DS}.dll \
|
||||
mingw_osgdb_osgearth_cache_filesystem$${DS}.dll
|
||||
|
||||
# more osgearth plugins
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <osg/Node>
|
||||
|
||||
#ifdef USE_OSGEARTH
|
||||
#include <osgEarthUtil/LogarithmicDepthBuffer>
|
||||
#include <osgEarth/LogarithmicDepthBuffer>
|
||||
#endif
|
||||
|
||||
#include <QDebug>
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <osgEarth/Config>
|
||||
#include <osgEarth/DateTime>
|
||||
#include <osgEarth/MapNode>
|
||||
#include <osgEarthUtil/Sky>
|
||||
#include <osgEarth/Sky>
|
||||
|
||||
// #include <osgEarthDrivers/sky_silverlining/SilverLiningOptions>
|
||||
|
||||
@ -49,7 +49,7 @@ struct OSGSkyNode::Hidden : public QObject {
|
||||
private:
|
||||
OSGSkyNode * const self;
|
||||
|
||||
osg::ref_ptr<osgEarth::Util::SkyNode> skyNode;
|
||||
osg::ref_ptr<osgEarth::SkyNode> skyNode;
|
||||
|
||||
public:
|
||||
OSGNode *sceneNode;
|
||||
@ -102,7 +102,7 @@ public:
|
||||
self->setNode(NULL);
|
||||
return;
|
||||
}
|
||||
if (!mapNode->getMap()->isGeocentric()) {
|
||||
if (!mapNode->isGeocentric()) {
|
||||
qWarning() << "OSGSkyNode::updateScene - map node is not geocentric";
|
||||
self->setNode(NULL);
|
||||
return;
|
||||
@ -128,9 +128,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
osgEarth::Util::SkyNode *createSimpleSky(osgEarth::MapNode *mapNode)
|
||||
osgEarth::SkyNode *createSimpleSky(osgEarth::MapNode *mapNode)
|
||||
{
|
||||
return osgEarth::Util::SkyNode::create(mapNode);
|
||||
return osgEarth::SkyNode::create(/*mapNode*/);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -196,7 +196,7 @@ public:
|
||||
}
|
||||
double d = minimumAmbientLight;
|
||||
// skyNode->getSunLight()->setAmbient(osg::Vec4(d, d, d, 1.0f));
|
||||
skyNode->setMinimumAmbient(osg::Vec4(d, d, d, 1.0f));
|
||||
//skyNode->setMinimumAmbient(osg::Vec4(d, d, d, 1.0f));
|
||||
}
|
||||
|
||||
void attachSkyNode(osgViewer::View *view)
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#include "../OSGNode.hpp"
|
||||
|
||||
#include <osgEarthUtil/EarthManipulator>
|
||||
#include <osgEarth/EarthManipulator>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
@ -43,12 +43,12 @@ osgearth {
|
||||
linux|macx {
|
||||
INCLUDEPATH += $$OSGEARTH_SDK_DIR/include
|
||||
LIBS += -L$$OSGEARTH_SDK_DIR/$$LIB_DIR_NAME
|
||||
LIBS += -losgEarth -losgEarthUtil -losgEarthFeatures -losgEarthSymbology -losgEarthAnnotation
|
||||
LIBS += -losgEarth
|
||||
osgearthQt:LIBS += -losgEarthQt
|
||||
}
|
||||
|
||||
win32 {
|
||||
LIBS += -losgEarth$${DS} -losgEarthUtil$${DS} -losgEarthFeatures$${DS} -losgEarthSymbology$${DS} -losgEarthAnnotation$${DS}
|
||||
LIBS += -losgEarth$${DS}
|
||||
osgearthQt:LIBS += -losgEarthQt$${DS}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user