outline width

Hello Mathew/Patrick,

having a problem with outline width of the geo features, even after increasing the width of the outline it is not being reflected, it is taking it as 1.0 only as given below:

var greenPolygon = viewer.entities.add({

name : ‘Green extruded polygon’,

polygon : {

hierarchy : Cesium.Cartesian3.fromDegreesArray([-108.0, 42.0,

-100.0, 42.0,

-104.0, 40.0]),

extrudedHeight: 500000.0,

material : Cesium.Color.GREEN,

outline : true,

outlineWidth : new Cesium.ConstantProperty(20),

outlineColor : Cesium.Color.RED

}

});

we have used polyline for now, but just wanted to check with u is there any other way to increase the outline width.

but for ellipse we cant use polyline also, then how do we go about it. please let us know how to go about it.

thanks and regards,

chandrika

Hello Chandrika, I believe outline widths are not supported in Windows implementations of WebGL (all browsers). I tried to use polyline widths to hack it like you did, but the colors just mixed and it didn't look right, no matter what I did to mess with altitudes and things like that. Does it look ok on yours when you have a filled polygon and a separate polyline outline with a width greater than 1?

Hello ,

we tried with polyline it looks ok , but for now it serves the purpose but not perfectly rendered.

@mathew it would be great if u could provide outline width to work even if it is greater than 1, in the Windows implementations of WebGL (all browsers) also.

thanks and regards

chandrika

Di is correct and you can read the full details here: http://stackoverflow.com/a/25405483/3191039 I also discuss it briefly in the Visualizing Spatial Data tutorial: http://cesiumjs.org/2015/02/02/Visualizing-Spatial-Data/

If you would like to appreciate the great lengths Cesium goes through for our polyline rendering, see this post by Dan (who has done most/all of the work on polylines in Cesium): https://cesiumjs.org/2013/04/22/Robust-Polyline-Rendering-with-WebGL/ The same code doesn’t automatically work in all cases with outline geometry, think of what an extruded polygon outline with a PolylineOutlineMaterial would have to look like.

We may revisit this issue one day, but features like clamping vector data to terrain are much higher on our list.