# Migrating Landscape Reduces Texture Sample Limit

**URL:** <https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246>\
**Category:** Asset Creation\
**Tags:** migrate, unreal-engine, Landscape, question, landscape-layers\
**Created:** [February 23, 2021, 2:40am UTC](https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246 "2021-02-23T02:40:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [February 23, 2021, 2:40am UTC](https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246/1 "2021-02-23T02:40:56Z")

</div>

A Landscape Material I use currently has 12 textures (6 Diffuse, 6 Normal) and 7 layers.

When I migrate the map to a new project (for a quicker build), the landscape texture limit of 12 is reduced to 10 (not 11). I refer to [this answer][1]. With more than 10 textures, the Landscape Material will not compile for that section of the map. The Default Material is used instead.

An warning message is produced.

```
PackagingResults: Warning: Failed to compile Material {path/to/material} (MI:{path/to/heightmap}{:PersistentLevel.LandscapeStreamingProxy_0.LandscapeMaterialInstanceConstant_276) for platform PCD3D_SM5, Default Material will be used in game.

```

To fix this issue, I removed 2 textures (1 Diffuse and 1 Normal). In the following pictures, you can see the sand textures performing double duty as the gravel path.

**Original landscape** (12 Textures, 7 Layers):

 ![330535-landscapeerror-12txt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/5/1959d8250d90c96614a82d6a9bad1a5c017eddf2.png)

**Landscape after Migrate** (with compile warning)

 ![330536-landscapeerror-matnocompile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/8/ce839e6741c5124d4ffbea05048c9aacf47bf6a4.png)

**Landscape fix** (10 Textures, 7 Layers)

 ![330537-landscapeerror-10txt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/0/310b09d9ff8bed44ff8ffa2dfaba650295675c3a.png)

This project was updated from 4.24 to 4.26. And due to issues with the Water Plugin, I checked and then unchecked the “Use Landscape Layers” box. I had also experimented with both forms of VT, but abandoned that. All this was done before migrating.

Finally: The heightmaps did not migrate with the map, I had to migrate them separately.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [February 23, 2021, 2:42am UTC](https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246/2 "2021-02-23T02:42:57Z")

</div>

Note: this Landscape Material also has 3 Landscape Grass Output layers. No issue there it seems.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 23, 2021, 9:08am UTC](https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246/3 "2021-02-23T09:08:30Z")

</div>

Did you change your textures in the landscape to use ‘shared: wrap’?

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [February 24, 2021, 4:12am UTC](https://forums.unrealengine.com/t/migrating-landscape-reduces-texture-sample-limit/479246/4 "2021-02-24T04:12:31Z")

</div>

I could. But I prefer not to. Don’t want to go overboard. Officially, there’s no downside to using Shared:wrap.

[https://forums.unrealengine.com/development-discussion/rendering/114976-downsides-to-using-shared-texture-sampler-source](https://forums.unrealengine.com/development-discussion/rendering/114976-downsides-to-using-shared-texture-sampler-source)

This is a bug report. Thought it was important. Hopefully, they find a fix.
