How to Change the Color Post Process Material ????

(My Question it at the bottom sorry for to much pictures)

I have a Post Process Material Called “M_InteractHighlight”.

And when i overlapp a weapon i set rendercustom depth and it shows a white outline on the weapon.

What i want now is when i look at a enemy for example then i want to highlight the enemy but then with a outline with a red color

So Can someone help me with How i can Change the Color of the Post Process Material via Blueprint???

For example i want the outline to be red
how can i do that via blueprint

Hey there, you need to use custom depth with stencil explained here.

How do i call it to work via Blueprint when i overlap a object?? i have done everything as the explanation of tom Looman. but he didn’t tell how to use it

if you cant see i have used :

-Set render custom depth

-Set render main pass (dont know why)

-Set render mono (dont know why)

-Set custom depth stencil value

none have turned the outline on.

What do you have in the Post Process Materials array in the post processing volume?

Now that i think about it i wasn’t able to get it to work using tom’s material, i used another one i had. Try copy and paste this to your material editor. I changed it for my needs, 0 is Red, 1 is Green and 2 is White.

same as what you send me so PPI_OutlineColored

men can you tell me how to paste that i am struggling with it xD,
i just copied all code and did Ctrl+v in the editor it gives a error like confliting node substitute during paste!

Extract and copy the uasset file to your project on Content\Materials folder link text

This file is 4.18, so that’s why it probably doesn’t work. You might need to duplicate the PPI_OutlineColored asset, clear all the nodes and copy and paste what i sent you

bro sorry but it doesn´t work

i have copy´d the uasset file into my content/materials folders it doesn’t show i have restarted the editor like 4 times ???

alright i am now downloading 4.18

the material you send me i could just only use it in 4.18 ,

When i tried it to copy from the ue4 v4.18 to ue4 v4.15 it didn’t work and crashed the project always i have tried to copey just one node and it still crashed xD.

Then i decided to just type the nodes over , the material of tom was similar but i had to add little stuff and change somestuff like customdepth etc.

When i tested it , it Worked!

So thank you very much for u time and help i appreciate it

Good to know :slight_smile:

Hey xlar8or, thanks a lot for this material. I have two questions though:

  1. How can I change the outline color?
  2. Is there a way to not only outline, but also “tint” the whole actor with a semi-transparent color?

Thanks in advance!

The value that you set for the Custom Depth accessible on the post process material with the scene texture custom depth w/ stencil node. With that value you basically do a switch on the material and set which color is used for each respective value. The outline is just an example of what you can do with the post process material, so you can tint the whole actor with a semi transparent color.