# \[4.7.2\]\[Mobile\] Landscape masked material rendered wrong

**URL:** <https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583>\
**Category:** Rendering\
**Tags:** Mobile, UE4-7, unreal-engine, mask, masked, Landscape, question\
**Created:** [March 12, 2015, 12:28am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583 "2015-03-12T00:28:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [March 12, 2015, 12:28am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/1 "2015-03-12T00:28:15Z")

</div>

Hi,

I thought I’ll give the 4.7 release one more try and convert my simple project from 4.6.1 to 4.7.2.  
Unfortunately my masked landscape is rendered completely wrong on my device (preview is ok).

This is how it should look (launched from 4.6.1):

 ![33743-correct_461.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/d/d9df748c507e8f60d783a1f292089b429e74bb3b.jpeg)

This is how it looks when launched from 4.7.2:

 ![33744-wrong_472.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/2/af2c059775ec0daf66ca6a4e736b1cc92db236ed.jpeg)

The material (applied to both base and hole material slots):

 ![33745-m_maskedlandscape.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/8/e189e7be633a17ae4f6fd2b2eaa152a56741f1e1.png)

I checked the guidelines for mobile materials and effects and found nothing unsupported in my project. Had this issue on 4.7, 4.7.1 and on one of the Previews.

EDIT: The 1st LandscapeCoord uses UV0, the 2nd one uses the UV1 and the 3rd one uses UV0.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 12, 2015, 6:43pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/2 "2015-03-12T18:43:17Z")

</div>

Hey ,

Just to clarify, both images are taken from the device and not the preview?

Also, what mobile device are you using?

I am not as familiar with Landscape Visibility Masks, but I do know they have been known to have issues.You mentioned you went through the Mobile Texture/Material Guidelines so hopefully that is not your restriction.

I was able to find a very in depth AnswerHub post about Landscape Visibility Masks that might be able to direct you to a solution. I also read on a different post that for one user, simply restarting the editor worked.

**Landscape Visibility Masks**

> **[Landscape Visibility material bug](https://forums.unrealengine.com/questions/16947/landscape-visibility-material-bug.html)**
>
> I’m having an issue with landscape visibility. I added the masked material to my landscape, and am able to properly cut holes into my terrain - yet for some reason the component where the quads are being affected are changing to a grey texture. I...

I will do my best to help you find a solution to this issue and hopefully learn some additional things about masking landscapes and mobile materials. Let me know if you have reviewed the post and were able to find any pertinent information that could potentially help your case.

Cheers,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [March 13, 2015, 12:57am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/3 "2015-03-13T00:57:07Z")

</div>

Hi Andrew,

Sorry I wasn’t clear, both screenshots are taken from the device.

I have this issue on both my devices, a Galaxy Note 10.1 2014 Edition (SM-P605) and a Nexus 4.

Thank you for the link. I read this post a few releases ago, when I had exactly the same issue as the OP (Landscape Component getting black when drawing a hole on it). This time it is different, whole components are missing. But I tried all the fixes mentioned in the post anyway, unfortunately none of them worked.

I tried the restart trick, didn’t work. Although it worked with another issue I posted about [here](https://answers.unrealengine.com/questions/180123/47xandroid-landscape-showing-default-material-on-l.html). Maybe there is some connection between the two issues.

There are no problems launching projects on devices under 4.6.1, no missing/black Landscape Components, everything is fine. The both bugs were introduced in the 4.7 release.

I hope you guys will find a solution. I’d love to switch to 4.7 with its awesome new features as soon as possible.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 13, 2015, 10:02pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/4 "2015-03-13T22:02:36Z")

</div>

Hey again ,

No problem, and thank you for the clarification.

I just took a look at the post you linked and saw that we requested your project to get an in depth view of the issue. I will see if I can coordinate with the other staff member to find a resolution/fix for your issue.

Cheers,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [March 17, 2015, 10:03pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/5 "2015-03-17T22:03:40Z")

</div>

Hey Andrew,

wittlief got a copy of my project, but let me know if you need a link.

Thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 17, 2015, 10:31pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/6 "2015-03-17T22:31:38Z")

</div>

Hey ,

If you do not mind, please do give me the link via Private Message on the Forums.

Thank you,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [March 17, 2015, 10:52pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/7 "2015-03-17T22:52:36Z")

</div>

Sure, just sent you a message.

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [March 26, 2015, 12:55pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/8 "2015-03-26T12:55:47Z")

</div>

Hi Andrew,

I just wanted to ask wether there is a progress with my issue. Got a message from wittlief yesterday saying that the other bug was fixed and I thought/hope there’s a connection between the both issues,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 26, 2015, 6:38pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/9 "2015-03-26T18:38:09Z")

</div>

Hey ,

This issue should be resolved with the given fix Wittlief provided to you on the related post. As you mentioned on the post, it could be helpful to learn the GitHub workflow especially since the fix is directly affecting you. Or you can wait till 4.7.4 is released soon 🙂

Either way, I am glad we were able to get this issue addressed and hope that if you have further questions or issues in the future, you do not hesitate to ask.

Cheers,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 3, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/10 "2015-04-03T15:31:13Z")

</div>

Hi Andrew,

Unfortunately this issue is not resolved. Just upgraded to 4.7.4 and it’s still broken, but looks different:

 ![37210-screenshot_2015-04-03-17-17-13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/a/71aa0785da2c6b8b3cc8ae5980558775fa6de7da.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 3, 2015, 6:39pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/11 "2015-04-03T18:39:07Z")

</div>

Hey ,

