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?
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?
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.
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.
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.