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 Polygon rendering artifacts near a pole #748

Closed
bagnell opened this issue May 7, 2013 · 3 comments
Closed

2D Polygon rendering artifacts near a pole #748

bagnell opened this issue May 7, 2013 · 3 comments

Comments

@bagnell
Copy link
Contributor

bagnell commented May 7, 2013

image

Here is a code sample to see the issue:

    var polygon = new Cesium.Polygon();
    polygon.affectedByLighting = false;
    polygon.setPositions(ellipsoid.cartographicArrayToCartesianArray([
        Cesium.Cartographic.fromDegrees(-42.75,65.6249),
        Cesium.Cartographic.fromDegrees(-58.7498,64.3139),
        Cesium.Cartographic.fromDegrees(-71.5318,60.7427),
        Cesium.Cartographic.fromDegrees(-80.3024,55.6384),
        Cesium.Cartographic.fromDegrees(-85.8009,49.6215),
        Cesium.Cartographic.fromDegrees(-88.9521,43.0974),
        Cesium.Cartographic.fromDegrees(-90.4365,36.317),
        Cesium.Cartographic.fromDegrees(-90.6873,29.4448),
        Cesium.Cartographic.fromDegrees(-89.9653,22.6),
        Cesium.Cartographic.fromDegrees(-88.4185,15.8811),
        Cesium.Cartographic.fromDegrees(-86.1224,9.3805),
        Cesium.Cartographic.fromDegrees(-83.1049,3.193),
        Cesium.Cartographic.fromDegrees(-79.365,-2.5773),
        Cesium.Cartographic.fromDegrees(-74.8895,-7.8139),
        Cesium.Cartographic.fromDegrees(-69.6722,-12.386),
        Cesium.Cartographic.fromDegrees(-63.7362,-16.1532),
        Cesium.Cartographic.fromDegrees(-57.1585,-18.9746),
        Cesium.Cartographic.fromDegrees(-50.0889,-20.7259),
        Cesium.Cartographic.fromDegrees(-42.75,-21.3201),
        Cesium.Cartographic.fromDegrees(-35.4111,-20.7259),
        Cesium.Cartographic.fromDegrees(-28.3415,-18.9746),
        Cesium.Cartographic.fromDegrees(-21.7638,-16.1532),
        Cesium.Cartographic.fromDegrees(-15.8278,-12.386),
        Cesium.Cartographic.fromDegrees(-10.6105,-7.8139),
        Cesium.Cartographic.fromDegrees(-6.135,-2.5773),
        Cesium.Cartographic.fromDegrees(-2.3951,3.193),
        Cesium.Cartographic.fromDegrees(0.6224,9.3805),
        Cesium.Cartographic.fromDegrees(2.9185,15.8811),
        Cesium.Cartographic.fromDegrees(4.4653,22.6),
        Cesium.Cartographic.fromDegrees(5.1873,29.4448),
        Cesium.Cartographic.fromDegrees(4.9365,36.317),
        Cesium.Cartographic.fromDegrees(3.4521,43.0974),
        Cesium.Cartographic.fromDegrees(0.3009,49.6215),
        Cesium.Cartographic.fromDegrees(-5.1976,55.6384),
        Cesium.Cartographic.fromDegrees(-13.9682,60.7427),
        Cesium.Cartographic.fromDegrees(-26.7502,64.3139)
    ]));
    primitives.add(polygon);
@bagnell
Copy link
Contributor Author

bagnell commented Jul 15, 2013

@mramato @pjcozzi I think this was fixed by the new geometry batching. Can one of you also test this?

@mramato
Copy link
Contributor

mramato commented Jul 15, 2013

Yep.

@mramato mramato closed this as completed Jul 15, 2013
@mramato
Copy link
Contributor

mramato commented Jul 15, 2013

image

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