Behavior of Entity Model Silhouette Color Options with alpha

Hello, I was previously using the silhouetteColor option in the model with an Alpha value. (like Cesium.Color.CYAN.withAlpha(0.7))

I have updated the cesium version and noticed that it is displayed differently than before.

I checked in sandcatle for previous versions, and 1.120 and 1.121 seemed to be the breaking point.

I’ve attached a picture for clarification.
I was wondering if this display was intended.


Hi @Leafmire, good find! I’m sorry this isn’t working as you’d expect.

Given your pictures and exploring the 3D Models Coloring sandcastle myself I believe this is an actual bug when the alpha value is less than 1. I’ve opened this github issue to track that. In the meantime I’d suggest setting the alpha value to 1 if you don’t find that too obtrusive to the view as that seems to still work as intended.

A small aside: This does not happen when the alpha value for the model color is also set to non-1.0. So even when the model-color Alpha is 0.999, it does not paint the model in red.
But … the difference between 0.999 and 1.0 is (visually) much larger than it should be. Not sure whether this is related…

Yes, leaving it at 1.0 doesn’t cause any major functional issues, so we’ll keep it that way until it’s fixed.

Thanks for your attention.

But … the difference between 0.999 and 1.0 is (visually) much larger than it should be. Not sure whether this is related…

@Marco13 I believe this is separate from the issue open above, and was captured in Order Independent Translucency not blending properly · Issue #4170 · CesiumGS/cesium · GitHub.