Object outline highlights when looking at

Hi guys,

I am really stuck on this… tried to follow all the tutorials out there to no prevail.

Basically I am making a interactive Casino table where you can can change the materials of the table, padding, bases ect. I have managed to learn how to do that, so once you walk up to it a text box coming up with “padding” for example and when you press X it changes the material.

Because there are so many things that you can change on the table, It would be cool if when your looking at a certain part, it lights up. I have created a Material that when the “Render custom depth Pass is ticked” it is highlighted. But this is constant.

Is there a way where when you approach the table, whatever part you are looking at then highlights? And then when you look away it then unhighlights?

Hope this makes sense…

Is there any tutorials on this? Or a quick look at a blueprint? This is around my 3rd week of unreal so i’m quite new :frowning:

i would imagine you could use a line trace to determine what is beneath your crosshair / what your looking at, then get the hit actor or component and change a parameter in the material.

So do you already know how to make it outline using Post Process, and you just need to be able to turn specific objects’ outlines on/off?

I don’t know if this will help but this guy seems to know what he’s doing:

1 Like

is there a free option?

Yes, there are several techniques you can use. Most rely on post processing features that won’t work on mobile devices running forward render ES2 without mobile HDR, (post process needs deferred render). There is a way that works without post process, too, but is more limited in how it works and how good it looks.
So, making your own outliner is free, but time consuming.

“Advanced Cel Shader Lite” is an Asset Pack that mentions outlining options. It’s permanently free in the Marketplace. I haven’t tried it, but maybe that will work for you?

Fast and dirty method which uses no traces and no special materials:

Add a spot light to your camera facing in the camera’s direction. Set its Channel to 1. Then, for each thing you want to illuminate, set Channels to 0 and 1 (they will have 0 by default). Done. Anything you look at will be illuminated by the spot light, which you can colour, dim, brighten, switch on and off, etc, in the normal ways.

Scy