cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Strange Transparent Effect

Open JiaoJianing opened this issue 2 years ago • 3 comments

This is the live demo The question is: Construct Viewer with orderIndependentTranslucency: true, the glasses look like this color: image with orderIndependentTranslucency:false, they look like another color: image Is this the same problem in 4170 4 ? Looking forward to your help!

JiaoJianing avatar Jun 28 '22 02:06 JiaoJianing

Maybe it's the correct transparent effect when disabling OIT?

JiaoJianing avatar Jun 28 '22 05:06 JiaoJianing

@JiaoJianing Are you able to load the original model in BabylonJS or ThreeJS to see which setting is showing the right color?

sanjeetsuhag avatar Jun 30 '22 12:06 sanjeetsuhag

@sanjeetsuhag sorry I can't find an available 3dtiles loader in BabylonJS or ThreeJS. But I seem to find a bug? When create renderState in Model.js it uses WebGLConstants.ONE as functionSourceRgb(Maybe it's OIT algorithm's requirement). But when construct Viewer using orderIndependentTranslucency:false, should it use WebGLConstants.SRC_ALPHA?

JiaoJianing avatar Aug 02 '22 09:08 JiaoJianing

I believe this is an expected result of using https://github.com/CesiumGS/cesium/issues/4170#issuecomment-237333922.

ggetz avatar Apr 12 '23 18:04 ggetz