x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Translucent UI Materials sorting with translucent world objects on iOS

I have a fairly basic UMG widget for a HUD, that uses translucent UI materials, that appears to be flickering on and off (on iOS only) trying to sort with translucent objects in the world. Here's a short clip:

https://youtu.be/dYhSBuZ0SlI

There are quite a few translucent things in the world at different times, but in the second half of the video you can see that the translucent HUD parts disappear at the same time as the pick-axes are spawning their effects.

  • This doesn't happen on PC (the game has shipped on PC) or in Mobile preview, only on the device

  • Only the translucent "UserInterface" materials are having the issue - the alpha texture elements are fine

  • It worked ok on these devices before I converted to a code project and compiled/packaged on a Mac

  • Happens on both my devices - iPad 3 using ES2 and iPhone 6S Plus using Metal

So my first question is - is there anything iOS-shader-related that compiles differently on a Mac? Or depth buffer handled differently? Any random flags I can change that might affect sorting on the device?

This is a packaged shipping build.

Product Version: UE 4.13
Tags:
more ▼

asked Nov 17 '16 at 10:27 PM in Rendering

avatar image

Spoondog
465 13 26 40

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

1 answer: sort voted first

I wasn't able to figure this out in sufficient time so I just bit the bullet and converted my HUD to use only alpha textures and no UI materials. There are now no sorting conflicts with world particles. Pretty heavy limitation in the end but I can get away with it in my case.

For the record, some of the things I tried that didn't help:

  • Moving the (orthographic) camera very far back from the play area

  • Setting all particles to use fixed, small bounds (in case any were overlapping the camera near plane)

  • Deleted anything in the world that was possibly overlapping camera near plane

  • Increased the Z order of all widgets when adding to viewport

  • Tried unchecking any world materials with "disable depth test" checked

more ▼

answered Nov 28 '16 at 07:15 PM

avatar image

Spoondog
465 13 26 40

(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