I set viewer.scene.globe.depthTestAgainstTerrain = true, so the terrain can occlude my custom global primitive.
But there is something wrong with the occlusion which is shown in the gif picture.
Below are my settings:
My primitive:
I set viewer.scene.globe.depthTestAgainstTerrain = true, so the terrain can occlude my custom global primitive.
But there is something wrong with the occlusion which is shown in the gif picture.
Below are my settings:
My primitive:
Hi @Link_ZY ,
Thanks for your post and for being part of the Cesium community.
To check my understanding of your problem, are you expecting the multicolored primitive shown to be occluded (or partially occluded) by terrain? It appears possible that your Primitive is not plotted in the correct location, which could be a data issue or coordinate system issue. As you can see in this sandcastle example, you can adjust the height of a Primitive to make it appear relative to the terrain Cesium Sandcastle so what you are seeking should be possible.
I do notice it appears you are using a library built on top of CesiumJS rather than calling the library APIs directly, is that right? If so you may need to seek help from the authors of that library, since we cannot support third party libraries we do not maintain. Alternatively you could try your implementation out using CesiumJS code in our sandcastle tool https://sandcastle.cesium.com/ which could help sort out if it is possibly a data problem.
I hope that helps get you started on debugging and please let us know if we can be of further assistance.
Thanks,
Luke
@linkyang what did you use, to render cloud ?