I’m new to babylon and try to make a gallery with differents maps using the function “CreateGroundFromHeightMap”
My question is :
is there a way to update the parameter " *Height Map url" in the function .CreateGroundFromHeightMap ?
if its not possible , what is the best solution to remove it and create a new one ?
For the moment , i tried this code :
var ground = BABYLON.Mesh.CreateGroundFromHeightMap(“ground”, “textures/heightMapHNomPNG8TRANS.png”,2700, 1688, 700,-00, 100, scene, false);
ground.material = groundMaterial4;
and to remove it, i used this :
it work fine one time but if i create a new one like this, i cant remove it anymore with dispose();
Another idea could be using .setEnabled() but i don’t know if it a good solution.
Thanks for your help,
Pierre (sorry for my bad english)