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.38k stars 3.38k forks source link

new macbook pro14 render line have big bug #10229

Closed peterjou closed 2 years ago

peterjou commented 2 years ago

When rendering a line on the latest macbook pro14, the line is deformed when the distance between points within the line is less than 1 meter data:[[116,34],[116.00000684927564,34.00000684932836],[116.00001369855238,34.00001369865636],[116.0000205478302,34.00002054798398],[116.00002739710911,34.00002739731123],[116.00003424638915,34.00003424663811],[116.00004109567027,34.00004109596462],[116.00004794495246,34.00004794529077],[116.00005479423577,34.00005479461655],[116.00006164352017,34.00006164394195],[116.00006849280565,34.00006849326698],[116.00007534209225,34.00007534259166],[116.00008219137993,34.00008219191595],[116.00008904066871,34.00008904123988],[116.00009588995859,34.000095890563436],[116.00010273924957,34.000102739886636],[116.00010958854163,34.00010958920945],[116.00011643783479,34.000116438531904],[116.00012328712904,34.00012328785399],[116.00013013642439,34.00013013717571],[116.00013698572086,34.00013698649706],[116.00014383501839,34.000143835818015],[116.00015068431702,34.000150685138635],[116.00015753361674,34.00015753445887],[116.00016438291759,34.000164383778746],[116.00017123221953,34.00017123309824],[116.00017808152253,34.000178082417364],[116.00018493082663,34.00018493173614],[116.00019178013184,34.00019178105452],[116.00019862943816,34.00019863037254],[116.00020547874557,34.0002054796902],[116.00021232805405,34.00021232900748],[116.00021917736365,34.00021917832439],[116.00022602667434,34.00022602764095],[116.00023287598611,34.00023287695712],[116.000239725299,34.00023972627292],[116.00024657461297,34.00024657558836],[116.00025342392803,34.000253424903434],[116.0002602732442,34.000260274218135],[116.00026712256145,34.00026712353246],[116.00027397187982,34.00027397284643],[116.00028082119927,34.000280822160015],[116.00028767051981,34.00028767147324],[116.00029451984146,34.00029452078609],[116.00030136916419,34.00030137009858],[116.000308218488,34.00030821941069],[116.00031506781295,34.000315068722436],[116.00032191713895,34.00032191803381],[116.00032876646608,34.00032876734481],[116.0003356157943,34.00033561665545],[116.0003424651236,34.00034246596573],[116.000349314454,34.00034931527561],[116.00035616378551,34.000356164585156],[116.00036301311808,34.00036301389431],[116.00036986245178,34.00036986320311],[116.00037671178659,34.00037671251153],[116.00038356112246,34.00038356181958],[116.00039041045943,34.00039041112727],[116.00039725979751,34.00039726043458],[116.00040410913667,34.000404109741524],[116.00041095847692,34.000410959048104],[116.00041780781828,34.000417808354314],[116.00042465716072,34.00042465766014],[116.00043150650428,34.00043150696562],[116.00043835584891,34.00043835627071],[116.00044520519467,34.000445205575446],[116.0004520545415,34.00045205487981],[116.00045890388944,34.0004589041838],[116.00046575323844,34.00046575348742],[116.00047260258857,34.000472602790666],[116.0004794519398,34.00047945209356],[116.00048630129211,34.000486301396066],[116.0004931506455,34.000493150698226]] 150711010-7dc87bd1-240c-4473-a2ed-10c543c02a8d 150712357-db7db0e3-6b99-4114-a2d5-6c87d9cdb16b

ggetz commented 2 years ago

Hi @peterjou, could you please provide some additional details? Can you let us know the OS version and browser? Could you also visit this site and give us a screencap of the results?

peterjou commented 2 years ago

image image

peterjou commented 2 years ago

const viewer = new Cesium.Viewer("cesiumContainer");

const redLine = viewer.entities.add({ name: "Red line on terrain", polyline: { positions: Cesium.Cartesian3.fromDegreesArray([116,34,116.00000684927564,34.00000684932836,116.00001369855238,34.00001369865636,116.0000205478302,34.00002054798398,116.00002739710911,34.00002739731123,116.00003424638915,34.00003424663811,116.00004109567027,34.00004109596462,116.00004794495246,34.00004794529077,116.00005479423577,34.00005479461655,116.00006164352017,34.00006164394195,116.00006849280565,34.00006849326698,116.00007534209225,34.00007534259166,116.00008219137993,34.00008219191595,116.00008904066871,34.00008904123988,116.00009588995859,34.000095890563436,116.00010273924957,34.000102739886636,116.00010958854163,34.00010958920945,116.00011643783479,34.000116438531904,116.00012328712904,34.00012328785399,116.00013013642439,34.00013013717571,116.00013698572086,34.00013698649706,116.00014383501839,34.000143835818015,116.00015068431702,34.000150685138635,116.00015753361674,34.00015753445887,116.00016438291759,34.000164383778746,116.00017123221953,34.00017123309824,116.00017808152253,34.000178082417364,116.00018493082663,34.00018493173614,116.00019178013184,34.00019178105452,116.00019862943816,34.00019863037254,116.00020547874557,34.0002054796902,116.00021232805405,34.00021232900748,116.00021917736365,34.00021917832439,116.00022602667434,34.00022602764095,116.00023287598611,34.00023287695712,116.000239725299,34.00023972627292,116.00024657461297,34.00024657558836,116.00025342392803,34.000253424903434,116.0002602732442,34.000260274218135,116.00026712256145,34.00026712353246,116.00027397187982,34.00027397284643,116.00028082119927,34.000280822160015,116.00028767051981,34.00028767147324,116.00029451984146,34.00029452078609,116.00030136916419,34.00030137009858,116.000308218488,34.00030821941069,116.00031506781295,34.000315068722436,116.00032191713895,34.00032191803381,116.00032876646608,34.00032876734481,116.0003356157943,34.00033561665545,116.0003424651236,34.00034246596573,116.000349314454,34.00034931527561,116.00035616378551,34.000356164585156,116.00036301311808,34.00036301389431,116.00036986245178,34.00036986320311,116.00037671178659,34.00037671251153,116.00038356112246,34.00038356181958,116.00039041045943,34.00039041112727,116.00039725979751,34.00039726043458,116.00040410913667,34.000404109741524,116.00041095847692,34.000410959048104,116.00041780781828,34.000417808354314,116.00042465716072,34.00042465766014,116.00043150650428,34.00043150696562,116.00043835584891,34.00043835627071,116.00044520519467,34.000445205575446,116.0004520545415,34.00045205487981,116.00045890388944,34.0004589041838,116.00046575323844,34.00046575348742,116.00047260258857,34.000472602790666,116.0004794519398,34.00047945209356,116.00048630129211,34.000486301396066,116.0004931506455,34.000493150698226]), width: 5, material: Cesium.Color.RED, clampToGround: false, arcType: Cesium.ArcType.RHUMB, }, }); viewer.zoomTo(redLine);

ggetz commented 2 years ago

@peterjou Do you have an M1 Mac? We've seen similar reports from M1 Mac users- https://github.com/CesiumGS/cesium/issues/9417

peterjou commented 2 years ago

yes is m1 mac 14 image

ggetz commented 2 years ago

Thanks @peterjou. Then I believe this is a duplicate of https://github.com/CesiumGS/cesium/issues/9417, so I'll close this one to keep discussion in one place.

We believe this is due to an issue with the driver software on M1 machines. Unfortunately, there's not much we can do until Apple fixes the issue. Hopefully they get to it soon.