查看: 1449|回复: 2

osgEarth加载离线tif白球

[复制链接]

该用户从未签到

发表于 2020-9-17 17:09:04 | 显示全部楼层 |阅读模式
程序打开annotation.earth算例正常,但是使用本地的world.tif就不正常,球白色的

<map name="GlobalImage" type="geocentric" version="2">
        <image name="GlobalImage" driver="gdal">
                <url>world.tif</url>
        </image>
</map>


#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgViewer/api/win32/GraphicsWindowWin32>
#include <osgGA/TrackballManipulator>
#include <osgGA/KeySwitchMatrixManipulator>
#include <osgDB/DatabasePager>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgUtil/Optimizer>
#include <osg/Geode>
#include <osg/Depth>
#include <osgText/Text>
这是包含的头文件,也没有osgEarth,也不知道为什么annotation.earth能出来正常球。。。。汗

该用户从未签到

 楼主| 发表于 2020-9-18 09:18:00 | 显示全部楼层
000.png

该用户从未签到

 楼主| 发表于 2020-9-18 15:13:46 | 显示全部楼层
问题已经找到了,应该就是库的问题,重新编译了一份,感觉还是像gdal200.dll这个东西
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表