# Height map from node material

**URL:** <https://forum.babylonjs.com/t/height-map-from-node-material/18428>\
**Category:** Questions\
**Tags:** material\
**Created:** [February 15, 2021, 2:12am UTC](https://forum.babylonjs.com/t/height-map-from-node-material/18428 "2021-02-15T02:12:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![george](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@george](https://forum.babylonjs.com/u/george)\
**Post date:** [February 15, 2021, 2:12am UTC](https://forum.babylonjs.com/t/height-map-from-node-material/18428/1 "2021-02-15T02:12:54Z")

</div>

Hi all, amazing library!

I have a ground mesh with a node material that modifies the VertexOutput node to give the ground variable height, and it’s been working great. Now I want to add collision detection, but the ground’s bounding box is just a flat plane. Is there a way to generate a height map from the vertex output of a node material?

---

<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:** [February 15, 2021, 12:30pm UTC](https://forum.babylonjs.com/t/height-map-from-node-material/18428/2 "2021-02-15T12:30:43Z")

</div>

Unfortunately you can’t retrieve on the CPU side the updates you have made in the vertex shader (using a node material or a built-in material). Those changes are only known to the GPU side.

---

<div class="post-metadata">

**Author:** ![george](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@george](https://forum.babylonjs.com/u/george)\
**Post date:** [February 15, 2021, 3:48pm UTC](https://forum.babylonjs.com/t/height-map-from-node-material/18428/3 "2021-02-15T15:48:05Z")

</div>

ah okay thanks
