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

2D/Columbus-view artifact with extent geometries at the pole #1297

Open
pjcozzi opened this issue Nov 15, 2013 · 1 comment
Open

2D/Columbus-view artifact with extent geometries at the pole #1297

pjcozzi opened this issue Nov 15, 2013 · 1 comment

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Nov 15, 2013

From https://groups.google.com/forum/#!forum/cesium-dev

In the Geometry and Appearances Sandcastle example, replace Line 119 with

extent = Cesium.Extent.fromDegrees(-180.0, 45.0, -160.0, 90.0);

Given that 90.0 is at the pole, we get artifacts in 2D and columbus view.

3D:

image

2D:

image

Using 89.99 instead of 90.0 does not cause artifacts.

Perhaps the geometry is optimizing for this in 3D and not introducing a northern row. If that's the case, we can pass an allow3DOnly option that defaults to false.

@hpinkos
Copy link
Contributor

hpinkos commented Oct 14, 2015

var viewer = new Cesium.Viewer('cesiumContainer', {
    sceneMode: Cesium.SceneMode.SCENE2D
});
viewer.entities.add({
    rectangle : {
        coordinates : Cesium.Rectangle.fromDegrees(-180.0, 45.0, -160.0, 90.0),
        outline : true,
        outlineColor : Cesium.Color.WHITE,
        material : Cesium.Color.BLUE,
        height : 0.0
    }
});

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

No branches or pull requests

2 participants