osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

REX terrain engine performance and rendering issue

Open farz4d opened this issue 2 years ago • 2 comments

As you can see in the picture there are more than 6000 network requests for this viewpoint. This map consists of two local layers, 1 imagery and 1 elevation layer. Most of network requests belong to elevation layer. It takes 3 minutes to complete all requests! Also at bottom-left corner there are some cracks in terrain (blue areas).

The same scenario loads very fast (under 5 seconds) in version 2.9 using MP terrain engine without visual artifacts.

System Specs: Ubuntu 18.04 LTS - NVIDIA GTX 1060 Driver 460.80 - CPU Intel Core i7 4790

Screenshot_20210717_130151

farz4d avatar Jul 17 '21 08:07 farz4d

Please include an earth file with a Viewpoint. Thanks.

gwaldron avatar Jul 19 '21 13:07 gwaldron

Earth file and related maps are attached. 3 map layers included. One imagery and two elevation layers. Both elevation layers use the same data in TIF file. TMS elevation layer is generated in this way:

osgearth_conv --extents 42 46 43 47 --in driver gdal --in interpolation bilinear --in N042E046_AVE_DSM.tif --out driver tms --out url elv/tms.xml --out format tif --elevation

TMS elevation data loads slowly and does lots of network requests compared to osgEarth 2.9 using MP engine.

I've found out that visual artifacts are related to morph_terrain="false" terrain option, if i enable this options there are no more cracks in terrain after all tiles are generated, but they still exist during tile generation. MP engine doesn't have this issue.

data.zip

farz4d avatar Jul 25 '21 11:07 farz4d