# Trouble with applyDisplacementMap

**URL:** <https://forum.babylonjs.com/t/trouble-with-applydisplacementmap/23322>\
**Category:** Questions\
**Created:** [August 24, 2021, 3:13pm UTC](https://forum.babylonjs.com/t/trouble-with-applydisplacementmap/23322 "2021-08-24T15:13:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deslancers](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deslancers/32/17620_2.png) [@deslancers](https://forum.babylonjs.com/u/deslancers)\
**Post date:** [August 24, 2021, 3:13pm UTC](https://forum.babylonjs.com/t/trouble-with-applydisplacementmap/23322/1 "2021-08-24T15:13:15Z")

</div>

Hello! Can anyone help me? I have some trouble with dispacement map, when i uncomment line 78  
`model.forceSharedVertices();`  
it works, but incorrectly.  
Here PG link :  
[https://www.babylonjs-playground.com/#96ZPVV#7](https://www.babylonjs-playground.com/#96ZPVV#7)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 24, 2021, 4:48pm UTC](https://forum.babylonjs.com/t/trouble-with-applydisplacementmap/23322/2 "2021-08-24T16:48:59Z")

</div>

Here is your fix:  
[MOM\_WebXR | Babylon.js Playground (babylonjs-playground.com)](https://www.babylonjs-playground.com/#96ZPVV#11)

The loaded mesh is using shared buffers and thus you have to force the update and not flag the data as updatable (as this is not enough)

---

<div class="post-metadata">

**Author:** ![deslancers](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deslancers/32/17620_2.png) [@deslancers](https://forum.babylonjs.com/u/deslancers)\
**Post date:** [August 24, 2021, 5:28pm UTC](https://forum.babylonjs.com/t/trouble-with-applydisplacementmap/23322/3 "2021-08-24T17:28:49Z")

</div>

Now I understand, thank you so much!
