# Are all mobile devices supposed to support custom stencils?

**URL:** <https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442>\
**Category:** Rendering\
**Tags:** Mobile, UE4-15, stencil, unreal-engine, question\
**Created:** [April 9, 2017, 9:37pm UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442 "2017-04-09T21:37:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cee91d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cee91d3](https://forums.unrealengine.com/u/anonymous_user_6cee91d3)\
**Post date:** [April 9, 2017, 9:37pm UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/1 "2017-04-09T21:37:54Z")

</div>

Hello,

In the last release notes ([https://www.unrealengine.com/blog/unreal-engine-4-15-released](https://www.unrealengine.com/blog/unreal-engine-4-15-released)) , it is said that mobile devices now support custom stencils. I made one for my game and it works on my PC but not on my phone (LG G4). Is this a bug or is it normal?

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_afd92cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_afd92cec](https://forums.unrealengine.com/u/anonymous_user_afd92cec)\
**Post date:** [April 13, 2017, 7:50am UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/2 "2017-04-13T07:50:06Z")

</div>

Hi, could you share a screenshot of PP material that uses CustomStencil ? And make sure that MobileHDR is enabled in your project settings.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cee91d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cee91d3](https://forums.unrealengine.com/u/anonymous_user_6cee91d3)\
**Post date:** [April 14, 2017, 4:49pm UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/3 "2017-04-14T16:49:05Z")

</div>

Hello,  
Sure thing! I was going to take screenshots but it’s a pretty big blueprint, it wouldn’t have been super readable. I got the material from here: [Multi-color Outline Post Process - Tom Looman](http://www.tomlooman.com/multi-color-outline-post-process-in-unreal-engine-4/)

I haven’t modified it so you can try it as-is.  
In my project settings, I have enabled Mobile HDR and I have also set ‘Custom Depth-Stencil Pass’ to ‘Enabled with Stencil’. I have a PostProcessVolume around my play area with the PP\_OutlineColored\_Inst in the Post Process Materials array, with an effect value of 1.0.

Here is how I turn the stencil on or off for my objects:

 ![134242-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/0/e30def1ee8cdb6215a38ec94ab33c3b6635135b9.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_afd92cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_afd92cec](https://forums.unrealengine.com/u/anonymous_user_afd92cec)\
**Post date:** [April 26, 2017, 3:10am UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/4 "2017-04-26T03:10:19Z")

</div>

Sorry for the delay. Does this outline works in editor when you switch to mobile preview mode? (MainToolbar - \> Settings → Preview Rendering Level → Mobile → Default Mobile)

Also could you attach here log output when you start project on that device? To get filtered log from device you can enable Device Output Log window in editor. (Editor Preferences → Experiemental → Device Output Log) it will appear in MainMenu - \> Windows.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cee91d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cee91d3](https://forums.unrealengine.com/u/anonymous_user_6cee91d3)\
**Post date:** [April 29, 2017, 3:58pm UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/5 "2017-04-29T15:58:57Z")

</div>

No problem. The stencil doesn’t show up on PC when in mobile preview mode.

I have attached the [log file][1]. Note that there might be some errors related to another bug.

Thanks

[1]:

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_afd92cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_afd92cec](https://forums.unrealengine.com/u/anonymous_user_afd92cec)\
**Post date:** [May 8, 2017, 3:53am UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/6 "2017-05-08T03:53:52Z")

</div>

I have downloaded that material and it works in mobile preview for me. However I don’t do dynamic modifications of stencil values as in your BP. Could you attach here a small project that repro this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cee91d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cee91d3](https://forums.unrealengine.com/u/anonymous_user_6cee91d3)\
**Post date:** [May 11, 2017, 1:36am UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/7 "2017-05-11T01:36:36Z")

</div>

I have tried to reproduce it but I couldn’t. I have, however, found a way to fix it in my game when trying to create the test project. If I set the blend weight of my camera to a value other than 1, the stencil appears.

My camera is a Blueprint inheriting from a C++ class AMyCamera that itself is derived from ACameraActor. Both the C++ class and Blueprint don’t do anything special, only display text on specific events.

I do not understand why changing the blending weight affects the stencil in my project but it works. It’s especially weird since it only does it on mobile/mobile preview.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_925ef970](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_925ef970](https://forums.unrealengine.com/u/anonymous_user_925ef970)\
**Post date:** [June 2, 2018, 2:39pm UTC](https://forums.unrealengine.com/t/are-all-mobile-devices-supposed-to-support-custom-stencils/390442/8 "2018-06-02T14:39:58Z")

</div>

Hi, I don’t use any lightning feature on my game, only the stencil, Is there a way to only activate HDR for that or something like that?
