cache not being set up via earth file

classic Classic list List threaded Threaded
6 messages Options
2LR 2LR
Reply | Threaded
Open this post in threaded view
|

cache not being set up via earth file

I'm running with osgEarth 2.10.1 on Windows. When I load my earth file (see below) via osgearth_viewer, I'm seeing that my cache folder is not being created. The viewer loads and renders the data. Just no cache folder is created. This same earth file worked fine in 2.7.0. Has caching changed between versions? Is there something I need to add to my earth file to get this to work in 2.10.1?

<map type="geocentric" version="2">
   
    <options>
     
        <terrain vertical_scale="1"/>

        <cache type="filesystem">
          <path>C:\osgEarthCache</path>
        </cache>
     
    </options>

    <image name="world" driver="gdal">
        <url>F:\wholeearth\bathymetric</url>
        <extensions>tif</extensions>
    </image>

    <elevation name="DTED0" driver="gdal">
      <url>F:\osgEarthTerrainDT0\osgETerrainDT0.tif</url>
    </elevation>

</map>
2LR 2LR
Reply | Threaded
Open this post in threaded view
|

Re: cache not being set up via earth file

Just a follow-up to my original post...

I cleaned my build and also removed any dependencies related to osgEarth 2.7 along with osgEarth itself. I then started from scratch and rebuilt osgEarth 2.10.1 with its dependencies as before.

Now it appears to be working and creating the cache folder as expected. I can only conclude that some of the old dependencies related to osgEarth 2.7 crept into the build for osgEarth 2.10.1 somehow and messed things up. It appears to be working now.

I'm still getting the "Fontconfig error" with osgEarth 2.10.1 when I run osgearth_viewer but it doesn't appear to be a problem at the moment with execution...
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: cache not being set up via earth file

Glad you got it working.

As long as you are upgrading, consider moving to 3.0. It is in the "release candidate" stage right now but will soon become an official release!
Glenn Waldron / Pelican Mapping
2LR 2LR
Reply | Threaded
Open this post in threaded view
|

Re: cache not being set up via earth file

I shall consider it...:)
2LR 2LR
Reply | Threaded
Open this post in threaded view
|

Re: cache not being set up via earth file

In reply to this post by gwaldron
Glenn,

I guess I spoke too soon on the cache problem. The cache folder gets created when I run osgearth_viewer terrain.earth (the earth file above). However when I run my osgEarth application and load the same earth file, the cache folder does NOT get created.

What am I doing wrong? It worked perfect with osgEarth 2.7. Is there something more I need to do in my application to create a cache folder?

I set the OSGEARTH_NOTIFY_LEVEL=INFO and here is the output when I run my application. It looks like it should work but it doesn't. When I compare this output to the one that does work, the only difference is what is shown in bold below.

I'm at a total loss on what is going on...

C:\xTerrainServer\bin>xTerrainServer OSGEARTH
Fontconfig error: Cannot load default config file
Error reading file C:\Windows\Fonts\arial.ttf: file not handled
[osgEarth]  [FileSystemCache] Opened a filesystem cache at "C:\osgEarthCache"
[osgEarth]  [Map] cache=FileSystemCache; policy=read-write; bin=no
[osgEarth]  [TerrainLayer] Layer "DTED0" Creating "gdal" driver
[osgEarth]  [TerrainLayer] Layer "DTED0" Cache bin is [df753f15]
[osgEarth]  [GDAL driver] Identified 1 files:
[osgEarth]  [GDAL driver] F:\osgEarthTerrainDT0\osgETerrainDT0.tif
[osgEarth]  [GDAL driver] Resolution= 0.020232x0.00833333 max=0.00833333
[osgEarth]  [GDAL driver] Tile size = 256
[osgEarth]  [GDAL driver] F:\osgEarthTerrainDT0\osgETerrainDT0.tif max Data Level: 7
[osgEarth]  [TerrainLayer] Layer "DTED0" Profile=[srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "DTED0" cache=FileSystemCache; policy=read-write; bin=yes
[osgEarth]  [TerrainLayer] Layer "DTED1" Creating "gdal" driver
[osgEarth]  [TerrainLayer] Layer "DTED1" Cache bin is [7dc159dc]
[osgEarth]  [GDAL driver] Identified 1 files:
[osgEarth]  [GDAL driver] F:\osgEarthTerrainDT1\osgETerrainDT1.tif
[osgEarth]  [GDAL driver] Resolution= 0.00097622x0.000833333 max=0.000833333
[osgEarth]  [GDAL driver] Tile size = 256
[osgEarth]  [GDAL driver] F:\osgEarthTerrainDT1 max Data Level: 10
[osgEarth]  [TerrainLayer] Layer "DTED1" Profile=[srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "DTED1" cache=FileSystemCache; policy=read-write; bin=yes
[osgEarth]  [engine_rex] Activated!
[osgEarth]  [Capabilities] osgEarth Version: 2.10.1
[osgEarth]  [Capabilities] OSG Version:      3.6.4
[osgEarth]  [Capabilities] GDAL Version:     2.4.1
[osgEarth]  [Capabilities] Detected hardware capabilities:
[osgEarth]  [Capabilities]   Vendor = Intel
[osgEarth]  [Capabilities]   Renderer = Intel(R) HD Graphics 520
[osgEarth]  [Capabilities]   Version = 4.4.0 - Build 21.20.16.4542
[osgEarth]  [Capabilities]   Core Profile = no
[osgEarth]  [Capabilities]   Max GPU texture units = 32
[osgEarth]  [Capabilities]   Max GPU texture coord indices = 8
[osgEarth]  [Capabilities]   Max GPU attributes = 16
[osgEarth]  [Capabilities]   Depth buffer bits = 24
[osgEarth]  [Capabilities]   Max texture size = 16384
[osgEarth]  [Capabilities]   GLSL = yes
[osgEarth]  [Capabilities]   GLSL Version = 440
[osgEarth]  [Capabilities]   Texture arrays = yes
[osgEarth]  [Capabilities]   draw instanced = yes
[osgEarth]  [Capabilities]   Texture buffers = yes
[osgEarth]  [Capabilities]   Texture buffer max size = 134217728
[osgEarth]  [Capabilities]   Compression = ARB S3
[osgEarth]  [Map] Map profile is: [srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [PagerLoader] Merges per frame = 20
[osgEarth]  [TerrainResources] Texture unit 0 reserved for Terrain Color
[osgEarth]  [TerrainResources] Texture unit 1 reserved for Terrain Elevation
[osgEarth]  [TerrainResources] Texture unit 2 reserved for Terrain Normals
[osgEarth]  [TerrainResources] Texture unit 3 reserved for Terrain Parent Color
2LR 2LR
Reply | Threaded
Open this post in threaded view
|

Re: cache not being set up via earth file

In reply to this post by gwaldron
Well...after trying everything I can think of to get osgEarth 2.10.1 to create and use a cache folder, I've just decided to go back to osgEarth 2.7. At least I know that works for me...

Shayne