# Transparent Cesium3DTileset Point Cloud fails Depth Test against a primitive

**URL:** <https://community.cesium.com/t/transparent-cesium3dtileset-point-cloud-fails-depth-test-against-a-primitive/28970>\
**Category:** CesiumJS\
**Created:** [December 28, 2023, 9:52am UTC](https://community.cesium.com/t/transparent-cesium3dtileset-point-cloud-fails-depth-test-against-a-primitive/28970 "2023-12-28T09:52:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhawal](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dhawal/32/14000_2.png) [@dhawal](https://community.cesium.com/u/dhawal)\
**Post date:** [December 28, 2023, 9:52am UTC](https://community.cesium.com/t/transparent-cesium3dtileset-point-cloud-fails-depth-test-against-a-primitive/28970/1 "2023-12-28T09:52:09Z")

</div>

Greetings Community!

I added a point cloud to the cesium ion and rendered the corresponding asset as a Cesium3DTileset in CesiumJS. I also rendered a triangle using Cesium’s Primitive API and positioned it above the point cloud.

When I make the point cloud transparent using the color property of Cesium3DTileStyle (style) property of the Cesium3DTileset, the points of the Cesium3DTileset Point Cloud appear to be floating above the triangle primitive.

[Sandcastle Example depicting the situation](https://sandcastle.cesium.com/#c=vVd5cxo3FP8qqqcTLy0RLLsQIE6mGB9djzlisBMSMh2xK0C2WG20Wts44+/epz0B22k77dR/rK2nd/7eoedKBZ1K4ivUpSGLVmcjRFyXhiFSAq1FJBETPiJhSFU49RMe7Agfe3ROIq46MfNY3FAfvUPTPbo+W85OXTZgZ87lg2P2mRM6/kXd7ToN5yb4dNU9a2Fg+uad3gCTYw9OLx8mq4vlhFWtwfjYPB9f8N5RTw3GE6vXrdZ7Dx/M3vVkPVmdXH9e9dh59yz4DMp6cN+/dkF5/3pmHXJ37TQ+gnHXcjSPP1mfeZp38ukDG1wfm/2H4/v+g/PQu/ZaeDwfhcpek2/OUHlLKb7VPwfd69cn5uEZm6iaPe58W9wuF78T1pzuvZ36U98VfqjQLaN3VEKgPr1LAcNXMc2Y7rnxuSt8RZhP5X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z9+7gfHCB5eMvtXq9jLLzYuc8S8776FdUxU347qNS0o5pdf6oLtM4srLUX3ATmoWv43mXbpEoiZPNEdQgvWehXjazGqX3ShL9PGegxNsoTsixYpAztqZwmjsj4SmhV69+cI0B/7/Bkm28MebxtMrXnH+UrZc0xpFAjz4iWN7cJTKorqdS0a3ZTpPQs4bOVtPA3F6sxEKSYMlcrES+Zxmbjm3wGK+ruGrXW1WrYTXtWrVlVRtQAZDuVrNq2/Vao2k2m1ajVkamZZe07dRo7b8wWqubVavZslpWYdSy39Sa1aZl2k+NWujdv7VZs960Wi0wWq3bjSJSq1Fv2g27YbZ2jap060XvXtqCvwSwjAbgbWB9zRdhkE/bwyUrKgme8/VYGN+h8EPF/Lj32/9D1hoQSxn6da+8dxBX6XtdVb8xWCilQpHkBsYVRVcBPEs0rMwi9wbq2Q3jffmgkokceOwWnuR3z/yzA1MH+hJu5hHnI/ZAp3vvDyrAvyUGO6kefQNYpDhZA4t242Bpvj9PLjDGBxU4aqO7skoIPiNyQ++f)

---

<div class="post-metadata">

**Author:** ![anneg](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/anneg/32/11217_2.png) [@anneg](https://community.cesium.com/u/anneg)\
**Post date:** [January 16, 2025, 12:42pm UTC](https://community.cesium.com/t/transparent-cesium3dtileset-point-cloud-fails-depth-test-against-a-primitive/28970/2 "2025-01-16T12:42:00Z")

</div>

Set the appearance’s translucency to `false`:

```auto
 appearance: new Cesium.PerInstanceColorAppearance({
        // ...
        translucent: false,
      }),

```

This way, the red triangle is not occluded by translucent points rendered behind it. However, point rendered in front of it still don’t take the red color into account, so there is more to investigate. I hope this helps you!

 ![grafik](https://global.discourse-cdn.com/cesium/original/3X/b/5/b5d41485414770133df2e918ce87c22c742d3a70.jpeg)
