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"

Post process custom depth on one side of mesh

Can a post process material be used to provide custom depth to one side of a mesh that uses a two sided material. So that one side is one colour and the other side is the other colour. I know this can be done in the material itself but can a post process be used also?

alt text

I'm currently trying something like this, although I don't think TwoSidedSign is the correct node to use. Ignore the subtract and clamp. The reason I want it in post process is so its always in front of fog with the use of custom depth.

Product Version: UE 4.20
Tags:
postprocess.jpg (88.6 kB)
more ▼

asked Feb 03 '19 at 01:36 PM in Rendering

avatar image

Darrel Leigh
3 1 7

avatar image Darrel Leigh Feb 05 '19 at 05:11 PM

alt text

For Anyone Interested, here is a workaround. It takes the base colour from the GBuffer and checks if its a certain colour. If it is that colour it will apply it to the emissive of a post process allowing the colour to show through on top of fog.

This has allowed me to have two sided material with only one side getting the custom depth (All Black) and the other side keeping its texture with fog applied, if that makes sense

.alt text

Edit: I have made several improvements to this, if interested, I will share those as well.

work-around.jpg (153.2 kB)
postprocess.jpg (80.5 kB)
(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