# Converting Wave Effects from THREE.js to BabylonJS: Playground Help

**URL:** <https://forum.babylonjs.com/t/converting-wave-effects-from-three-js-to-babylonjs-playground-help/45907>\
**Category:** Questions\
**Tags:** material, shader, point-cloud\
**Created:** [November 24, 2023, 5:13pm UTC](https://forum.babylonjs.com/t/converting-wave-effects-from-three-js-to-babylonjs-playground-help/45907 "2023-11-24T17:13:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ertugrulcetin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ertugrulcetin/32/33011_2.png) [@ertugrulcetin](https://forum.babylonjs.com/u/ertugrulcetin)\
**Post date:** [November 24, 2023, 5:13pm UTC](https://forum.babylonjs.com/t/converting-wave-effects-from-three-js-to-babylonjs-playground-help/45907/1 "2023-11-24T17:13:39Z")

</div>

I’m seeking help to adapt a wave effect in cloud points, originally created in [THREE.js project](https://medium.com/geekculture/how-to-make-waves-in-three-js-d8a45437c7ca), to BabylonJS.

I’m struggling with updating the vertex shader correctly. Here’s my BabylonJS Playground link for reference: [BabylonJS Playground](https://playground.babylonjs.com/#UI95UC#2005).

Additionally, here’s the original example’s code on CodeSandbox: [Waves by Value Noise on CodeSandbox](https://codesandbox.io/p/sandbox/waves-by-value-noise-yh6fgn?file=%2Fsrc%2Findex.js%3A111%2C78). Any suggestions or ideas to make this conversion successful would be greatly appreciated.

---

<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:** [November 26, 2023, 7:48pm UTC](https://forum.babylonjs.com/t/converting-wave-effects-from-three-js-to-babylonjs-playground-help/45907/2 "2023-11-26T19:48:07Z")

</div>

In Threejs, Z is up, whereas it is Y in Babylon.js. So, you must update the vertex shader to take this into account:

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

---

<div class="post-metadata">

**Author:** ![ertugrulcetin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ertugrulcetin/32/33011_2.png) [@ertugrulcetin](https://forum.babylonjs.com/u/ertugrulcetin)\
**Post date:** [November 26, 2023, 9:45pm UTC](https://forum.babylonjs.com/t/converting-wave-effects-from-three-js-to-babylonjs-playground-help/45907/3 "2023-11-26T21:45:29Z")

</div>

Thank you!
