CesiumGS / CesiumGS/cesium

Polyline with arrow material is blurry

Open
#3,491 7 comments 0 reactions 0 assignees View on GitHub
category - polyline type - bug
Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/sFOMs4XMJQk

It's particularly noticeable when the polyline has a large width:
![image](https://cloud.githubusercontent.com/assets/3451886/12678474/f6d67b06-c66c-11e5-81de-28edecba645c.png)

```js
var viewer = new Cesium.Viewer('cesiumContainer');

var purpleArrow = viewer.entities.add({
name : 'Purple straight arrow at height',
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 43, 500000,
-125, 43, 500000]),
width : 100,
arcType : Cesium.ArcType.NONE,
material : new Cesium.PolylineArrowMaterialProperty(Cesium.Color.PURPLE)
}
});
```

Contributor guide

Open the contributing guide

Research direction

Use the supplied JavaScript Viewer example as the entry point and reproduce the blur with width 100 and PolylineArrowMaterialProperty. Trace the polyline-arrow rendering path; done when the arrow remains sharp at large widths and the example still renders correctly.

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.