[Solved] No grass and trees in splat.earth example on master branch

classic Classic list List threaded Threaded
8 messages Options
Nikkitta Nikkitta
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Solved] No grass and trees in splat.earth example on master branch

This post was updated on .
Hi,

I'm experimenting with all the tests (examples) trying to achieve the best possible image by combining all the features in one earth file.

The problem is that splat.earth is not working properly.

1. First of all - I don't know where I'm supposed to download LandCover file mentioned in splat.earth file:
H:/data/esa/GLOBCOVER_L4_200901_200912_V2.3_Ant_tiled.tif
I've googled and found similar file, but still not with the exact name. Here is the file I've found:
GLOBCOVER_L4_200901_200912_V2.3.color.tif
Is it the correct file to use with the example?
I get this result when I start osgearth_viewer:
splat.earth with GLOBCOVER_L4_200901_200912_V2.3.color.tif

2. I've check all the paths in the earth file, even changed all of them to absolute paths. Still, I don't see any trees or grass.
Here is the image from Mt Rainier:
No trees or grass

3. I've set OSGEARTH_NOTIFY_LEVEL to INFO and here is the output (maybe it will somehow help to understand what is the problem):

PS C:\Users\Nikita> osgearth_viewer.exe E:\osg\x64\tests\splat.earth --screen 0 --logdepth --window 50 50 800 600
[osgEarth]  Loading href from E:/OSG/x64/data/land_cover_dictionary.xml
[osgEarth]  Loading href from E:/OSG/x64/data/land_cover_ESA_GLOBCOVER.xml
[osgEarth]  Loading href from E:/OSG/x64/tests/viewpoints.xml
[osgEarth]  [EarthSerializer2] Loaded extension lib "osgPlugins-3.5.6/osgdb_osgearth_viewpoints.dll"
[osgEarth]  [EarthSerializer2] Loaded library "osgEarthSplat.dll"
[osgEarth]  [Map] cache=none; policy=read-write; bin=no
[osgEarth]  [TerrainLayer] Layer "readymap_elevation" Creating "tms" driver
[osgEarth]  [TMSTileSource] TMS tile map datestamp = Thu, 01 Jan 1970 00:00:00 GMT
[osgEarth]  [TerrainLayer] Layer "readymap_elevation" Profile=[srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "readymap_elevation" cache=none; policy=read-write; bin=no
[osgEarth]  [LandCoverDictionary] 11 classes defined.
[osgEarth]  [TerrainLayer] Layer "ESA GLOBCOVER" Creating "gdal" driver
[osgEarth]  [GDAL driver] Identified 1 files:
[osgEarth]  [GDAL driver] E:\osgEarthMaps\LandCover\admin_globcover_2009\GLOBCOVER_L4_200901_200912_V2.3.color.tif
[osgEarth]  [GDAL driver] Resolution= 0.0027777778x0.0027777778 max=0.0027777778
[osgEarth]  [GDAL driver] E:/osgEarthMaps/LandCover/admin_globcover_2009/GLOBCOVER_L4_200901_200912_V2.3.color.tif max Data Level: 8
[osgEarth]  [TerrainLayer] Layer "ESA GLOBCOVER" Profile=[srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "ESA GLOBCOVER" cache=none; policy=no-cache; bin=no
[osgEarth]  [LandCoverLayer] Opened coverage "ESA GLOBCOVER"
[osgEarth]  [TerrainLayer] Layer "LandCover" Profile=[srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[osgEarth]  [TerrainLayer] Layer "LandCover" cache=none; policy=no-cache; bin=no
[osgEarth]  [SplatCatalog] Catalog "Default" contains 12 classes.
[osgEarth]  [GroundCoverLayer] Trees: Land cover layer is "LandCover"
[osgEarth]  [GroundCoverLayer] Grass: Land cover layer is "LandCover"
[osgEarth]  [ViewpointsExtension] Read 8 viewpoints
[osgEarth]  [engine_rex] Activated!
[osgEarth]  [Capabilities] osgEarth Version: 2.9.0 DEVELOPMENT
[osgEarth]  [Capabilities] Detected hardware capabilities:
[osgEarth]  [Capabilities]   Vendor = NVIDIA Corporation
[osgEarth]  [Capabilities]   Renderer = GeForce GTX 580/PCIe/SSE2
[osgEarth]  [Capabilities]   Version = 4.5.0 NVIDIA 382.05
[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]   Max lights = 8
[osgEarth]  [Capabilities]   GLSL = yes
[osgEarth]  [Capabilities]   GLSL Version = 450
[osgEarth]  [Capabilities]   Texture arrays = yes
[osgEarth]  [Capabilities]   3D textures = yes
[osgEarth]  [Capabilities]   Multitexturing = yes
[osgEarth]  [Capabilities]   draw instanced = yes
[osgEarth]  [Capabilities]   uniform buffer objects = yes
[osgEarth]  [Capabilities]   NPOT textures = yes
[osgEarth]  [Capabilities]   Texture buffers = yes
[osgEarth]  [Capabilities]   Texture buffer max size = 134217728
[osgEarth]  [Capabilities]   Transform feedback = yes
[osgEarth]  [Capabilities]   Compression = ARB S3 RG
[osgEarth]  [Map] Map profile is: [srs=WGS 84, min=-180,-90 max=180,90 lod0=2,1 vdatum=geodetic]
[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 Color (Parent)
[osgEarth]  [TerrainResources] Texture unit 4 reserved for LandCover
[osgEarth]  [RexTerrainEngineNode] Shared Layer "LandCover" : sampler="layer_3_tex", matrix="layer_3_tex_matrix", unit=4
[osgEarth]  [DrapingTechnique] Using texture size = 2048
[osgEarth]  [ClampingTechnique] Using texture size = 4096
[osgEarth]  [TerrainResources] Texture unit 5 reserved (on layer Splat Imagery) for Splat texture
[osgEarth]  [TerrainResources] Texture unit 6 reserved (on layer Splat Imagery) for Splatting LUT
[osgEarth]  [TerrainResources] Texture unit 7 reserved (on layer Splat Imagery) for Splat noise sampler
[osgEarth]  [SplatCatalog] Catalog "Default" texture size = 13
[osgEarth]  [TerrainResources] Texture unit 5 reserved (on layer Trees) for Ground cover texture catalog
[osgEarth]  [TerrainResources] Texture unit 6 reserved (on layer Trees) for Ground cover noise sampler
[osgEarth]  [GroundCoverLayer] Trees: Established zone "default" at LOD 13
[osgEarth]  [TerrainResources] Texture unit 5 reserved (on layer Grass) for Ground cover texture catalog
[osgEarth]  [TerrainResources] Texture unit 6 reserved (on layer Grass) for Ground cover noise sampler
[osgEarth]  [GroundCoverLayer] Grass: Established zone "default" at LOD 19
[osgEarth]  [MapNode] Adding ellipsoid uniforms.
[osgEarth]  [MapNode] Added extension "viewpoints"
[osgEarth]  [MapNodeHelper] Activating logarithmic depth buffer (vertex-only) on main camera

P.S.
osgEarth was built from master today, 08.08.2017.
nVidia GeForce GTX 580
Windows 10 x64
Best regards,
Nikita Petrov
Paul Paul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

plevy plevy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

I forget the actual name, but make sure you are using the indexed palette version and not the RGB version.  

On Aug 8, 2017 9:52 PM, "Paul [via osgEarth]" <[hidden email]> wrote:
Hi,
try this site:  http://due.esrin.esa.int/page_globcover.php


If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/No-grass-and-trees-in-splat-earth-example-on-master-branch-tp7591120p7591121.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML

Paul Paul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

In reply to this post by Nikkitta
I don't know if there is an indexed version. I think GLOBCOVER_L4_200901_200912_V2.3_Ant_tiled.tif was actually a subset of the land cover file. I think it was supposed to be Antarctica. I could be wrong.

I'm also having trouble getting splat to work properly.

Paul Paul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

In reply to this post by Nikkitta
Hi, I ran the tif file through gdal and it now works for me.

gdal_translate -of GTiff -co "TILED=NO" GLOBCOVER_L4_200901_200912_V2.3.tif  MYGLOBCOVER-tiled.tif

Hope it helps
Nikkitta Nikkitta
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

Hi, just tried your solution with the file from above link and still the same disappointing result :(
My source file is GLOBCOVER_L4_200901_200912_V2.3.color.tif (392 776 276 bytes).
Best regards,
Nikita Petrov
plevy plevy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

The other Paul is correct, use the first link on the ESA page not the colored tiff:

and then we also did a gdal_translate to tile and then add overviews.  Similar to here:

and the metadata looks like this:

BIT_DEPTH=8
PHOTOMETRIC=Palette-Color
BIT_DEPTH=8
SAMPLE_FORMAT=Unsigned Integer
TILE_WIDTH=256
TILE_HEIGHT=256
COMPRESSION=LZW
OVERVIEW 1=Pixel Size: 64800 x 32401
OVERVIEW 2=Pixel Size: 32400 x 16201
OVERVIEW 3=Pixel Size: 16200 x 8101
OVERVIEW 4=Pixel Size: 8100 x 4051


--
Paul Levy : Pelican Mapping

On Wed, Aug 9, 2017 at 1:39 AM, Nikkitta [via osgEarth] <[hidden email]> wrote:
Hi, just tried your solution with the file from above link and still the same disappointing result :(
My source file is GLOBCOVER_L4_200901_200912_V2.3.color.tif (392 776 276 bytes).
Best regards,
Nikita Petrov



If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/No-grass-and-trees-in-splat-earth-example-on-master-branch-tp7591120p7591126.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML

Nikkitta Nikkitta
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No grass and trees in splat.earth example on master branch

Yes! Finally it's working.
So the problem was in the LandCover file.
Hope that this thread will help beginners to find LandCover files needed to run examples :)

Thanks a lot for your help!
Best regards,
Nikita Petrov
Loading...