CesiumGS / CesiumGS/cesium

Primitives grayed out when panning over the Pacific in 2D

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

Description

## Description
Primitives grayed out when panning over the Pacific in 2D.

## Images of error
![error2](https://user-images.githubusercontent.com/17170105/27602075-92bd7f0c-5b3f-11e7-9b37-914fd8ef1c0a.PNG)
![error1](https://user-images.githubusercontent.com/17170105/27602076-92bd92b2-5b3f-11e7-8c3c-d6f747621e0f.png)

## Code
```typescript
addCircle() {
var instance = new Cesium.GeometryInstance({
geometry : new Cesium.CircleGeometry({
center : this.circle.center,
radius: this.circle.radius
}),
});
var circlePrimitive = this.viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances : instance,
appearance : new Cesium.EllipsoidSurfaceAppearance({
material : new Cesium.Material({
fabric : {
type : 'Color',
uniforms : {
color : this.color
}
}
})
}),
asynchronous: false
}));
return circlePrimitive
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the 2D Pacific panning case with the shown addCircle code and the CircleGeometry, Primitive, and EllipsoidSurfaceAppearance entry points. Investigate why the primitive becomes grayed out while crossing the Pacific; done means the circle remains correctly rendered during 2D panning.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.