Skip to content
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

GroundPolygons not visible on iOS when too small #7169

Closed
xtassin opened this issue Oct 19, 2018 · 1 comment
Closed

GroundPolygons not visible on iOS when too small #7169

xtassin opened this issue Oct 19, 2018 · 1 comment

Comments

@xtassin
Copy link
Contributor

xtassin commented Oct 19, 2018

Polygons entities are not visible on iOS (iPad2 + Safari) when smaller than a certain threshold (around 1 deg of lat/lon)

var viewer = new Cesium.Viewer('cesiumContainer');

var visiblePolygon = [1.0, 45.0,
                      1.0, 43.0,
                      3.0, 43.0,
                      3.0, 45.0];

var invisiblePolygon = [1, 44.0,
                        1, 43.0,
                        2, 43.0,
                        2, 44.0];

viewer.entities.add({
    polygon : {
        hierarchy: new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(invisiblePolygon)),
        material: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
    }
});


viewer.zoomTo(viewer.entities);
@likangning93
Copy link
Contributor

Hi @xtassin, this is the same problem as #6739, so I'm going to close this as duplicate. Thanks for the heads up though, more reasons to take another look at this soon.

The gist is that floating point textures on iOS devices behave differently than on desktop, although behavior also varies between Nvidia and Intel. In the worst case we can detect iOS and shut off the ground polygon optimizations that depend on floating point textures, but hopefully something can still be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants