Using 4.24 on Android.
Been working on a small AR project and found that the passthrough camera feed won’t display (will just get black screen) in various scenarios but otherwise the AR sesion is functioning correclty. For example, with an image set up to track even when the screen is black you can still see any objects you attatch to tracked image.
The scenarios I have found where this happens are:
- on first run after launching on phone you get prompted for camera permissions but after accepting screen remains black. Closing the app and restarting, so you don’t get the permission prompt everything will then work fine
- Changing level in game. Stopping an AR session and moving to map ar set up then coming back to AR map get same thing, ie session works fine but no passthrough camera.
- Changing phone orientation, passthrough camera freezes after changing orientation.
What’s weird is that from testing the example projects this behaviour only happens on some of them. HelloAR and ComputerVision, camera works as expected no matter what you do but The augmented images/faces projects behave the same was my project (and the unreal AR template project) behave.
I have gone through the projects to see if they are doing anything diferently but can’t see anything. Tried to compare project settings to work out where the difference was coming from but none of the differences I could find seemed to effect it. Also, nothing comes up in logcat in the times when it doesn’t work. I do get some RHI error, but I also get that error in the apps that function correclty.
Anyone seen this/got any ideas?