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"

Determining if a world position is visible in a Post Process Material

I am trying to create a post process material and I have come across a problem which I cannot seem to solve on my own:

I have a mask created following this tutorial: http://oliverm-h.blogspot.de/2014/08/ue4-localized-post-process-effects.html

I am using setup #1 under the box section. However, when the bounds specified by "BoxCenter" and "HalfBoxSize" overlap something (that hides a section of the box), it still includes the hidden part in the white part of the mask.

How do I expand on that technique so that only visible areas are included and ares that are not are just black?

Thanks in advance!

PS: My material is EXACTLY identical to the one shown in the article!

Product Version: UE 4.9
Tags:
more ▼

asked Sep 08 '15 at 09:17 PM in Rendering

avatar image

Zack Frost
28 6 6 8

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

1 answer: sort voted first

Hi Zach -

We actually have made this functionality a little easier for you. In 4.9, there are now Box Masks. So, if you setup your Post Process Material like this:

Material

You can end up with the effect you are after, like this:

Results

Thank You

Eric Ketchum

boxmask.jpg (187.3 kB)
boxmask_results.jpg (120.7 kB)
more ▼

answered Sep 09 '15 at 03:58 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 736

avatar image Zack Frost Sep 09 '15 at 06:05 PM

Thanks so much! I will try it out in a half an hour or so, when I get home!

avatar image Zack Frost Sep 09 '15 at 06:48 PM

You are a life-saver Eric! It works like a charm now!

Zack

(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