I use post-processing to highlight the selected objects, but it does not work for some objects, such as polyline and groundPrimitive created in entity mode. However, it works for models created in primtive and entity modes. Is there wrong?
Is there any way I can select these objects for post-processing?
I reproduced this problem in sandcastle:
Cesium Sandcastle
Hi @wodehaochide! Welcome to the Cesium community.
I believe that czm_selected is intended primarily to work with 3D tiles and Models, not with low level primitives. And it seems that there’s a known issue about it not working with Entities. If you don’t need post processing, a potential work around you could do would be to change a material’s color directly in the ScreenSpaceEventHandler callback. Maybe something like this.
Let me know if that helps. If not, I’ll ask around to see if I can find out anything more.
Hi @mzschwartz5,
Thank you for your prompt reply.
I hope to achieve a nice visual effect to make the object look more appealing. So next, I will try to solve this problem using " Appearance". Thank you for your help.