CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.62k stars 3.42k forks source link

Large Polyline width causes crazy behavior and artifacts #4224

Open mramato opened 8 years ago

mramato commented 8 years ago

Just run the below code and rotate the camera to look down the line along the horizon.

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

var redLine = viewer.entities.add({
    polyline : {
        positions : Cesium.Cartesian3.fromDegreesArray([-75, 35,
                                                        -125, 35]),
        width : 50,
        material : Cesium.Color.RED
    }
});

viewer.zoomTo(viewer.entities);

The artifacts are even visible at 10, but incredibly obvious at 50 and flat out wrong at 200.

Here's a snap with alpha

image

pjcozzi commented 8 years ago

Example animation:

ok

hpinkos commented 3 years ago

Also reported in https://github.com/CesiumGS/cesium/issues/9315