Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Are all mobile devices supposed to support custom stencils?


In the last release notes (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!

Product Version: UE 4.15
more ▼

asked Apr 09 '17 at 09:37 PM in Bug Reports

avatar image

23 3 3 8

avatar image ddvlost STAFF Apr 13 '17 at 07:50 AM

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

avatar image blen2r Apr 14 '17 at 04:49 PM

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: 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: Here is how I turn the stencil on or off for my objects

Thank you!

1.png (129.5 kB)
avatar image ddvlost STAFF Apr 26 '17 at 03:10 AM

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.

avatar image blen2r Apr 29 '17 at 03:58 PM

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

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


avatar image MiguelHQ Jun 02 '18 at 02:39 PM

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?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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?

more ▼

answered May 08 '17 at 03:53 AM

avatar image

ddvlost STAFF
1.3k 18 7 48

avatar image blen2r May 11 '17 at 01:36 AM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question