osgEarth入门教程08.03:与Qt集成

系列索引:osgEarth入门教程索引

本文介绍如何将osgEarth窗口集成至Qt中。

方法是将simple.earth加载到osg中,通过osgQOpenGLWidget将画面集成至Qt中。

OSG入门教程08.02:与Qt集成代码复制一份。

修改初始化部分代码,两者唯一的区别就是

1
pViewer->setCameraManipulator(new osgEarth::Util::EarthManipulator);

将摄像头从OSG标准改为osgEarth的。

效果为

qt中集成osgEarth


osgEarth入门教程08.03:与Qt集成
https://feater.top/osgearth/embedded-osgearth-in-qt/
作者
JackeyLea
发布于
2024年3月13日
许可协议