CesiumGS / CesiumGS/cesium

Rendering artefacts when drawing two close rectangle entities

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

Description

Hi!

When I add two rectangle entities that are close to each other, I see following render issue from certain camera angles:

![Screenshot 2023-09-26 at 16 22 00](https://github.com/CesiumGS/cesium/assets/449600/485edf87-dd46-41ab-b966-6c411c772730)

It seems that there is an invisible wall.

On the other hand, when there is no distance between the rectangles it works:

![Screenshot 2023-09-26 at 16 23 14](https://github.com/CesiumGS/cesium/assets/449600/505ba423-800a-4e3c-9a5c-fecfc42aaff4)

Or am I missing something when creating the rectangles?

---

Sandcastle example: [See here](https://sandcastle.cesium.com/#c=tZLBb4IwGMX/lS+cIGMFptkSh2aL7rZkiTPbhUstn9istKYtGl3831dAjFOv3niv7/HrIzAljYU1xw1qGILEDYzR8KokX43nZx5r9FhJS7lEnXkh/GYSwKLWzhl0hVmryUKr8ltpkR8MP8jkPnjOZCZZQ+PSoHWwmMRx4vyWTlBabjkaQvPcbwgamaWyEDhoiQBMKZ1zSS2aI3fapRryBAuNaPw2D5Ak5CHsRP/pRLiTHty3tzlN9Nrn4OCVDqY5FUfeWAmlyfRtQjbcLl/Fakn9mDwGdXwfHrbeelMP7i5v/m9b/1abdkqVM+WfLawDXuilxm4Fjjr0Cy9XSluotPAJiSyWK1EPjeYV+0FLmGmKdTSNTqtpztfA8+GV3w+YoMa4k0UlxCffYeaN0sjlL6pCUfdhi481akG3dWyZjN5bkxCSRk5eb1qlxJzqszf/AQ)

Browser: Google Chrome Version 116.0.5845.187 (Official Build) (arm64)

(but happens in Safari too)

Operating System: macOS 13.6 (22G120)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the linked Sandcastle example, with two nearby rectangle entities, and inspect the rendering behavior from the reported camera angles. Compare it with the zero-distance case and verify any change by confirming that the apparent invisible wall and related rendering artefacts no longer appear in both Chrome and Safari.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.