I’m experimenting with BABYLON.MeshBuilder.CreateGroundFromHeightMap and I have a question and an issue.
Question: I don’t have clear what minHeight and maxHeight are doing exactly. For what I’ve been testing, those two parameters refer to the mimumn and maximum values the ground will have after being created, regardless the actual height map values I’m sending to CreateGroundFromHeightMap . It will adjust the mesh vertices to that range (0 minimum and 1 maximum by default).
Is that correct?
Issue (more important): Depending on the amplitude of the height points I’m sending to CreateGroundFromHeightMap , if some of them are lower than a threshold, the vertex is corrupted or whatever, and it appears upside into the air.
Here is an example working fine:
Then, if I increment the amplitude of the height map, one of the vertices appear in the sky. I believe this is the vertex with lowest value (if I’m not wrong by some tests I’ve done).
Incrementing more the amplitude, more and more vertices are corrupted.
Some idea what’s coming on here?

