Why are my polyline intersections blurry?

1. A concise explanation of the problem you're experiencing.

See attached image

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

The lines are a graticule over the 2D map. They are generated using SimplePolylineGeometry and rendered in a Primitive attached to the scene.

I've tried everything I can think of to get this to stop happening. At one point in the past I'm sure I was able to disable anti-aliasing on either the webgl context or on the scene and this sharpened up the lines while sacrificing any billboard labels I would render.

Is there any way to get rid of these intersection blurs, preferably only for these lines? I'm ready to pull the lines out of the canvas and do it in the DOM.

This is on Cesium 1.52, Chrome 73


These polylines aren’t clamped to the ground, right? Does this map have any terrain?

Does changing the resolution scale or imageRendering mode as Matt describes here help at all?


You can try toggling FXAA to see if it helps too:


Although that would do it for the whole scene. It isn’t inconceivable to render these lines as a separate pass so you can selectively enable this antialias on them. You’d have to create a custom draw command I think. This thread has an example on this:


It might be a bit too involved just to fix this since there aren’t a lot of helper functions to do this. If you end up finding a fix or a workaround please post it here!

Thank you VERY much Omar. Those links helped a lot and helped further my knowledge in other areas. A combination of the resolution scale and disabling the FXAA had exactly the desired effect and more.

The resolution scale fix also seems to have removed the big negative symptom of disabling FXAA that I recall from the past, which was poor billboard/label visual fidelity. It also solved the side issue of with inconsistent line widths!

I'm also pleased to find out how to disable FXAA once again; I didn't see that it had moved off of Scene in the changelog.

Thanks a lot for your help!

Awesome! Super glad to hear we can help NOAA maps have crisp lines and billboards!