# How to display a mesh through another mesh, like an x-ray?

**URL:** <https://forums.unrealengine.com/t/how-to-display-a-mesh-through-another-mesh-like-an-x-ray/2318508>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, Blueprint, question\
**Created:** [February 5, 2025, 8:58am UTC](https://forums.unrealengine.com/t/how-to-display-a-mesh-through-another-mesh-like-an-x-ray/2318508 "2025-02-05T08:58:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [February 5, 2025, 9:10am UTC](https://forums.unrealengine.com/t/how-to-display-a-mesh-through-another-mesh-like-an-x-ray/2318508/2 "2025-02-05T09:10:17Z")

</div>

Hey there @WDRK23! You could use custom depth stencils, and the only object not occluding it being the character mesh, sort of an inverse of this thread here:

> [@How to use custom depth selectively for certain objects?](https://forums.unrealengine.com/t/how-to-use-custom-depth-selectively-for-certain-objects/842232):
>
> Hi, I want to implement occlusion hightlight using materials. When my character is occluded by some objects it can still emit some color rather than being totally invisible. Here is my material blueprint: and here is the result: where I use an infinite post process volume and set my character’s Render CustomDepth Pass to true. Now everyhing works fine. But the problem is: anything that blocks my character will make an effect on the custom depth, but I really want some con…

Would that work for your use case?

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-display-a-mesh-through-another-mesh-like-an-x-ray/2318508)._
