Hey, I’m creating a height map using the CreateGroundFromHeightMap method and I don’t know why it is rendering inverted. Can anyone help me to understand why it is happening and what I can do?
Here is the playground - Heightmap
Hey, I’m creating a height map using the CreateGroundFromHeightMap method and I don’t know why it is rendering inverted. Can anyone help me to understand why it is happening and what I can do?
Here is the playground - Heightmap
I would look at first to the documentation and grab a running example to modify:
Creating Ground From a Height Map | Babylon.js Documentation (babylonjs.com)
And this are the parameters of your example I used in this example:
Ground From Height Map Examples | Babylon.js Playground (babylonjs.com)
but you ARE RIGHT, if I use your png it’s upside down… so what is the difference between those two images? You have to change the colour scale!
Yes, an all-white pixel means the highest elevation and an all-black pixel means no elevation, so you’ll need to “reverse” the colors in your image, as @CodingCrusader says.