Hello, I’d just like to know if it’s possible to apply a visual effect just on a particular object on UE. I’d like to make my character and only this one a pixelated effect on the camera and not the environment. If this is possible, do you have any links or advice?
try searching for custom stencil. you can use that on a postprocess to do an effect.
otherwise you can also use an overlay material, which incurs in one extra drawcall per object, but if it doesn’t cover the whole screen might be cheaper.
custom stencils seem to be a good solution, but I can’t find any tutorials on how to pixelize a particular object. If you have something like a youtube video I’m interested! thanks in advance!
no sorry dont know of a tutorial for that specific effect.
but it’s a pretty basic effect, if you understand what the stencil does you’ll figure it out easily.
you just need to quantize the uvs to pixelate something,
then sample the scene color twice, once with the pixelated uvs and one normally.
and then sample the custom stencil and compare with the value for your object.
then use that result to lerp between the quantized scene and the regular one.
here’s a plugin of mine it’s open source.
it has several material functions to quantize and to deal with stencils.
and has an “equals” that could be a bit faster than the “if”
if you don’t want to use the lerp you can use the If, though it could be slow.