So after running some tests internally, we are not getting the same results you are experiencing in the current engine version. Also, after consulting some other developers who were able to reproduce your issue before, they mentioned changing the shader version which re-compiles the DerivedDataCache folder which fixed the issue.

In your case, it seems like you are rebuilding with a ‘dirtied’ or corrupted DerivedDataCache folder. Try going into your Unreal Engine program files directory for the current engine version you are working with (4.7), and delete the DerivedDataCache folder. You will also want to go into the project folder for this particular project and delete the Project, Intermediate, Binary, Saved, and any DDC folders.

**Folders/Files to Delete**

 ![37252-ddcofengine.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/d/addc7193db88bf6d5245d2c5d9dafd1116648737.png)

![37255-projectfolder.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/6/5b698ae78c4afb5b438c9274509eadb65f122f0b.png)

After doing this and launching your project, you are going to need to wait a little bit for the engine to rebuild your shaders and re-configure your project. When you have completed this process, take a very simplified version of your Landscape Material (use image as example), rebuild, and launch on your device.

**Landscape Visibility Material**

 ![37250-landscapevisibilitymatsetup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/7/727794bb6e4b65242852273e9d0aa51320e574aa.png)

I enabled ‘Fully Rough’ and disabled ‘Use Lightmap Directionality’ for performance purposes.

Cheers,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 5, 2015, 12:12am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/12 "2015-04-05T00:12:37Z")

</div>

Hey Andrew,

I followed all your steps and even created a new clean project, still experiencing this issue.

How it looks in the editor:

 ![37406-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/f/0af60dc52a3d3f19748af38882da4e3bdf63742d.png)

And on the device (actually the same on both devices and in the Preview):

 ![37407-mobile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/1/371418fa147988709b66ed145c8c77ab5277dfe4.jpeg)

Now if I delete some holes and draw new ones, it would look like on the image in my previous reply, with darker areas and cut off holes.

Would it help if I completely uninstall and install the engine (I wanted to do it anyway)? And, which version of TADP do you use? Should I update it?

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 5, 2015, 1:23am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/13 "2015-04-05T01:23:56Z")

</div>

OK, I reinstalled the engine, the same results 😕

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 6, 2015, 1:33pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/14 "2015-04-06T13:33:22Z")

</div>

Hey ,

I would definitely grab the most recent TADP update. Hopefully this is the hidden piece to the puzzle because aside from that suggestion, we cannot seem to get the same results as one another.

With that being said, I am going to continue to troubleshoot this issue until we can get some type of resolution that works. After attempting to update your software development kit and still see the same outcome, let me know.

Cheers,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 6, 2015, 7:42pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/15 "2015-04-06T19:42:38Z")

</div>

Oh well… Updated TADP, nothing changed. Guys, I don’t want to downgrade back to 4.6.1, 4.7 is such a nice release 😃  
Please, don’t give up!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 7, 2015, 1:57pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/16 "2015-04-07T13:57:08Z")

</div>

Hey ,

No worries. We will figure this out.

Are both of your devices up to date as well?

Also, how are you deploying to your device?

‘Launch On’ or are you packaging your project and manually placing it on your device?

Thanks,

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 7, 2015, 3:12pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/17 "2015-04-07T15:12:23Z")

</div>

Hi Andrew,

Both devices are up to date, stock, no root. Nexus 4 is running Android 5.0.1 and Galaxy Note 10.1 2014 Edition (SM-P605) is on 4.4.2.

I’m always using ‘Launch On’, never tried packaging.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 8, 2015, 6:22pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/18 "2015-04-08T18:22:53Z")

</div>

Hey ,

Good news!

I was able to reproduce your issue on two different devices and went ahead and entered a bug report for this issue UE-13442.

As far as a time frame when a fix will be implemented I cannot say, but for now at least we got the bug entered so the issue will be fixed in a future version of the engine.

Thank you for your patience while troubleshooting your issue. If you have any other questions, comments, or concerns please let us know.

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_550b73f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_550b73f9](https://forums.unrealengine.com/u/anonymous_user_550b73f9)\
**Post date:** [April 29, 2015, 9:04am UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/19 "2015-04-29T09:04:57Z")

</div>

Hi , this bug has been fixed for 4.8 although I fixed it today so it won’t make it into Preview 1, but it should be in next week’s Preview 2.

Also, this won’t work around the bug, but your material setup is not really recommended. In versions 4.7 and below, you should use an Opaque material for your LandscapeMaterial and a Masked material for the LandscapeHoleMaterial - to use a masked everywhere should work but components without any holes will render slightly slower than they would otherwise.

Also in 4.8 you no longer need to supply a LandscapeHoleMaterial or worry about the Masked blend mode at all. If you setup your main Landscape Material with a LandscapeVisibilityMask node connected to OpacityMask and set your BlendMode to Opaque, it will work fine.

 ![40680-4_8_holematerial.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/d/fada7710d8efda19a7910f7573d02f9b7aa26d52.jpeg)

 ![40679-4_8_holeresult.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/3/0a335acd9b329dd54e9d6be567bfc1b069a9f96f.jpeg)

---

<div class="post-metadata">

**Author:** ![SONB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SONB](https://forums.unrealengine.com/u/SONB)\
**Post date:** [April 29, 2015, 10:38pm UTC](https://forums.unrealengine.com/t/4-7-2-mobile-landscape-masked-material-rendered-wrong/310583/20 "2015-04-29T22:38:48Z")

</div>

Thank you very much! Perfect timing.

I don’t know exactly what it was, but there was a rendering bug in a 4.6 release, where I had to assign the same masked material to both material slots to work around that old bug.

I like the new feature, can’t wait for 4.8.
