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 render custom mask pass

Hi Guys,

I am using UE4 for an animation project and I'm trying to render out a custom pass which only masks out a selected character. I tried the Custom Depth method, but it doesnt occlude the objects in front of the character. How do I go about getting an alpha mask just for one character?

I also tried the Opacity render pass. It almost works the way I want to, though I have no idea how it decides what to render and what not to. As you can see, it doesnt include the character's hiar, eyes and shoe materials. But i do like how it occludes the foreground objects unlike the Custom Depth

alt text alt text alt text

Product Version: UE 4.13
Tags:
more ▼

asked Oct 04 '16 at 12:17 AM in Rendering

avatar image

Abeysaurus
139 12 21 27

avatar image YoungSun3d Nov 22 '16 at 01:49 AM

hi,i want to know how to render two time to get beauty pass and mask pass overlap? render two time with one pass~?

avatar image Ed Burgess ♦♦ STAFF Nov 22 '16 at 04:24 PM

Hi YoungSun3D,

Please make a new post in the rendering section regarding to your question. We like to keep separate threads for each question so that those searching through answer hub can find what they are looking for easier.

Thanks,

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hi Abeysaurus,

Custom depth was the right thing to use in this instance you just need a little bit of extra work to get the effect you want. Here is an example of a material graph that will mask out things assigned a custom stencil value of one and still gets occluded by the environment (assuming you only need a stencil value of 1 for the alpha). alt text

Let me know if that helps,

Ed Burgess

more ▼

answered Oct 04 '16 at 05:19 PM

(comments are locked)
10|2000 characters needed characters left

Hi,Can you give me a detailed procedure? I really don't know how to use this material. thank you !

more ▼

answered Sep 25 '18 at 03:38 AM

avatar image

山楂卷
6 1 1

(comments are locked)
10|2000 characters needed characters left
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