# Trying to create AR hole-in-the-wall / portal effect with ARcore

**URL:** <https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989>\
**Category:** Rendering\
**Tags:** images, unreal-engine, Augmented-Reality, Blueprint, question\
**Created:** [August 5, 2018, 10:18am UTC](https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989 "2018-08-05T10:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cakezilla](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cakezilla/32/555373_2.png) [@cakezilla](https://forums.unrealengine.com/u/cakezilla)\
**Post date:** [August 5, 2018, 10:18am UTC](https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989/1 "2018-08-05T10:18:21Z")

</div>

Trying to generate an effect similar to this google ARcore demo:

[https://developers.google.com/ar/images/augmented-images-demo.mp4](https://developers.google.com/ar/images/augmented-images-demo.mp4)

I have got ARcore, UE4 source, augmentedimages and deployment to android working - so technically i’m ok.

Just trying to work out visually how to achieve such an effect? As currently - creating a blueprint with simply a box and elements inside them still shows the model through the wall when viewing from the side. The above effect is so mesmerizing as it looks like an actual hole in the wall.

ie: The issue really is how to ‘key out’ the sides of the boxes when viewed from the sides / not front on.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_709a0a4d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_709a0a4d](https://forums.unrealengine.com/u/anonymous_user_709a0a4d)\
**Post date:** [September 4, 2018, 1:26pm UTC](https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989/2 "2018-09-04T13:26:11Z")

</div>

You need to create a pass trough material.

Like this:  
[https://forums.unrealengine.com/filedata/fetch?id=1429453&d=1518753834](https://forums.unrealengine.com/filedata/fetch?id=1429453&d=1518753834)

---

<div class="post-metadata">

**Author:** ![cakezilla](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cakezilla/32/555373_2.png) [@cakezilla](https://forums.unrealengine.com/u/cakezilla)\
**Post date:** [October 14, 2018, 2:47am UTC](https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989/3 "2018-10-14T02:47:44Z")

</div>

Wonderful! I will give this some testing now, particularly as they hotfixed some ARcore issues in 4.20.2.

So I’m assuming this material is applied to the interior of the box-like surface I’m making?

---

<div class="post-metadata">

**Author:** ![Thoeme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoeme](https://forums.unrealengine.com/u/Thoeme)\
**Post date:** [February 15, 2019, 12:41pm UTC](https://forums.unrealengine.com/t/trying-to-create-ar-hole-in-the-wall-portal-effect-with-arcore/430989/4 "2019-02-15T12:41:17Z")

</div>

Did you manage to get a working solution out of this? Would need a similar effect for a current project and didn’t find anything useful.
