# Where is pointcloud in the materials options?

**URL:** <https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922>\
**Category:** Questions\
**Created:** [May 18, 2021, 9:25pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922 "2021-05-18T21:25:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saitogroup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/saitogroup/32/10624_2.png) [@saitogroup](https://forum.babylonjs.com/u/saitogroup)\
**Post date:** [May 18, 2021, 9:25pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922/1 "2021-05-18T21:25:19Z")

</div>

In the inspector I can turn pointcloud on and off, but for the life of me, I cannot find the variable in the pbr materials options nor can I find documentation on it.

 ![186558486_10105843019473932_6290076562632116961_n](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/e/2e5a77d99699e9f6c42c5d500f5464fbb523995f.jpeg)  
 ![187554046_10105843057682362_1021123734637787194_n](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/2/d22de314795f94ba6883baeb0ff9d245c617b4ad.jpeg)  
 ![186503314_10105843056599532_8964455185963486606_n](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/4/14c083fa4f3324522ba1adf1223cb9b1191e46e1.jpeg)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [May 18, 2021, 9:59pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922/2 "2021-05-18T21:59:22Z")

</div>

Here they are - [Material | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.material#pointscloud)  
`mat.pointsCloud = true;`  
Example - [Babylon.js Playground](https://playground.babylonjs.com/#3J54FI)

---

<div class="post-metadata">

**Author:** ![saitogroup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/saitogroup/32/10624_2.png) [@saitogroup](https://forum.babylonjs.com/u/saitogroup)\
**Post date:** [May 19, 2021, 7:24pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922/3 "2021-05-19T19:24:06Z")

</div>

yeah, so, weirdly, this is definitely not working for me…

> **[Glitch](https://glitch.com/edit/#!/gevurahmodeltests)**
>
> Combining automated deployment, instant hosting & collaborative editing, Glitch gets you straight to coding so you can build full-stack web apps, fast

lines 187 188

other operations on those meshes work just fine

do you think it could be a VR thing?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [May 19, 2021, 10:07pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922/4 "2021-05-19T22:07:05Z")

</div>

At line 187 there is  
` task.loadedMeshes[0]._children[1]._children[0].pointsCloud = true;`  
But `pointsCloud` accessor relates to Material, not to Mesh class.  
Should be like  
` task.loadedMeshes[0]._children[1]._children[0].material.pointsCloud = true;`

---

<div class="post-metadata">

**Author:** ![saitogroup](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/saitogroup/32/10624_2.png) [@saitogroup](https://forum.babylonjs.com/u/saitogroup)\
**Post date:** [May 19, 2021, 10:13pm UTC](https://forum.babylonjs.com/t/where-is-pointcloud-in-the-materials-options/20922/5 "2021-05-19T22:13:54Z")

</div>

oof, that was a goof, thank you
