查看: 3577|回复: 2

osgearth_cache

[复制链接]

该用户从未签到

发表于 2013-11-27 11:49:20 | 显示全部楼层 |阅读模式
大家好,我用tests中的例子ocean.earth先生成缓存为何总是写不进去,可能问题有哪些,请指点一下,
例子ocean.earth文件,
<!--
osgEarth Sample - ReadyMap.ORG Server - http://readymap.org

ReadyMap.ORG provides free global base map data for osgEarth developers!
This tiled, worldwide dataset of imagery, elevation, and street map data
is a great base map that provides global context for your own local datasets.
It works "out of the box" with osgEarth applications.

**** NOTICE ****
YOU ARE RESPONSIBLE for abiding by the TERMS AND CONDITIONS outlined at:
http://readymap.org

-->
<map name="readymap.org" type="geocentric" version="2">

    <image name="ReadyMap.org - Imagery" driver="tms">
        <url>http://readymap.org/readymap/tiles/1.0.0/7/</url>
    </image>

    <image name="ReadyMap.org - Street Map" driver="tms">
        <url>http://readymap.org/readymap/tiles/1.0.0/35/</url>
    </image>
        
    <elevation name="ReadyMap.org - Elevation" driver="tms">
        <url>http://readymap.org/readymap/tiles/1.0.0/9/</url>
    </elevation>
   
    <options>
        <terrain>
            <lighting>false</lighting>
            <sample_ratio>0.125</sample_ratio>
        </terrain>
        
        <cache driver="filesystem">
            <path>osgearth_cache</path>
        </cache>
    </options>
   
    <external>
        <sky/>
        
        <!-- Ocean parameters. -->
        <ocean>
        
            <!-- Surface texture to use -->
            <texture_url>../data/watersurface1.png</texture_url>
            
            <!-- Masking layer to use (optional...without a masking layer, osgEarth will sample the
                 terrain elevation data to determine where the ocean is.
            <mask_layer driver="tms">
                <url>http://readymap.org/readymap/tiles/1.0.0/2/</url>
            </mask_layer>
            -->
            
            <!-- surface color (before texturing) -->
            <base_color>#334f7fbf</base_color>
        </ocean>
        
        <viewpoint name="Los Angeles" heading="35.27" height="97.48" lat="34.051" long="-117.974" pitch="-17" range="136405"/>
    </external>
</map>
现象如下:
未命名.jpg

该用户从未签到

 楼主| 发表于 2013-11-29 16:40:14 | 显示全部楼层
解决了,原来缺少proj插件

该用户从未签到

发表于 2015-9-1 08:53:21 | 显示全部楼层
本帖最后由 flylong0204 于 2015-9-1 09:02 编辑

我也遇到同样的问题,但不知如何解决。我修改的是波士顿的earth文件,不知道如何将cache文件夹内容与earth文件的cache内容绑定起来,求指导?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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