CesiumGS / CesiumGS/cesium

Clamped billboards can shake

Open
#4,736 3 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

Noticed during review of #4715, clamped billboards, label glyphs, and point primitives can have a 1-pixel horizontal shake when rotating the camera. This can be seen by loading the Ground Clamping Sandcastle demo, especially by setting a dark label background:

![ok](https://cloud.githubusercontent.com/assets/782098/20902925/5de45fae-bb07-11e6-8f26-6bf10e0783f0.gif)

It looks like maybe the horizontal position is being rounded incorrectly, allowing rounding errors to shake by a whole pixel.

Contributor guide

Open the contributing guide

Research direction

Start by loading the Ground Clamping Sandcastle demo and reproducing the 1-pixel horizontal shake while rotating the camera, especially with a dark label background. Trace the horizontal positioning and rounding for clamped billboards, label glyphs, and point primitives. Done means these primitives remain visually stable during camera rotation.

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.