New dev - How to dynamically grab neightboor/material color for outline post process

Rademon
Tue, 17 Jun 2025 02:38:11 +0000
Rendering

Hello everyone! I hope you’re doing ok.

I followed this great tutorial to create a outline post process material https://www.youtube.com/watch?v=9KvUfnrHcqM&list=TLPQMjkxMTIwMjTRafr2u88eyQ and it is working great but what I would like to do is change the hardcoded color I gave it to a group of node or a function that would be able to grab the color of the pixel next to it that is inside the outline and set the color to a darker version of it only for this pixel so tree leaves get a dark green outline, walls get a darker version of their colors etc. Hopefully something dyanamic that can work with multicolored characters/materials/environment instead of a fix of manually setting ONE outline color for each object even if they have more than 1 material and/or color.

While looking for something like this I stumble on that old post and that’s basically what I want. (I have no idea if we can private message others were aren’t friends with here though and couldn’t find the option so that’s why I’m asking here :)) https://forums.unrealengine.com/t/how-to-color-outlines-by-objects-material-color/2159080

Thanks for reading me, have a nice day!

3 posts - 2 participants