Using depthFailMaterial
with the polyline only works if the polygon is completely opaque (alpha = 1), and it cannot be used if you want to display billboards or labels above the polyline, as the depth fail material will be rendered above them. Any other ideas?
Hi @javier-lopez-1s ,
Thanks for your post.
I responded to your other post confirming the limitation you appear to have encountered. From the sandcastle you provided, it looks like the same issue is the problem here as well so I’ll point back to my response there CZML polygon with outline not rendered properly - #2 by Luke_McKinstry.
Thanks,
Luke
Thanks so much for your response, @Luke_McKinstry.
Just in case it helps someone else, this issue is also fixed if a finer granularity is set on the polyline (I’m guessing at the cost of performance).
granularity: (Cesium.Math.RADIANS_PER_DEGREE / 64.0)
However, changing the granularity doesn’t help if two polygons are laid on top of each other instead of a polyline and a polygon. A more “universal” solution is to clamp the entities to the ground, but at the cost of losing the polygons’ outline.