Hello! I am trying to use a post processing custom depth mask to make the characters in my game flash red when hit. I’ve gotten it to work just fine with one character, but I want multiple characters to be able to do this. Is there a good way to make it so that multiple actors can use the same custom depth mask? For reference, here is the video tutorial I followed to get this working:
Here are a few screenshots of how I have it set up at the moment.
Post processing volume Details panel:
Character Details panel:
Custom depth material blueprint:
Hi there,
I believe you want a more complex shader for multiple values of custom depth. Perhaps this video can give you insights.
(1) Enhanced Vision Effect - (Unreal Engine 4 Tutorial) - YouTube
That’s super helpful, thank you! It’s still not working, but I think I understand it better. The problem with this is, no matter what custom depth stencil value I give the other actors, they don’t get the rendering effects. It’s still just the one actor.
Hi there,
I’ll see if I find anything helpful and share here.
I fixed it! The problem was that I was trying to change the color of the skeletal mesh, but the actors didn’t have skeletal meshes. They were all using static meshes! I added skeletal meshes to them, and now it’s working great. Thank you for your help!