# Texture not visible in viewport

**URL:** <https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614>\
**Category:** Blueprint\
**Tags:** unreal-engine, layer, UE4-27, question\
**Created:** [March 14, 2022, 7:09am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614 "2022-03-14T07:09:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 14, 2022, 7:09am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/1 "2022-03-14T07:09:17Z")

</div>

There is a warning that the grass map needs to be rebuilt. I have an automaterial that I want to overlay with a layer with the roots of the trees, I selected the layer in the Paint menu after the shaders are compiled, but the place that is painted with the layer with the roots is s  
een as gray mesh squares.

 ![15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/1/03172eef573ed39e5941748215b1232abb0227c7.jpeg)  
 ![4454](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/7/c67e4d17f078e5c2ea8f071de5e1a59f7b6e152d.png)  
There is a warning that the grass map needs to be rebuilt. I have an automaterial that I want to overlay with a layer with the roots of the trees, I selected the layer in the Paint menu after the shaders are compiled, but the place that is painted with the layer with the roots is seen as gray mesh squares. What are these errors and how are they caused?  
Shared: Wrap cannot be specified, I have grass and roots textures and there is no place to specify Shared: Wrap. Texture samples I did not create for any texture.  
Done with this function:  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/f/dafe0252a03969fa8d0c764d7cbb36bc61e6ff66.png)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/3/f43abca57527d3a64b5a058a11279e6e53bf8f5c.png)  
What are these errors and how are they caused?

---

<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:** [March 14, 2022, 8:11am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/2 "2022-03-14T08:11:53Z")

</div>

Have you tried selecting all your textures and changing sampler source to ‘shared:wrap’?

( in the material )

---

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 14, 2022, 8:28am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/3 "2022-03-14T08:28:14Z")

</div>

I don’t know where to specify shared:wrap in textures, I don’t have a sample node in my project, all textures are in the Landscape Material Instance file

 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/1/3c1989ffb881cb821c69e775701a53e18708e0f7.jpeg)  
This is all my material with layers in separate files layer01…04  
 ![5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/d/24d0be5969dc2f7c7cb75c418a95cfc7579919a7.png)

---

<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:** [March 14, 2022, 9:08am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/4 "2022-03-14T09:08:07Z")

</div>

In the texture sample nodes, inside the material functions

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/c/abc26aac38d337a7cf66074ff08827889fc03190.png)

But if it’s a pre-made material, maybe this has already been taken into account.

---

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 14, 2022, 9:15am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/5 "2022-03-14T09:15:58Z")

</div>

In the layer function, the value is set to white

 ![6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/d/00d5517d5b2309d8d380d8c6b04ea766a9fadb30.jpeg)

---

<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:** [March 14, 2022, 9:20am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/6 "2022-03-14T09:20:56Z")

</div>

These ones

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/7/ca75779b27036e0b7b9f4d7c71648d2a704bbf27.png)

---

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 14, 2022, 9:29am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/7 "2022-03-14T09:29:17Z")

</div>

Inside the layer function, there are textures, but this is not the sample texture. As I understand it, you need to flip the texture with the normals up?

 ![7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/7/3c78752a426ed42948378eb171dbd09d0d285c62.jpeg)

---

<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:** [March 14, 2022, 9:33am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/8 "2022-03-14T09:33:23Z")

</div>

It’s a texture object, so you’re stuck.

I don’t see that many layers in your material, I don’t think you should be getting this problem…

---

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 14, 2022, 9:49am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/9 "2022-03-14T09:49:46Z")

</div>

I myself don’t know what kind of problem this is, while the problem exists, I’ll try to fix it, but I’m sure that I need to create automaterials and materials somehow differently.

---

<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:** [March 14, 2022, 9:59am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/10 "2022-03-14T09:59:37Z")

</div>

It looks just like the texture memory problem. It happens when you add a new layer to your landscape.

I searched around, and saw people discussing the problem when you had texture objects, and the only solution they had was copying everything into the material… :-/

Like I say, it may not be that…

---

<div class="post-metadata">

**Author:** ![D13on](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d13on/32/467350_2.png) [@D13on](https://forums.unrealengine.com/u/D13on)\
**Post date:** [March 14, 2022, 12:41pm UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/11 "2022-03-14T12:41:22Z")

</div>

Also not sure, but some things to try i guess…  
Do you need texture object because of some blend?  
If not then change them to texture2d parameters would be fine and you can also set them to wrap  
as clockwork suggested. How many layers does your landscape have? Try to look in your project settings and increase the max landscape layer count, i believe 8 is standard.  
Also depending on how many changes you have made to the material since last testing it sometimes helps to remove material, delete layer info’s and recreate them. Sometimes when testing materials and making changes the layerinfo’s can be a bit iffy.  
And depending on where your normal maps come from you may need to flip the Y channel yes, but that would not give this issue it would only make the normals look strange.  
Also right click on your landscape layers and remove all painted layers and then just test them one by one to see if perhaps the issue is with one layer that may be setup incorrectly compared to the other ones.

---

<div class="post-metadata">

**Author:** ![Gipokampus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gipokampus/32/468377_2.png) [@Gipokampus](https://forums.unrealengine.com/u/Gipokampus)\
**Post date:** [March 20, 2022, 5:37am UTC](https://forums.unrealengine.com/t/texture-not-visible-in-viewport/506614/12 "2022-03-20T05:37:55Z")

</div>

Hi [D13on](https://forums.unrealengine.com/u/D13on), in general, I tried all your recommendations, nothing helped, all other layers work except for additional layers, I have 8 layers in the scene, no more. I deleted and re-added the layer, it did not work either. The layers must blend.
