Picking bellow terrain

Hello, I’m enabling terrain translucency (via globe.translucency) and I want to display underground pipes via tilesets. This all works great. However, I cannot click on them. I tried to use scene.pick and scene.drillPick, but both methods don’t return anything. Any suggestion what may be wrong? Or is this simply not supported?

thank you,
Martin

Hi Martin,

scene.pick is not working may be related to depthTestAgainstTerrain being set to false (this is the case by default in Cesium). If you set viewer.scene.globe.depthTestAgainstTerrain = true, does scene.pick work?

Hello, thanks for swift reply. We are already using globe.depthTestAgainstTerrain = true. Also, I tried just pick function and it returns undefined.

I was digging into it a little more and when we clip the terrain, pick function returns Cesium3DTileFeature - so this case works without any problem.