Make translucent glass opaque through post process or scene capture component?

Any idea on if there is a way to make it so transparent materials appear opaque through a scene capture component or through a post process material? For example I have a thermal optic using a render target, I would like to not be able to see through glass using this; however, I’m not sure how to achieve this effect efficiently.

Usually you exclude the meshes from rendering with the options or an actor list…

Would that method work in a scenario like this? through the optic I want it to see nothing as its looking at glass and shouldnt be able to see heat, I’m just not sure how to accomplish that while still being able to see it through the normal camera.

I assume you never had the priviledge to look through a heat scope.

Glass isn’t going to let the infrared pass, it’s going to reflect you full on.
Which would be painful to do in a game but not impossibile.

All smooth surface of metal will also reflect the environemt more than color themselves. Unless they are hot. In that case they color themselves and reflect for some trippy views.

That said, if for gameplay purposes you need to have glass not reflect, then excluding it from rendering is the best choice.

You are operating on the scene capture. The parameters for it can be different from the game camera / shouldn’t be an issue at all to exclude specific things…

“I assume you never had the priviledge to look through a heat scope.
Glass isn’t going to let the infrared pass, it’s going to reflect you full on”
Like I said " through the optic I want it to see nothing as its looking at glass and shouldnt be able to see heat". I’ll look through the scene capture and try to do what you suggested.

Some miscommunication here.
It’s not that you will not be able to see heat - you will see heat, from the reflected environment.
It will basically look like a solid metal wall to an IR scope.

In which case, you can’t really “not render” it.

The working alternative to this is to use stencils.
You set glass to a custom stencil, and then you apply the color to the stencil over a post process so that it appears as solid - reflections within the PP are almost impossible anyway.

1 Like

Thats a clever idea!

Thank you again!


1 Like