# Weightmap does not match landscape extends?

**URL:** <https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193>\
**Category:** World Creation\
**Tags:** unreal-engine, import, blend, Landscape, question\
**Created:** [June 18, 2014, 11:56am UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193 "2014-06-18T11:56:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_623fd206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_623fd206](https://forums.unrealengine.com/u/anonymous_user_623fd206)\
**Post date:** [June 18, 2014, 11:56am UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/1 "2014-06-18T11:56:51Z")

</div>

I get this error importing weightmaps into the layerinfo:

**_…/Terrain/flow\_test.raw’s filesize does not match with current Landscape extent._**

I export from World Machine with a _Height Output_ in 8bit RAW. I also tried exporting with _Bitmap Output_ into PNG format, but nothing works. I always get the same error.

I also tried to change the resolution to power of 2 vs the terrain Heightmap which is 4097x.

Any idea how to do this right?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_623fd206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_623fd206](https://forums.unrealengine.com/u/anonymous_user_623fd206)\
**Post date:** [June 18, 2014, 12:29pm UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/2 "2014-06-18T12:29:31Z")

</div>

Nevermind I got it working. I exported a layerinfo from UE4 to understand how it was made.

The resolution was 4081, vs 4097 for the terrain heightmap.

Now the question is why? How can you know what resolution is needed based on the terrain heightmap? What is the math behind it?

Any info on that would be apreciated.

---

<div class="post-metadata">

**Author:** ![Vaelek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaelek](https://forums.unrealengine.com/u/Vaelek)\
**Post date:** [January 31, 2016, 4:09am UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/3 "2016-01-31T04:09:09Z")

</div>

For anyone that stumbles on this as I did, the answer is on the Landscape tab, under Manage. Make sure to select Change Component Size at the top, and then look at the overall resolution.

---

<div class="post-metadata">

**Author:** ![Steamy\_Steve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steamy\_Steve](https://forums.unrealengine.com/u/Steamy_Steve)\
**Post date:** [October 29, 2017, 1:33pm UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/4 "2017-10-29T13:33:00Z")

</div>

I’m facing the same problem and I’m sorry to inform you that your answer is not clear. =p

If I apply the material BEFORE importing the terrain heightmap, everything fits perfectly and every texture is placed where the masks tell them.  
If I apply the material after importing the terrain heightmap, then applying texture maps result in the “filesize does not match with current Landscape extent” error.

How is knowing the current terrain resolution going to help me? Do I have to rebake all the maps to that resolution (madness!)? I tried, it doesnt work, I get the same error.

Thank you.

---

<div class="post-metadata">

**Author:** ![Vaanian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaanian](https://forums.unrealengine.com/u/Vaanian)\
**Post date:** [February 12, 2018, 12:33am UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/5 "2018-02-12T00:33:05Z")

</div>

also having this issue any one find a fix yet?

---

<div class="post-metadata">

**Author:** ![Lupoluke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lupoluke](https://forums.unrealengine.com/u/Lupoluke)\
**Post date:** [October 20, 2018, 6:58am UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/6 "2018-10-20T06:58:41Z")

</div>

Try using an heightmap png on 16 bit precision.

That should fix the issue.

---

<div class="post-metadata">

**Author:** ![C64debug](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C64debug](https://forums.unrealengine.com/u/C64debug)\
**Post date:** [August 27, 2022, 3:23pm UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/7 "2022-08-27T15:23:37Z")

</div>

Still seeing this.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/1/031fec46280d7aabea041c2344cf5a5a238d45a8.jpeg)

Clearly the landscape is there and has a resolution of 4033, same as the import image. Any clues?

---

<div class="post-metadata">

**Author:** ![C64debug](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C64debug](https://forums.unrealengine.com/u/C64debug)\
**Post date:** [August 27, 2022, 3:25pm UTC](https://forums.unrealengine.com/t/weightmap-does-not-match-landscape-extends/286193/8 "2022-08-27T15:25:56Z")

</div>

Ok for anyone stumbling here: use RESAMPLE as import type, adjust image to size specified in the first error message. I’ve used a 16-bit png.
