qhl
November 15, 2024, 12:29pm
1
When add two imagelayer(RasterOverlayComponent),one imagelayer’s MaterialLayerkey is Overlay0, the other’s MaterialLayerKey is Overlay1, CartographicPolygon Clipping cause terraintile rendering abnormal;But if only add one imagelayer(RasterOverlayComponent), after CartographicPolygon Clipping, terraintile rendering is normal. I think this is a bug, How Can Fix it?
janine
November 18, 2024, 4:20pm
2
Hi @qhl , welcome to the community!
Thank you for the bug report. I wonder if this is similar to a post from another user:
Dear Cesium Team,
We are currently using Cesium version 2.6, and everything was running smoothly. However, after upgrading to version 2.10, we encountered some unexpected issues. The specific behavior is as follows:
When we added a WMS RasterOverlay to a CesiumWorldTerrain, everything worked fine.
However, after adding a CesiumPolygonRasterOverlay to the CesiumWorldTerrain, the texture rendering for the previously added WMS RasterOverlay became incorrect.
If we remove the CesiumPolygonRasterO…
Can you please confirm the version of Cesium for Unreal you’re using? It’ll help to have this so we can confirm if they’re the same bug. In any case, I’ve opened a Github issue below so that we can track this problem.
opened 04:19PM - 18 Nov 24 UTC
bug
Reported on the forum here:
- https://community.cesium.com/t/cartographicpolygo… n-clipping-cause-terraintile-rendering-abnormal/36628
- https://community.cesium.com/t/cesiumworldterrain-with-multi-rasteroverlays-rendering-error/36636
I was able to reproduce this myself in UE 5.3, v2.10.0 by doing the following:
- In CesiumForUnrealSamples, go to 02_CesiumMelbourne.
- Add the WMS overlay from this [Sandcastle](https://sandcastle.cesium.com/?src=Web%20Map%20Service%20(WMS).html) to Cesium World Terrain, with key Overlay1.
- Zoom out and go to an area where the WMS is showing (over some of the blue dots). Rebase the georeference origin for convenience.
- Add a Cartographic Polygon over the area rendering the WMS. Then add it to a Polygon Raster Overlay on Cesium World Terrain.
You'll see some weird glitchy artifacts in the area affected by the polygon. When you remove the WMS, the artifacts won't disappear right away, but you can refresh and the clipping will appear as normal.
![image](https://github.com/user-attachments/assets/386de257-d627-4114-bef3-8c6e0aa04ef5)
For curiosity's sake, I tried it the other way around, by adding the WMS after the polygon overlay. The polygon clipping works, but the WMS shows up as this blocky blue gradient over a lot of the tiles. 🤔
![image](https://github.com/user-attachments/assets/4d47aa13-df6c-42fe-b72b-97b7df296d47)
I have not tested this, but this reportedly happens as far back as v2.8.0. The behavior works as expected in v2.6.0. It might be prudent to check if this happens with v2.7.0 -- that release introduces some CesiumPolygonRasterOverlay bugfixes, as well as custom ellipsoids.
qhl
November 19, 2024, 6:10am
4
Hi @janine , we are currently upgrading to Cesium version 2.10。Looking forward to your next reply, thanks!
janine
November 21, 2024, 3:57pm
5
Hi @qhl , we just opened a pull request that should fix this problem!
CesiumGS:main
← CesiumGS:fix-raster-overlay-ub
opened 10:33AM - 20 Nov 24 UTC
This is a PR into #1552 so merge that first.
This depends on CesiumGS/cesium-na… tive#1003 so merge that first, too.
Fixes #1551
If you want to try out the fix, you can find instructions for installing a pre-release version here:
# Using Pre-Release Packages
Cesium for Unreal has a continous integration (CI) system that automatically builds an installable version of the plugin for every commit in every branch. You can download and install these yourself to try out new features before they're released.
_Before you begin, **back up your project**. Cesium for Unreal can not guarantee that levels saved with a pre-release version will be loadable in other versions of the plugin._
* [Download a pre-release version from a Pull Request](#download-a-pre-release-version-from-a-pull-request)
* [Download a pre-release version from a Branch or Commit](#download-a-pre-release-version-from-a-branch-or-commit)
## Download a pre-release version from a Pull Request
To download a pre-release version built from a pull request, click the "Checks" tab at the top of the pull request:
<img width="601" alt="image" src="https://github.com/CesiumGS/cesium-unreal/assets/130494071/ff3bd8fd-3990-4f4c-93b2-7127fee1633b">
Then click the "Cesium for Unreal on: push" link:
<img width="320" alt="image" src="https://github.com/CesiumGS/cesium-unreal/assets/130494071/a75fa7bf-bb2b-4fa7-ada7-7d1a894817be">
And scroll down to the Artifacts section:
This file has been truncated. show original
Otherwise, you can wait for next month’s official release to try it out. Thanks!