CesiumGS / CesiumGS/cesium

Wrong billboard rotation depending on client ratio

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

Description

Hello,

I posted a thread about this issue in the forums a few days ago [here](https://groups.google.com/forum/#!topic/cesium-dev/cT0bjBWGgKU).

Long story short, a billboard's rotation, even if it is defined by a precise angle, seems to be displayed differently depending on the aspect ratio of the viewer. See [this Sandcastle](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases&gist=0a8b13b8a310781f75e03cab4234078b) for a better example, and the forum [thread](https://groups.google.com/forum/#!topic/cesium-dev/cT0bjBWGgKU) for the exact use case.

I found a workaround by using textured shapes, but it required some additional fixes to achieve the same result (mainly because I have to resize the textures manually in meters everytime the zoom or the size of the viewer changes instead of using pixels, which are much more practical in that case).

Thank you for investigating this issue.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Cesium Sandcastle example and read the referenced Cesium forum thread for the exact use case and expected behavior. Trace the billboard rotation rendering path from that example; done means the same precise rotation is displayed consistently across viewer aspect ratios without relying on the textured-shape workaround.

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.