# Occlusion missing on render texture

**URL:** https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811
**Category:** I'm Stuck
**Created:** [October 21, 2022, 1:24pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811 "2022-10-21T13:24:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Merijn\_Kersten](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/merijn_kersten/32/1277_2.png) [@Merijn\_Kersten](https://community.nianticspatial.com/u/Merijn_Kersten)
#### Post date: [October 21, 2022, 1:24pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/1 "2022-10-21T13:24:20Z")

</div>

- **Issue category** : Occlusion
- **Device type & OS version** : iOS
- **Host machine & OS version** : Mac
- **Issue Environment** : On Device
- **ARDK version** : 2.3.0
- **Unity version** : 2021.3.11

Description of the issue:  
Hey all! I’m trying to get a duplicate of my AR view so i can cast it to another screen. At first this seemed to be simple by setting up a normal AR camera and outputting to a render texture that i can rotate on a screen (since most tv’s don’t support this by default). When i do this however i don’t get the occlusion to display correctly, just the camera feed and the 3D objects on top of that.

My question is, is this intended behaviour?

Thanks!

---

<div class="post-metadata">

### Author: ![Bill\_McLaughlin](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/bill_mclaughlin/32/35_2.png) [@Bill\_McLaughlin](https://community.nianticspatial.com/u/Bill_McLaughlin)
#### Post date: [October 21, 2022, 10:25pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/2 "2022-10-21T22:25:42Z")

</div>

Hi Merijn, this sounds like the expected behavior for Depth Occlusion but maybe I’m not understanding your use case correctly. Can you give us a bit more background about what this project is trying to do?

---

<div class="post-metadata">

### Author: ![Merijn\_Kersten](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/merijn_kersten/32/1277_2.png) [@Merijn\_Kersten](https://community.nianticspatial.com/u/Merijn_Kersten)
#### Post date: [October 24, 2022, 3:29pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/3 "2022-10-24T15:29:50Z")

</div>

Reading back my original post it doesn’t make a lot of sense 🙂

So what i’m trying to do is the following:

- Render an AR scene on my iPad, this includes the camera feed and the augmented objects in it.
- On another iOS device i’m using Airplay to cast my camera feed.

This all works but i need to rotate my camera feed 90 degrees so it displays in portrait mode even on screens that don’t support this natively (which is most of them) and also i need to show different UI elements on this screen, the operator will have some debugging tools on the ipad but the person being photographed only has to see a countdown.

---

<div class="post-metadata">

### Author: ![Merijn\_Kersten](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/merijn_kersten/32/1277_2.png) [@Merijn\_Kersten](https://community.nianticspatial.com/u/Merijn_Kersten)
#### Post date: [October 24, 2022, 3:33pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/4 "2022-10-24T15:33:25Z")

</div>

![Screenshot 2022-10-24 at 17.32.01](https://us1.discourse-cdn.com/niantic/original/2X/4/49f55f0dc532d1daeb642b8994e2a88856da968a.png)  
Here’s a visual of what i’m trying to achieve.  
It all works already with the exception of occlusion of AR objects, they get displayed in full regardless of depth manager options.

---

<div class="post-metadata">

### Author: ![Merijn\_Kersten](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/merijn_kersten/32/1277_2.png) [@Merijn\_Kersten](https://community.nianticspatial.com/u/Merijn_Kersten)
#### Post date: [October 25, 2022, 9:29am UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/5 "2022-10-25T09:29:45Z")

</div>

Update on my problem: It works when switching the occlusion mode to screen space mesh!  
Right now i can make it work by rendering the camera view to a render texture and rendering the AR rendering manager to a separate render texture, then overlaying the 2.

---

<div class="post-metadata">

### Author: ![Maverick\_Niantic](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maverick\_Niantic](https://community.nianticspatial.com/u/Maverick_Niantic)
#### Post date: [March 5, 2026, 11:50pm UTC](https://community.nianticspatial.com/t/occlusion-missing-on-render-texture/2811/6 "2026-03-05T23:50:00Z")

</div>

Age
