# Objects visible only through portals with no material change

**URL:** <https://forums.unrealengine.com/t/objects-visible-only-through-portals-with-no-material-change/2684848>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [December 13, 2025, 11:26pm UTC](https://forums.unrealengine.com/t/objects-visible-only-through-portals-with-no-material-change/2684848 "2025-12-13T23:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikuichi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikuichi](https://forums.unrealengine.com/u/Nikuichi)\
**Post date:** [December 13, 2025, 11:26pm UTC](https://forums.unrealengine.com/t/objects-visible-only-through-portals-with-no-material-change/2684848/1 "2025-12-13T23:26:01Z")

</div>

Hello everyone,

I am struggling quite a bit with an effect I want for my game.  
The effect itself is not that complicated and a practical way of doing it is even described here.  
[Using Stencil buffer - Development / Rendering - Epic Developer Community Forums](https://forums.unrealengine.com/t/using-stencil-buffer/149974/4)  
The goal is for chosen objects to be seen only through a portal or window, but not outside. Or vice versa, objects visible outside but not inside the window.

Again the effect I did manage to do via multiple methods, including the stencil buffer I just linked. There is a major constraint though. It is imperative for me not to change the look and material of any object affected by this effect. None of the methods I found complied with this.

That’s why I tried a bunch of things using a post process material to calculate the depth of the affected object versus that of the window to create a mask but to no avail.

I’d appreciate it a lot if someone can nudge me in the right direction.  
I should also add I am only using blueprints.

Thanks in advance for any reply.
