Convert a plan into ground

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

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

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

2 Likes

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

2 Likes