CesiumGS / CesiumGS/cesium

Polyline sometimes drawn over billboard depending on camera angle

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

Description

Related community forum question:
https://community.cesium.com/t/polyline-geometry-sometimes-are-drawn-under-the-billboardcollection/11205

The user is trying to draw polyline under the spheres in a PrimitiveCollection, but sometimes they are drawn over the sphere if the camera is at a certain angle.

Sandcastle [example](https://sandcastle.cesium.com/#c=hVfvb+I4EP1XIr4kaFFw7PxkaXXdbndVqbtU297eh6aqTOKCdSFBdqDlVvzvN05ISMB711YtHt6bsWeeX+iWCmPL2RsTxoWRszfjmkm+Wdk/q5gVD5JqfV3kJeU5E/Fg+DHOt8DKYHmbvxbAe/oV54YRD3gaDybw14uQG4SEOFHoO56PPMePByOFqb/iwYIVCvp0jBmG44S2F4YOccNRN04cO4oiL4pINNLgCfbCSEMgjkd8HSGIQuccH/ouwroCEY5Cco4PIs/FOniAiOtr8C4OHPecECEURRq8H2EPBTq874RBoCFg6FGoITgodDQN8gLvtHEHPBwMYQ0Bu542f+AHSDMyDyESeDpCFEaOpqVu4Lu6E2MHg4I0eB8jX0sgjq85gOtixyc6vBsG2NUQsOt6uhZhP8RYc2QXuZ6nGzIOA49oVEdCD+laRBB0yNPgfeK7ugIE+5hoVAFaDLV413M1JyYYrq12Qz70QtNT4mCsaykJfKQrgJWOgmP4uWcLbzwtl8oY/F44KbJC1NYiFnNqoRH2vBEaOcN4EOf754MjrYtsp1zpXvAVL/mW9S2tDVuVXYEFrVgpdre5LGkONjd5qjdD12tGhQpNevRD9mu1masWUyczjBJWMtskLC8nxivNJKuS7Yd1TrnLk6Uo8mIjj2/vKy+tnNaWwGT2utmjtGmaWmcnUoSMlQY/bFqZrzp+s7bXG7m0VMXOzr+enLTZMk8nrYs/oWebp4euN63Rnr/J1mQxoO8SNlfkcnKAXlNRwiuaE/tVFKvPbCEYk1dC0J3VLQh1hu2gq9n3N1SFWsCWQdb3L4VYUWhx85zqBO2ru7sWTUXyuFuzFnhVr+3vs+83LWgBQ9tkVPBy1wK/0XJp39++zH7e/Hj5MvvzR4uuZCjvmaiLdsfcDhoKl6Xg8w00YPLrKOKK29aoNHQ6lquGWDWtglhdfB2Wslo8ADZfWGZ1H8Af2xthDoeduyOXxZvRG+MDRH5b2SrFhjX8/UHAca5UdyZF++wCgRgbHQJBfY/HoGLQB89L2dxReN372GDy1JyYjllVM9/Nyelj2tyZk/4jej/qMPEJs/O8a5nts67HJKfMoym2zNYQK5epz5BQ+KNOmxbJZgUX3k4EoyW7yZhaWWYNMFXb6pe1koHhoWNsyfhiWTbBKjF8ymLvJf4MwQNowcrrOmqZOK1TNih7zhY8vwe9Wv04aN+qJKF+0Kgr7Me/Zi/3tyOjGnSPlGSFZJpkrzzLHspdprzmKLfKgofmGbIid0bdygVUm7FE2UTflT8BaV5QkR4B1v/boj5zXfsV7o2qzy/QR4NPCfz68GFYzV2F503B7mPidxmrch27bOX7xDt+2Rjgf/uf1SO/j/rJdiMDNTdPOR1PaDYTHAbc87pj2P40e3ycfTtQ+IouwOxq1RwuLnRjPxgNplJN77IxhT/4al2I0tiIzLLtcclW6wzEK8fzTfI3Ay1LqZgKOh13qdOUb6EJF5r/CYwko1LCO68bEAv/h8WDy+kY8GfUrKApGNcMjpjRnYItncu7Omjb9nQMSz2zLIpsTsVJ5n8B).

Browser: Chrome

Operating System: Windows 10

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the linked Sandcastle example in Chrome on Windows 10, then compare it with the related community forum question. Investigate Cesium's rendering order for polylines and billboard or sphere primitives as the camera angle changes. Done means the polyline consistently remains under the spheres in the reported collection.

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
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.