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"

How to hide outline post process effect behind objects

I created an outline effect following the instructions in this tutorial:

outline tutorial

I had to create the M_highlight material because I couldn't find it in the content examples. I think it is no longer available there. Maybe I messed that up. But I can't find any problem with it.

Anyway, most of the material works fine, I am perfectly happy with the outline. Only thing is, that it is drawn on top of the whole scene. So if I place an object in front of the object with the outline and do not activate its "custom depth pass" the outline of the other object is rendered on top of this. Like in this screenshot:

outline problem

Here is the material I recreated from the video:

M_highlight_rebuild

Any idea what i did wrong??? Every help would be much appreciated.

Product Version: UE 4.9
Tags:
outline_issue.jpg (40.4 kB)
highlightmat.jpg (336.4 kB)
more ▼

asked Oct 12 '15 at 07:46 AM in Rendering

avatar image

MrLurch
13 1 2 4

avatar image MrLurch Oct 13 '15 at 11:23 AM

Is there another way to do this, if it is not possible to achieve the desired result using the M_highlight material and post-processing?

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

2 answers: sort voted first
more ▼

answered Nov 03 '15 at 04:30 PM

avatar image

SayJ
26 1 1 1

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

Hi, you need to subtract ocluded parts from your Stencil / Custmom Depth:

alt text

occlusion.png (124.5 kB)
more ▼

answered Apr 30 '16 at 11:42 AM

avatar image

7hny
124 5 13 21

(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