CesiumGS / cesium

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

Creating a polygon also adds an artifact that moves around when you pan or zoom. #12246

Open sgomon12 opened 1 month ago

sgomon12 commented 1 month ago

What happened?

I tried to create a thick line path with an arc, but when I add the last point, it also creates an artifact next to it. When you pan or zoom, the artifact moves around, but the thick line path stays fixed like it should. Also, this only happens when I add the last point to complete the path. If I don't add the last point, there is no artifact.

artifact

Reproduction steps

  1. Create a polygon with the specific points in the Sandcastle example to see the artifact
  2. Comment out the last point to remove the artifact

Sandcastle example

https://sandcastle.cesium.com/#c=jZhLb9zYEYX/CqGVjFFa9/3waIwJnGWALBJkkdEs6BZlEdMihW7KhjLwf89XlCwXr72IBbfUJM+99Th1qi7383Rauk/j8Hk4dr900/C5ez+cxsf73b/Xa+fXZ/v1+/t5WvpxGo7XZ29+vp6up8OwdPt5Pt6cwP12Pf156Je3Me5ytK5ma1IyJl50h3l6+5ewSymX7IPzpjrj0pcLBeBZn52vIUVjv0FysLVUG0JN/OkaiIm+plityUkhvPHe+RxcyHkDMKxuokk5Fq+eDyZWw01XTShbQCkxm+BdsFYBWCJ5702IudYG4ILPsSZfrd6CbUO2mc+atn5jujOFLRwmK0Q2BMM5Ni8uxy0k1VJCITLea7NyzT5FV2uxtgH4kEqOyRXnFKBU42V39imN4zHV5KwPNmOwgrC2j8HlnHL1DYTFBGVyMQoSCa23wRbyWxq7gk8luuh9Un5EG7OzISdrfWkS6FO1ZClnl4NCuACfaizYEFyDMOwfLA45Fd5ISrN3q02hNOF1Yi4Z8Rs3YAmhDTC4xjYhNhEq58TxHDWmeDav/HBnCzEVY6uPKaeot4mxVhdD8i6ZxhVjS/WwKOGqQkBFLpdcnA9BIxLmphRy5FasCkGusoUsxiRTtwjqMyVH6qsvGiExro581GRjAzH8C/JIStquElykQG2EY2ULyQ5+UbdVKklBKMNABEUmot1CkAXue+G80wiCb5M3map0WwRZcgTLw3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PeuuTrDQQXp6zm14OWQxrDH5N8WIBnpmSEy2HPaaaZH2Vh0nxFLVJpTOWgfwt53KYApahOIU7QenODLLLEByUzvDwghkDa7ocxvxdnQZ3OP80CKgAmcOOcfqIpHZXTqVlSG2Ga0jA6G05aJTyDkZFeBYzHrfTfyIqcxxm7OLX/sqrrFgacd3iS9TE/trvnt5kOQRKajXnEMYkukZnNW90X7ANCQe9uZGgoFwqslC7KKndy+MpycKF3JzmkRJpNopdT1hyknRi24hzqE9hMmLAC+6oZs7AUeDOVM6aajNQY+xVo47Re/g5AxHLpDy3BzuSZtsa6QOFIIadC4Jp2r7/sCzh8wcBEQHF21hOBEF8LEJLhfQGYhNC/qGkO4JR/CEYvxyPXXd9XR52f315macPnbL3XjqDv1p6R7m07iM89TdHuf7rv8wfxq6w8iNZe728/3DYVgGHh+6h3656z6PfPTHfbfvH0/Dab3RH5fxtt8v6/rv5/v7YVpeNhinoZsf17WmeemArIiXjccJzMWrI7S8IK9s7GYMktG9FqFBdfQFPPn99T3SV9vXV0ly+XY+nsuNkQvmZ35dvbxr2h2G6eNyx6Wffnrzp0TjFbt7eDzdnb+8vXqPM/zVT34n8fjb8PE4DKfz50V+G3/fYdVFp772yxt5r/VFTHp+HbbDfVYeTrv+5ub8Za/D00fc6dZvXXc3DkeCePf0ekXZ8/bbn8/31uTx8eX5BRpB/s8830sWx6nrp5s1wvL7oZ8mufyD3EgG7iW1QI4DVkvGufb8zP7V9n1/j2m728PTv+Zn22+G0zJOK+Bt939FyWyjZNYoXXRBxvg3L24IG79+nl2cXZ2Wp8Pw7mssfh3vH+YjfDkezne7y2WAhj07Xn543P8xLLv96fS8SNddXWro1c34qRtvfvnB28duD+tO3Ll9PBz+Of53uD57d3XJ899BD3MvNfKPT8Px0D/JY3f23d+fL+52u6tLvv4Yuczz4UN/bFb+Hw

Environment

Browser: Chrome CesiumJS Version: 1.122 Operating System: Windows 11

ggetz commented 1 month ago

Thanks for the report @sgomon12.

There's a chance this is a similar indexing issue to https://github.com/CesiumGS/cesium/issues/12136.

sgomon12 commented 1 month ago

Hi, Thank you for the reply. I don’t think this is the case. The image below shows the polygon created without the last point. The last point is shown in red with the yellow lines outlining the final area to be filled.

@.***

So, where the last point lies looks like a valid position.

Let me know if you think this this problem is still related to #12136.

Thank you, Steve

From: Gabby Getz @.> Sent: Friday, October 11, 2024 12:48 PM To: CesiumGS/cesium @.> Cc: Gomon, Steve @.>; Mention @.> Subject: Re: [CesiumGS/cesium] Creating a polygon also adds an artifact that moves around when you pan or zoom. (Issue #12246)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification ⚠ CAUTION: This email originated from an external sender. Verify the source before opening links or attachments. ⚠

Thanks for the report @sgomon12https://github.com/sgomon12.

There's a chance this is a similar indexing issue to #12136https://github.com/CesiumGS/cesium/issues/12136.

— Reply to this email directly, view it on GitHubhttps://github.com/CesiumGS/cesium/issues/12246#issuecomment-2407874195, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BL7XP7F4UYFQCHA37TUY3DTZ3AFNHAVCNFSM6AAAAABPWWPJZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXHA3TIMJZGU. You are receiving this because you were mentioned.Message ID: @.**@.>>