# Convert a plan into ground

**URL:** <https://forum.babylonjs.com/t/convert-a-plan-into-ground/12243>\
**Category:** Questions\
**Created:** [July 5, 2020, 4:02pm UTC](https://forum.babylonjs.com/t/convert-a-plan-into-ground/12243 "2020-07-05T16:02:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [July 5, 2020, 4:02pm UTC](https://forum.babylonjs.com/t/convert-a-plan-into-ground/12243/1 "2020-07-05T16:02:29Z")

</div>

Hello,

In 3ds max when we want to create a ground we create a plan (there is no ground like in Babylon)  
The problem is that once the terrain (plan) imports into Babylon, it does not have the functionalitys of a ground. for exemple :

activated : _CreateGroundFromHeightMap_ **work** ;  
activated: _CreatePlane_ **not work**  
[https://www.babylonjs-playground.com/#RQ1FFY#2](https://www.babylonjs-playground.com/#RQ1FFY#2)

So I was wondering if there was a function that would convert a plan into ground?  
If not, is this a feature that could be added by the team ?

Thanks for help

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [July 5, 2020, 5:18pm UTC](https://forum.babylonjs.com/t/convert-a-plan-into-ground/12243/2 "2020-07-05T17:18:55Z")

</div>

Two issues with using a plane

1. Not enough vertices
2. When you rotate the plane the vertices data is not rotated, the rotation is held in the worldMatrix.

Solution

1. increase number of vertices
2. bake rotation into vertices

[https://www.babylonjs-playground.com/#RQ1FFY#3](https://www.babylonjs-playground.com/#RQ1FFY#3)

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [July 5, 2020, 6:17pm UTC](https://forum.babylonjs.com/t/convert-a-plan-into-ground/12243/3 "2020-07-05T18:17:37Z")

</div>

It’s impeccable John, it works well. Thank you very much for this solution.
