# Depthmap when material.pointsCloud=true depth of vertice are all 1

**URL:** <https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189>\
**Category:** Questions\
**Created:** [October 25, 2023, 3:30pm UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189 "2023-10-25T15:30:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![troy](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@troy](https://forum.babylonjs.com/u/troy)\
**Post date:** [October 25, 2023, 3:30pm UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/1 "2023-10-25T15:30:45Z")

</div>

set sphere material.pointsCloud=false  
 ![depth1](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/1/f18f6d9211fa54e5c8e49873212fc97bfe88e976.png)  
depth is correct  
after set material.pointsCloud=true  
 ![depth2](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/4/54d371eca7356f8126227ea890b9fd782494d7ff.png)  
anyway to ge the vertice depth

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [October 25, 2023, 7:28pm UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/2 "2023-10-25T19:28:20Z")

</div>

Can you share a repro in the playground ? This would help a lot addressing the issue.

---

<div class="post-metadata">

**Author:** ![troy](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@troy](https://forum.babylonjs.com/u/troy)\
**Post date:** [October 25, 2023, 9:06pm UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/3 "2023-10-25T21:06:24Z")

</div>

thanks

> **[Babylon.js Playground](https://playground.babylonjs.com/#WJXQP0%231946)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![depth3](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/d/4d1b28c00a8697408c206a43b61d313b5fb0cde3.png)

> **[Babylon.js Playground](https://playground.babylonjs.com/#WJXQP0%231944)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/7/77fc6397c4432eed0dc7a3e4cf48b65a252cbfb1.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 26, 2023, 11:40am UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/4 "2023-10-26T11:40:25Z")

</div>

Assigned @Evgeni\_Popov on October 26, 2023, 11:40am UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 26, 2023, 11:45am UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/5 "2023-10-26T11:45:11Z")

</div>

Unassigned @Evgeni\_Popov on October 26, 2023, 11:45am UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 26, 2023, 11:45am UTC](https://forum.babylonjs.com/t/depthmap-when-material-pointscloud-true-depth-of-vertice-are-all-1/45189/6 "2023-10-26T11:45:17Z")

</div>

See:

> [@DepthRenderer with PointsCloudSystem](https://forum.babylonjs.com/t/depthrenderer-with-pointscloudsystem/38697):
>
> Hello, I am new to BabylonJS. I want to get the depth buffer from a PointsCloudSystem but when rendering the depth buffer I get nothing. There is a PG with a minimal example [https://playground.babylonjs.com/#RCUHJA#120](https://playground.babylonjs.com/#RCUHJA#120). Solid particles work fine but are not a viable solution to my use case. I found a similar [example](https://forum.babylonjs.com/t/point-cloud-system-size-attenuation/31811) where a custom material is used but I wonder if it is possible to use the default material or there is something special about the PointsCloudSystem that needs special handling. Tha…
