SAYEOR
August 28, 2023, 1:04pm
1
After turning on globe transparency, the imagery layer will also become transparent. How can we independently set the transparency of the imagery layer so that it is not affected by globe transparency?
https://cesium.com/learn/cesiumjs/ref-doc/GlobeTranslucency.html
// Set back face translucency to 0.5.
globe.translucency.backFaceAlpha = 0.5;
globe.translucency.enabled = true;
https://cesium.com/learn/cesiumjs/ref-doc/ImageryLayer.html?classFilter=imag#alpha
imageryLayer.alpha = 0.5;
SAYEOR
August 29, 2023, 1:09am
2
@sean_lilley
Would you mind helping me out?
Thanks.
Hi @SAYEOR , is something like this what you’re going for? The base layer is translucent while the imagery layer on top is opaque.
Here’s a sandcastle showing what the code looks like:
SAYEOR
September 4, 2023, 9:57am
4
@sean_lilley , thanks for your help!
It works! But after not using OIT, additional caution is needed to add other transparent objects.
Yes, unfortunately this technique only works with OIT disabled.