echarts [Feature] [Question]: Does 'globe' Support Transparent baseColor?

thtygnil  于 4个月前  发布在  Echarts
关注(0)|答案(3)|浏览(61)

What problem does this feature solve?

Is there a way to see what's behind the sphere? Like the example in the link below.
https://www.robscanlon.com/encom-globe/

// This works
 globe: {
            shading: 'color',
            baseColor: 'red',
}

// This not works!
 globe: {
            shading: 'color',
            baseColor: 'transparent',
}

What does the proposed API look like?

globe: {
            shading: 'color',
            baseColor: 'transparent',
}
gupuwyp2

gupuwyp21#

Does 'globe' Support Transparent baseColor?

yes, but probably not how you want it.
It seems there is no way of "painting" the globe with semi-transparent color or texture. Even when detailTexture is a PNG with some transparency, the globe turns out opaque. One could change color opacity thru baseColor, but the globe remains a non-translucent 3D object. Demo

2sbarzqh

2sbarzqh2#

Does 'globe' Support Transparent baseColor?

yes, but probably not how you want it. It seems there is no way of "painting" the globe with semi-transparent color or texture. Even when detailTexture is a PNG with some transparency, the globe turns out opaque. One could change color opacity thru baseColor, but the globe remains a non-translucent 3D object. Demo

Thank you for your answer. I thought maybe it was a special property. BTW, in the "scatter3D" type tooltip is not activated halfway through the item. I will open an issue about this. Now I encountered the same problem in the demo you sent.

2exbekwf

2exbekwf3#

the "scatter3D" type tooltip is not activated halfway through the item.

yes, the click target is really small and bigger symbolSize makes it worse.
Please note that ECharts GL/3D has its own repo for issue posting.

相关问题