CesiumGS / CesiumGS/cesium

icon flip in custom polyline material

Open
#9,576 7 comments 0 reactions 0 assignees View on GitHub
category - polyline type - bug
Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Recently, I have a thorny problem. I create a custom polyline material using icon. Unfortunately, when I am zooming, pitching and rotating the map in 3D mode. The icon flips when the camera is very close to the earth surface.

![image](https://user-images.githubusercontent.com/6295521/120196752-cb5e6500-c252-11eb-8f96-24d0d4fc3ca7.png)

zoom and the polyline icon filp

![image](https://user-images.githubusercontent.com/6295521/120196794-d913ea80-c252-11eb-9650-e4444663d763.png)

**Someone can tell me how to fix it !!!**

Sandcastle example:

https://sandcastle.cesium.com/#c=jVZtb+M2DP4rQr7Uvrlykqb3kr5gh3QDBvTQw3XYC5ahp8qyI0yWPElOmxv630fJlmM7KbYCQa2H5EOKokhtiUZbzp6YRldIsie0YobXJf7FY9F6Qv16paQlXDK9nsQXa9lYYEOZZFizv2tm7BcmM6Y/qYwBk9U1A721pEoai7wiwH27iyCkpGSagLSha5Y940qJnQDfKyUEo5YrOQz184E8cjE2bJXmJbd8ywwmWRYdcsXeU0v1iVimORH4oWy/VoRumDMNIkhJuTsNPKdEa/W0niTon7VEKCePmtNls0DI7iq2RMcNGo1a8lzp0nQmiCqh9DLsbeVW+Pcfbm/vfm1NEC9JAbQnG2srs0xTv8a5IJZDwjBVZeo+TFrJIj2fzdP5+cL9FmcLDNBJ4MmI2dwyWdjNEs2neBpwH2EQzN52gpf2v1G1phDA11Y/bAJtGV008V+MRblQxPaZO40t0Tsui1Zj+xAS9VEWoimhRg8OZI60snAMUaOrSRZ3aYO/BqVQHFSZyEkvxkLjqozLsVAzW2vpXUR71J9GgkwyhE5Nguge2vO87IOl38qugvyiYLYroL7wJ1nVFg1WcSDpbW3A131cBeoblpNa7D0M+XobhROaI7hSV0OX2NixUqVcrtp8j04lRm9QIR5+1KRYKaUz/LzrHVTIdcWfmbjpagzY9gUHBC50r/IF6lZdHLX+uK8XMO9Vz/+0v2dFyaTtGMYhfXfg5jjPb3d5SwUkuSbUQiMx+BmlR/y47ByiB8SWPUPRsXtgjMZOTseRxsHTMNTBmS2QfV4NLl8Lq9oGfC/hOYq6EK4RXP/BXUKBzPXyRm1+E/lOk/gC6Yzhglhs436Voc6ls2553oQvTCDvtMWiGYbddpI+ywtiwrDXgqKjnQ58joUvh9WZ8eYaQDNw8SeIPBr/BeHMcBwfSaLhGQseHBa5pPX0+gFAcRJp4X5xYqK+bRL2kHT6iQ8mHhzPiKsgZUlWSmuYWVGQ9X2H64wznue1cbM2qGFdPB7TJKLakL4eOdoRvXK/xzUfX0NX9MhLPJjXhrvJ6hrIH046m07x2YfZ2SxBizn+MDt/P0/2+OIV/N0r+PvZvMXfefxP7/pwsPt576unC2g/Vom28EXkGc61Km9YoRkzcLnILuq0Y+/0iWfQKWAQhgkZcrLsv0G61tuWa/MQQMt++brXACAnB6+BMJHbVMIq5NM/hWC0735WDXMGDy0uXceT/7GZ6FjW0fl0Om32ldW6pZk3DifJ5NLYnWDXIeTveVkpbVGtRYRxallZwSODmfSxpn8xi6kxoQYv077pZca3iGdXR16PiApiDEjyWoh7/o2tJ9eXKegfmMI1zeBhcLdlWpCdU9vMrm8bEGN8mcLyuKVVSjwSPWL+Fw

Browser:

chrome 90

Operating System:

macOS 10.15.5

Contributor guide

Open the contributing guide

Research direction

Start by running the linked Sandcastle example in Chrome and reproduce the icon flip while zooming, pitching, and rotating near the earth surface in 3D mode. Trace the custom polyline material and its rendering behavior, then verify that the icon remains correctly oriented during those camera movements.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.