CesiumGS / CesiumGS/cesium

Atrifacts on labels on top of not-clamped translucent polygon

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

Description

[Sandastle](https://sandcastle.cesium.com/index.html#c=nVPfb5swEP5XLF4AiRnYVK1paLQ0q/YytdVa7WXs4YIvwaqxkW3I6NT/faYQjSTaOs0PyPfju++479yCJi3HHWpySSTuyAoNbyr69cUX+MWLuVLSApeo/XCey1y2DlUr0W2VvJaW286BhyoUe5ujocBY8DOXxJ0xlVyQ0dGfEvm2tBckjSY+jhp0UXYudWxkBdq6G8h3dKNV9RG3GtEstYYu+PYb2Z83aXJOk4i8PXPfk9B7OpvN/iGYpNGfyx4Ev4cTowKLmoOYdK6E0vT2y/Lm0zXdcVsuRV1CkNBZOMCec/k8zPMeJCvAWIH92B6UEmvQV421Sgb+SkBV+xHZNLKw3HlCcjjXQQI6WnQYrFOkkQw3TjU2H4mmf/UK6Y2ypOiJkf0PdXpCecz+13UxvGd7ZQeCvW5nozaJu6TJXhQBaxQHG2fxh9s3/67kAhg6MTj4x0qMbT0pVT2o4KjJcO5FXmZsJ3AxAD/wqlbakkaLgNLYYlULtwgmXjfFI1paGNPXzeI9KGO8JZxd5t7Ry8q9ft7GuMimEeKeP2HuLbLY5R/AhALG5fa2RS2g61PKdPF5cFJKs9iZpyg7qDup+As).

If you have a label rendered above a polygon that is not clamped to ground, it doesn't look good:

![image](https://user-images.githubusercontent.com/1711126/74961138-94f13380-53db-11ea-99a2-d9b7863d808e.png)

Artifacts are clearly visible when moving the camera. But if you clamp the polygon to the ground (set `entity.polygon.height = undefined` the artifacts disappear:

![image](https://user-images.githubusercontent.com/1711126/74961189-aa665d80-53db-11ea-8695-53c6f884f21d.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue from the linked Sandcastle example with a translucent polygon whose height is set and a label rendered above it, then compare it with entity.polygon.height = undefined. Start by tracing the polygon and label rendering involved in that example; done means the camera no longer reveals visible artifacts over the non-clamped polygon.

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.