Close polygonGraphics depthtest?

how to close polygonGraphics object depthtest?

@zyy1987

Thank you for your community forum post! Can you please provide some more context for your question? I am not sure exactly what you are looking for here. Feel free to provide an image or example of what you have in mind.

-Sam

@sam.rothstein
billboardGraphics have disableDepthTestDistance property,but polygonGraphics not,Is there any way to implement the similar function?

@zyy1987

You are correct. A function similar to disableDepthTestDistance does not exist in our PolygonGraphics API. However, it may be possible to replicate the functionality of disableDepthTestDistance in PolygonGraphics. It seems like the show and extrudedHeight members of PolygonGraphics might be important here.

https://cesium.com/learn/cesiumjs/ref-doc/PolygonGraphics.html?classFilter=polygongraphi#show

https://cesium.com/learn/cesiumjs/ref-doc/PolygonGraphics.html?classFilter=polygongraphi#extrudedHeight

You can use extrudedHeight and the Camera object to determine how far the Camera is from your polygon. Toggle the visibility of the polygon using the show member accordingly. This is just one idea, so I am curious to hear feedback from you and the reader community!

-Sam

@sam.rothstein
i have one point cloud data and one polygonGraphics object superimpose,so i want close polygonGraphics object disableDepthTest,reduce point cloud data occlusion。

@zyy1987

Understood :+1: thank you for providing some more details.

-Sam