# Fake Occlusion For AR

**URL:** <https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332>\
**Category:** Rendering\
**Tags:** occlusion, Mobile-Renderer, AR, unreal-engine, Augmented-Reality, question\
**Created:** [February 13, 2019, 5:41pm UTC](https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332 "2019-02-13T17:41:01Z")\
**Posts on this page:** 4\
**Page:** 1

<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 13, 2019, 5:41pm UTC](https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332/1 "2019-02-13T17:41:01Z")

</div>

Hi all,

I’m trying to achieve the following:

I want to render a mesh in foreground as transparent and use that as kind of a “cutout” for everything behind it. I think the picture below will better describe what I’m trying to achieve than any words can:

 ![268490-occlusionexample.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/0/0d0ebd10454d2614707516e399042fb95d46832f.jpeg)

The reason I am after this, is to use it as kind of a fake occlusion effect for an AR app I’m currently developing. The automatically detected planes wouldn’t be sufficient enough in my case, because the app is used in an outdoor environment on a pretty big scale.

Has anyone of you wizards an idea how I can achieve this? Or can you think of a better method for this? Another important note is that the solution has to work for mobile.

For the folks who want to read more about the project:

I’m developing an AR app in which you can place various big scale objects based on their GPS coordinates relative to the players GPS location. To achieve this I use the integrated location services which work for both platforms (Android / iOS). I’ve also created the whole terrain and all the buildings as 3D models which I would like to use as “occlusion blocking volumes” for the augmented contents. Besides the occlusion I got everything working pretty nicely. The calibration is done in an manual manner by letting the user point at a real world landmark. This way I achieved a way better precision than using the smartphones compass or something similar.

Well any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![Cita\_To](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cita_to/32/488325_2.png) [@Cita\_To](https://forums.unrealengine.com/u/Cita_To)\
**Post date:** [May 30, 2019, 2:56am UTC](https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332/2 "2019-05-30T02:56:21Z")

</div>

are you found any solution? if yes, please share.I am working on a similar AR project.  
Thank you

---

<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:** [June 23, 2019, 11:50am UTC](https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332/3 "2019-06-23T11:50:15Z")

</div>

You can find the answer here: [https://github.com/google-ar/arcore-unreal-sdk/issues/49#issuecomment-504322447](https://github.com/google-ar/arcore-unreal-sdk/issues/49#issuecomment-504322447)  
I ended up using the custom built engine version 4.20 from the google ARCore branch, which you can get here: [https://github.com/google-ar/arcore-unreal-sdk/issues/49#issuecomment-504322447](https://github.com/google-ar/arcore-unreal-sdk/issues/49#issuecomment-504322447) because I needed version 1.6 of AR Core. But you should be able to use the official build 4.22 by now, because it includes 1.6 of AR Core.

---

<div class="post-metadata">

**Author:** ![NDmitriy98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NDmitriy98](https://forums.unrealengine.com/u/NDmitriy98)\
**Post date:** [October 16, 2020, 10:51am UTC](https://forums.unrealengine.com/t/fake-occlusion-for-ar/443332/4 "2020-10-16T10:51:49Z")

</div>

> **[Render in main pass AR (Android)](https://forums.unrealengine.com/questions/988932/render-in-main-pass-ar-android.html)**
>
> Hi! I’m trying to do invisible occluder in my Handheld AR project. When I disable “Render in main pass” and enable “Render in Depth pass” I expect the cube become transparent and it will occlude the red objects but it only works when I enable Custom...
