Hello fellow creators.
When i imported my png heightmap, i got the perfect result except for the edges. They are kindof weird. Take a look at the terrain and the heightmap below:
Why is my terrain doing this? Its extremely annoying…
Thank you.
Magnus Pilegaard
OBS: I couldn’t upload the exact png heightmap, because it’s file size is too big. The one shown is a JPG of the heightmap.
Hi MagnusPilegaard,
It looks like your heightmap may be smaller than the area you are placing it on, which would explain the stretching. Can you pull your landscape in a bit and see if the stretching still occurs, if it is reduced or if it goes away entirely?
The landscape has the same size as the heighmap. That’s what makes all of this weird… Even though, stretching doesnt work :/.
Do you have a copy of the heightmap that you wouldn’t mind me taking a look at? I’d be happy to see if I can reproduce this or if any steps can be taken to adjust the landscape accordingly.
The heightmap size you’re importing doesn’t match a whole number of landscape components, which have a fixed size. The data is just being extended from each edge to match a whole number of components.
You could choose another component size that better matches the data, or you could discard the data at the edges by reducing the number of Components by 1 in the X and Y directions in the New Landscape panel. The “Overall Resolution” is the final size the landscape will be inside Unreal Engine, so compare that number to the Heightmap Resolution which is the resolution of the data in your file.
I got a decent result using a 255x255 component size and reducing the number of components to 24x12, which gives a final resolution of 6121x3061, vs the heightmap file which is 6144x3072.