3DTileset picking issue when style applied

Hello,

I’ve noticed that when applying style(opacity actually) to 3DTileset, pivot point do not picks from tileset anymore, so the camera rotates around the point on Earth surface under the point clicked on tileset.

At the same time, there is no problem with picking points on tileset with viewer.scene.pickPosition(event.position); method.

Here is sandcastle.

Is there any workaround?

Second question - I am facing Cesium rendering error with some models when the opacity style is applied to the tileset. The error is TypeError: Cannot read property 'translucentCommand' of undefined, any thoughts why it happens?

Cheers,
Ilya Shevelev

Hello @Ilia_Shevelev

Thank you for reporting the camera navigation issue. This is definitely a bug. I’ve opened an issue here for us to look into this: Camera translate broken when picking 3d tiles point cloud with transparency · Issue #9302 · CesiumGS/cesium · GitHub
Sorry, I don’t know of any workaround at this time.

For your second question, do you have an example to reproduce this error? I haven’t seen that one before.

Thanks,

Hannah
Cesium Staff

Hi @Ilia_Shevelev

viewer.scene.pickTranslucentDepth = true should fix the first problem: Sandcastle

For the second problem it’s possible that this PR fixed it: Fixed error when nodeCommands[0] is undefined in Model.updateColor() by KeyboardSounds · Pull Request #9271 · CesiumGS/cesium · GitHub. That fix was included in the CesiumJS release that went out today.

@hannah , @sean_lilley ,

Thank you so much for your help! I will try to reproduce TypeError: Cannot read property 'translucentCommand' of undefined on new version of Cesium and report if it still occurs.

Best regards,
Ilya Shevelev

Hello,

Problem with TypeError: Cannot read property 'translucentCommand' do not occurs in Cesium 1.77, at least in my test cases. Thanks!

Best regards,
Ilya Shevelev