Problems with clamped polygons on mobile devices
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
Based on several posts that have been generated during the last few months and carrying out new tests with various mobile devices on Android, we have detected a problem with the polygons campled to ground over 3D tiles or Terrain. Polygons don't draw well when viewed on mobile devices.
When approaching (close) you can notice that areas of the polygon disappear.
More details can be seen in @tonycedeno post
[https://community.cesium.com/t/problems-with-clamped-polygons-on-mobile-devices/14627](https://community.cesium.com/t/problems-with-clamped-polygons-on-mobile-devices/14627)
Sandcastle examples:
[Original Sandcastle](https://sandcastle.cesium.com/?src=Clamp%20to%20Terrain.html)
In the following link from sandcastle you can see that when zoom-in near the polygon “Draw Polygon” option also has this erratic behavior
You can see this behavior on this Story hosted in Cesium ION:
[Story](https://cesium.com/ion/stories/viewer/?id=543fab97-f74d-42eb-9368-f772dd50340b)
**Related issues already closed:**
Some posts that could be related and that are closed: #7273 #8953 #6735
On the other hand I have noticed that using 3d-tiles with classification have a similar behavior.
**Browser:** Google Chrome
Operating System: Android 10
**Devices tested:**
- Samsung S20+
- Samsung S20 Ultra
- Huawei P20 Lite
- Samsung Galaxy Tab
**CesiumJS** version 1.83
Any type of help that you can offer us to solve this issue will be very helpful since the functionality of showing clamped to ground entities is one of the main ones to visualize on mobile phones.
Best
Moses
Contributor guide
Research direction
Start by reproducing the disappearing polygon behavior in the linked Clamp to Terrain Sandcastle example on the listed Android devices and Chrome. Compare the behavior with the linked Cesium Community post, Cesium ION story, and related issues #7273, #8953, and #6735; done means clamped polygons remain fully visible when viewed close to the ground on mobile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100