Using the Skybox example, I tried to change the value of the subdivision, to check the results. Unfortunately, whenever the value is different from 100, the method getHeightAtCoordinates from the ground sometimes returns NaN values.
var ground = BABYLON.Mesh.CreateGroundFromHeightMap(“ground”, “textures/ground/heightMap.png”, 200, 200, 100, 0,10, scene, false);
I checked out this Topic but the solution is not in the post and the link they refer is not working.
Any Idea why I get this NaN values and how to solve it?