-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with clamped polygons on mobile devices #9702
Comments
Yes, apparently it is not very easy to solve. But the community doesn't seem to have a solution or explanation for this yet. A proposal, while this issue is resolved, could make a tool that allows obtaining polygons not clamped from the clamped. I mean if you could create a grid and get the ground points including the height (I have no idea how to do it yet, but I imagine they can be obtained). Then with those points create a substitute Polygon that is not clamped. Of course, this polygon will not have the quality of the original. Cheers |
Yes @moisesrbd, in fact we are facing this problem, in both, polygons and using 3d-tiles with classification. I have tried this sandcastle with a polygon over a tileset. As @rober72hv mentions, while this issue is resolved, it is possible to implement a custom clampToGround solution for polygons, but we have no idea how to solve or create something like 3d-tiles with classification. Cheers |
One thing to try is to switch to a WebGL 2 context.
The clamping implementation works best when If that doesn't help it may be a harder problem related to fragment shader precision issues for some mobile devices. |
Thanks @lilleyse I will test this option and get back to you with results. |
I did a group of tests using the option suggested by @lilleyse , the results are:
It would be interesting to know how to detect if the browser supports this context. |
New updates.
3D tiles and CZML entities that have opacity less than 1 are not shown on mobile devices with Android 10. See sandcastle Best regards |
Tested using CesiumJS 1.84. Using Android and Firefox
Not using requestWebgl2: true
|
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
Sandcastle examples:
Original Sandcastle
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
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:
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
The text was updated successfully, but these errors were encountered: