CesiumGS / CesiumGS/cesium

Billboards rendering partially in 2D at particular zoom level

Open
#11,944 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

category - 2d / columbus view category - billboards type - bug
Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

What happened?

While in 2D mode, some billboards' billboard fragment depths lose to terrain fragment depths between two frustums. You can observe it in a really specific position of camera, terrain and billboard. It is easier to produce with a device you can do smoother zoom (touch-pad etc.)

https://github.com/CesiumGS/cesium/assets/27568710/ae274b39-e03e-47cb-870d-647e459a7968

Reproduction steps
  1. Add a TerrainProvider
  2. Add Billboards
  3. Switch to 2D mode
  4. Zoom out slowly until you produce it.
Sandcastle example

https://sandcastle.cesium.com/#c=hVV/b+I4EP0qI/7ZIFEnBCiFo9XdsawWqRwryrXSCakyiUmsdWxkO6XdU7/7jvODQkvbCKFk/ObNZN7MxPfhm9KQKc2Ay43SGbVcScDfmBmeZ3CntIhhybSmXLbAMAaptVsz9P2oQJBIZf5WUOu8K9sZcviRkpZJW5t2jujMlkT+SuKxsfDA2Y5puATJdlVIclvYvFWj9BwjD7owvWq04P+VBKhIhrVDlR3ZaJUV+VYGr9lycBMxyWYqZnuHm9pCbsaTfybh15V8bv6xkg5dZkQwc245M4TGsVdEBdgqw1159jxjqi3eUdkpYn9liWbMeJ1+CzoXZXCANRdiraiOh1DxAPCMJpjOqkGIX9wbv6S8v1aJulcPTAv6RLYycS/t+xCzDc2FHUIu8RarEddUJlW7IVids0Ngfbrlj0zMNxvD0PegxvvMQy9owVkvaB6HcdagWbOwJ/YRR8cLiMNXf81TiaRK819OSTHXPDkQ7/urA4KKLCeLUxxYFcujNwy3R2by93y5nM+OX6fk3JcMwVj90OV7iGqToIZESij9orN7ItfT2eTY4e77dDmpXbSy9Kg7ZtSm5Mf0fn47Wdx/m/+7OHYOXqJRwROU9K9Hbk711n+TxfxUPXY8timmHQSf9EjKeJLiQdj7EPhcdGw1Cb6/1E9gFSTK/a/zpBiNlcQ2WPKMqdx6XvPyCnu6HplHnPfYq/IvjeXDVJoti6zSM/7IpeOvXCKaMU0JUrqhr+csZsZyWW6i92ZtQWO8N9h552H7fDDoBGE76PbaXdeC/TC46F4Muv1g0A07XbSF/fC81w7JoI2ofn8wqKcTuw9HvRJuP5+uZBhAJnCsplV13MG+0Rk1tlXXFB6oyHGXGicveFJpmzZfWLfcRum7nGcDR4nXi0YVnyeU+unSidVOHvBpJQQUrQQfXa/5KrmrrfeM2yoIglJ2lGKKe1sjrpbXbWolGBEq8b7UO9DJoRJNtymPvrTgWM9TIEfv5uoE1934XYa78Vu/Y2Ql1GewovKfgVw5q4r0qoo0Wo2RsU+CXdVV/5NnW5QVci08XN+WZe7rhxt8nUc/mSWRMWUcgJF/6DqK+QPw+PLEhw0iQY3Bk00uxA3/xVaNq5GP+DeuQhWvOy+/EA6Wtq+uSyMhZOTj42lPq5RYU/2K+Tc

Environment

Browser: Chrome 123.0.6312.123 (Official Build) (64-bit)
CesiumJS Version: 1.116
Operating System: Windows 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Sandcastle example and reproduce the artifact by adding terrain and billboards, switching to 2D, and slowly zooming out. Trace the terrain and billboard depth handling around the transition between frustums. Done means billboards render completely at the reported zoom level without losing to terrain.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.