TMS + WMS raster overlay overlapping is flikering

Hello.

I found that TMS(Cesium Tile Map Service Raster Overlay) + WMS(Cesium Web Map Service Raster Overlay) overlapping is flikering by camera distance.

I also read the article below. I checked Cesium Ion Raster Overlay + WMS is working fine on Cesium Unity latest (v1.1.0)

I wonder if there is any option for it i missed or this is a bug

ScreenRecorderProject16

reproduce issue step. (with Unity 2021.3.10f1)

    1. git clone cesium-unity-samples repo. check out with main branch. (tag: v1.1.0)
    1. open the project, open 02_CesiumMelbourne scene.
    1. remove Cesium Ion Raster Overlay component in Cesium World Terrain object.
    1. add Cesium Tile Map Service Raster Overlay component.
    1. add Cesium Web Map Service Raster Overlay component.
    1. git clone cesium-google-earth-examples repo.
    1. paste local TMS url in Cesium Tile Map Service Raster Overlay component (from cesium-google-earth-examples repo) : D:/cesium-google-earth-examples/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml
    1. paste WMS url in Cesium Web Map Service Raster Overlay component : http://geoserver.nationalmap.nicta.com.au/geotopo_250k/ows
    1. paste Layers in Cesium Web Map Service Raster Overlay component : Hydrography:bores

note that if you use online TMS url there is no difference. I used local tms files for testing this without network delay.

I checked terrain tile material when this trouble happened, overlay0Texture is missing.

so I tried to understand with Cesium Native and Cesium Unity code, I havenā€™t got no clue for this.

somebody help please~

Thanks for the detailed writeup! I was able to reproduce the problem and confirm itā€™s a bug. Iā€™ve opened a pull request with a fix here:

1 Like

@Kevin_Ring Thank you!

I tested your fix. this trouble is solved!

by the way I have 2 questions.

I read code in CesiumShaderProperties.cpp there are _overlay0 ~3 Texture set to Shader. so I expect that WMS or TMS overlay can be 4 layer overlapping maximum. Am I right?

and Cesium Ion Raster Overlay is using Bing Map. I wonder networking is whether TMS or not. I didnā€™t understand exactly.

Yes, thatā€™s right.

and Cesium Ion Raster Overlay is using Bing Map. I wonder networking is whether TMS or not. I didnā€™t understand exactly.

Sorry I donā€™t understand what youā€™re asking here.

Sorry I donā€™t understand what youā€™re asking here.

Never mind! Thanks!