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 a character through walls with full texture set

Struggling with a year with this problem.

I know how to use a post process material to render a character in flat shade through walls or an outline...but I need to be able to render his texture sets as well. Is there a way to do this? I know depth priority groups don't work anymore but they were seriously useful for things like 3D side-scrollers

See how the Boo ghosts are rendered on top and don't clip through

See how donkey kong is rendered on top

alt text

alt text

Product Version: UE 4.18
more ▼

asked Dec 11 '17 at 03:39 PM in Rendering

avatar image

114 14 23 32

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

1 answer: sort voted first

Let's assume you have set the custom stencil value of the main character to 1 for example. If you use translucent materials for the walls or platform, you could set the opacity to 0 if the pixel's custom stencil value equals the character's stencil value. The downside with this method is that you would have to put this logic in the material for anything that you want the main character to draw over.

more ▼

answered Dec 11 '17 at 11:36 PM

avatar image

16 5 4 9

avatar image S-ed Dec 12 '17 at 10:13 AM

you could set the opacity to 0 if the pixel's custom stencil value equals the character's stencil value

Are you sure? For my knowledge that's impossible. Since stencil buffer is available in post process shaders only, and you can't control opacity of a generic shader from post process (well, cause it's POST rendering stage).

avatar image Rijke Dec 12 '17 at 03:35 PM

I think translucent materials can still read the stencil buffer. At least I thought I could in 4.15. I would test it right now, but I don't have access to UE4. Perhaps doing this requires some special configuration that I forgot about?

avatar image Ghostblades Dec 12 '17 at 05:36 PM

thank you guys for the answers, do you perchance have any examples of this setup?

(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