# See ghosts only when they are behind a certain mesh or material

**URL:** <https://forums.unrealengine.com/t/see-ghosts-only-when-they-are-behind-a-certain-mesh-or-material/475338>\
**Category:** Asset Creation\
**Tags:** Post-Processing, invisible, custom-depth, unreal-engine, Rendering, question\
**Created:** [December 2, 2020, 9:24pm UTC](https://forums.unrealengine.com/t/see-ghosts-only-when-they-are-behind-a-certain-mesh-or-material/475338 "2020-12-02T21:24:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [December 2, 2020, 9:24pm UTC](https://forums.unrealengine.com/t/see-ghosts-only-when-they-are-behind-a-certain-mesh-or-material/475338/1 "2020-12-02T21:24:08Z")

</div>

I am trying to create an effect where some characters are invisible, except where they are overlapped by a certain material or other mesh between the camera and the invisible character. Wherever there is that other material or mesh intervening, their fully-rendered and lit pixels should show up.

This way I can make it so there is a special kind of glass substance in the game that allows you to see invisible ghosts and monsters through it.

I have tried using post process and custom depth to do this, but it fails when I make the monsters invisible by disabling their Render on Main Pass checkbox. The parts of them that are overlapped are still invisible ☹

How can achieve this effect?
