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. 

Fixing Interference Between Opacity Mask and Outline

In a small project I'm working on, I have two visual effects I'm trying to use: an opacity mask that uses dithering to fade away objects near the camera, and a simple outline post-process effect. The problem is that, since the opacity mask discards the depth of pixels that are masked out, outlines are being drawn between the pixels that aren't masked, causing the faded objects to turn black.

My first attempt to solve this problem was to have the faded objects render to custom depth, and then exclude pixels with custom depth from the outline, but this caused the outlines to noticeably disappear once an object started to fade away. I want the objects that are faded to have fully visible outlines, or, even better, outlines that fade away with the objects.

If I could access the depths of pixels before they are masked away, I could easy use that to get the outlines at once, but even with early Z pass enabled, this doesn't seem to be possible. Is there any way I could get this depth, or any other way I could prevent outlines from being drawn between these pixels?

Faded object without outline: alt text

Faded object with outline: alt text

Product Version: UE 4.18
more ▼

asked Feb 14 '18 at 07:09 AM in Rendering

avatar image

Dominic A
1 1

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

0 answers: sort voted first
Be the first one to answer this question
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