const ground = MeshBuilder.CreateGroundFromHeightMap("gdhm", canvas.toDataURL(), {
width:20,
height:10,
subdivisions: 500,
maxHeight: 10,
updatable:true
} );
The ground mesh was created and its options.updatable = true. Ground got height map data from canvas. How can ground update dynamically from canvas? The canvas could update once every 2 second. I don’t think so it’s a good idea to dispose and recreate ground.