# ARCore Camera Feed Issue - UE 5.2.0

**URL:** <https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434>\
**Category:** XR Development\
**Tags:** AR, unreal-engine, editor, question, Blueprint, UMG\
**Created:** [May 22, 2023, 7:50am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434 "2023-05-22T07:50:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [May 22, 2023, 7:50am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/1 "2023-05-22T07:50:17Z")

</div>

Hy there!

I have a problem - constantly pursuing me from version to version - with receiving the Android device camera’s feed by the application.

The situation is next:

I deployed the default Handheld AR project to the Android device. It does work and receives the camera feed. I can scan the desired plane and place an object.

But the only things I see are:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/d/48d0e6bba7a3f842cd0fcc78bce2777e01a63566.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/7/be7f58cda348eff1e101dca67e7e7601e1e187d8.jpeg)

I see that camera does work, but it seems like an overlay covers the camera view.

Going further, after all the UIs have been removed, I can only see a default brick texture:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/c/d0cd4523e64fd957a22079e2fe484f201d22c150.jpeg)

---

<div class="post-metadata">

**Author:** ![Kortareh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kortareh](https://forums.unrealengine.com/u/Kortareh)\
**Post date:** [May 24, 2023, 7:08am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/2 "2023-05-24T07:08:36Z")

</div>

Hey, I’ve just run into the exact same problem when updating my Project… Have you had any luck solving it? I’m thinking about following this guide to set it up from scratch: [Setting up a New AR Project in Unreal Engine | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/5.2/en-US/setting-up-a-new-ar-project-in-unreal-engine/)

If that fails it would have to be something in the D\_ARSessionConfig right?

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [May 29, 2023, 11:25am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/3 "2023-05-29T11:25:31Z")

</div>

Hey!

No luck and no time, tbh.

I used the Handheld AR template, dedicated for Android and iOS devices, and the only version that does work - 5.0.3.

The production versions like 5.1 and 5.2 are unable to provide a camera feed.

In terms of the source of the issue - I would suggest checking the materials first. I am not sure about the configuration session file, but the overlay on my screen is a texture.

I’m assuming the problem is somewhere within the materials involved. Anything related to the camera’s feed passthrough functionality. But I’m only shooting. Will be working on it soon, so, if I will be able to solve this problem - I will update the topic.

---

<div class="post-metadata">

**Author:** ![ceos92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceos92](https://forums.unrealengine.com/u/ceos92)\
**Post date:** [May 31, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/4 "2023-05-31T12:02:05Z")

</div>

Hi, is there any way to get the feed working, I#m having the same Problem.  
It is working with Unreal 5.1 but in 5.1 the media player for android is broken. it just crashes the opengl driver when playback is started.

Ar development has been pretty fustrating so far with Unreal…

---

<div class="post-metadata">

**Author:** ![eecorn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eecorn](https://forums.unrealengine.com/u/eecorn)\
**Post date:** [June 1, 2023, 7:49am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/5 "2023-06-01T07:49:24Z")

</div>

The issue seems to be tied to the materials bundled with the AR template. The culprit seems to be “M\_SceneDepthOcclusion” in the plugin content for ARCore. Here is the solution that worked for me:

**Getting Camera/AR Working in Unreal 5.2 w/ Android**

1. Create new Unreal Handheld AR App from template
2. Configure Android (Project settings)  
a. Change build target to 33  
b. Package game data inside apk  
c. For Android SDK I used NDK 25.1, JDK 1.8/18
3. In Content Browser settings, be sure “Show Plugin Content” is checked
4. In Content Browser, search “M\_SceneDepthOcclusion” and double click the material to open in editor
5. Break a node and then reconnect it, apply, and save material

As a side-note, the first roadblock I encountered with deploying Tabletop AR Template with v5.2 was regarding permission writing externally. Once I got around that, I was faced with this camera feed issue.

---

<div class="post-metadata">

**Author:** ![Kortareh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kortareh](https://forums.unrealengine.com/u/Kortareh)\
**Post date:** [June 1, 2023, 10:26pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/6 "2023-06-01T22:26:49Z")

</div>

That’s odd, I still can’t seem to replicate your fix… When you say “Change build target to 33” I’m guessing you’re referring Target SDK version? I’m unsure which NDK/JDK I’m using but I’m pretty sure they’re similar.

I found the materials, is there a specific node you broke the connection to perhaps?

Thanks again for posting!

---

<div class="post-metadata">

**Author:** ![eecorn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eecorn](https://forums.unrealengine.com/u/eecorn)\
**Post date:** [June 2, 2023, 6:16am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/7 "2023-06-02T06:16:39Z")

</div>

This is interesting…I had this working last night after I made those changes and packaged, but today when I went to rebuild for Android, I am not seeing the camera feed again. I will repeat and try to re-create this again.

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [June 2, 2023, 6:45am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/8 "2023-06-02T06:45:13Z")

</div>

Hi, thank you for your answer. 🙂

I did try this solution earlier and had no positive results. And this time it did not work too. The settings are the same as you described.

The texture is associated with several basic materials and is deep inside the basics of logic. This makes debugging hard without a better understanding of the engine functionality.

---

<div class="post-metadata">

**Author:** ![Kortareh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kortareh](https://forums.unrealengine.com/u/Kortareh)\
**Post date:** [June 2, 2023, 8:38am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/9 "2023-06-02T08:38:55Z")

</div>

Yeah, it’s quite funny. I recognised the texture cause one of my friends was using it in his game.

I expect the problem to be with the materials, considering some of the major features of the update are in that area.

I built an AR project from scratch and no luck there either, so it’s something to do with the engine/plugins, not the template.

Thanks for your progress!

---

<div class="post-metadata">

**Author:** ![eecorn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eecorn](https://forums.unrealengine.com/u/eecorn)\
**Post date:** [June 2, 2023, 5:06pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/10 "2023-06-02T17:06:02Z")

</div>

I could not get the camera material working for Android in v5.2 again. I could successfully deploy in v5.1.1 though.

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [June 2, 2023, 5:08pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/11 "2023-06-02T17:08:08Z")

</div>

Well, I have two projects associated with AR technology - I am interested to have this problem solved. 🙂

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [June 2, 2023, 5:09pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/12 "2023-06-02T17:09:10Z")

</div>

By using the solution you described previously? Will try this engine version later.

---

<div class="post-metadata">

**Author:** ![eecorn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eecorn](https://forums.unrealengine.com/u/eecorn)\
**Post date:** [June 3, 2023, 4:51am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/13 "2023-06-03T04:51:12Z")

</div>

Actually out of the box (using same settings as above), 5.1.1 camera feed worked after I was able to get past permissions. I didn’t have to mess with materials.

---

<div class="post-metadata">

**Author:** ![D\_boyrzm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_boyrzm](https://forums.unrealengine.com/u/D_boyrzm)\
**Post date:** [June 3, 2023, 4:57am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/14 "2023-06-03T04:57:45Z")

</div>

did you find any solution ?

---

<div class="post-metadata">

**Author:** ![Kortareh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kortareh](https://forums.unrealengine.com/u/Kortareh)\
**Post date:** [June 3, 2023, 11:41am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/15 "2023-06-03T11:41:20Z")

</div>

Not yet, we’re still trying to figure it out. I just submitted a bug report with a link to this forum, hopefully we should find a solution!

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [June 3, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/16 "2023-06-03T15:55:49Z")

</div>

Hi gents!

It seems like one of my project buddies found several issues associated with the SDK/NDK versions.

I will update the topic as fast as I will catch up with the team next week.

---

<div class="post-metadata">

**Author:** ![GS-games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GS-games](https://forums.unrealengine.com/u/GS-games)\
**Post date:** [June 6, 2023, 5:05pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/17 "2023-06-06T17:05:59Z")

</div>

I am facing the same issue since I upgraded my game to ue 5.2 (which was necessary to meet the lastest in-game-purchase requirements for uploading to google play).

Will try setting target to 33 to see if it helps. Please let me know if you find any working solution to this.

---

<div class="post-metadata">

**Author:** ![D\_boyrzm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_boyrzm](https://forums.unrealengine.com/u/D_boyrzm)\
**Post date:** [June 8, 2023, 5:15pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/19 "2023-06-08T17:15:07Z")

</div>

hey guys . good news here .  
i was trying on it about 1 month and finally think found the answer.  
1-using UE 5.0.3 with NDK r21e (21.4), SDK minimum 26 and target 31,java 11 (you also will need java 17 )  
2- go to this link and follow for install AGDE [Debugging Unreal Engine Projects for Android in Visual Studio with the AGDE Plugin | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/debugging-unreal-engine-projects-for-android-in-visual-studio-with-the-agde-plugin/)  
3-create an empty c++ files editor \> tools \> new c++ class and generate visual studio file project  
4- set up your environment variable and add ‘AGDE\_JAVA\_Home’ to java 17 location (keep JAVA\_HOME on java 11)  
5- open visual studio file and set solution configuration to debug game and solution platform to android and launch it on device or emulator  
u will see some errors u must fix them mine was this : platform toolset not set to MSVC visual studio 2019 (v142)  
6-open project and package full project in appropriate location (not launch on device )  
7-install packaged project on android device and run issue is gone and you can even change code and launch it through android device (directly)  
good luck

---

<div class="post-metadata">

**Author:** ![GS-games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GS-games](https://forums.unrealengine.com/u/GS-games)\
**Post date:** [June 8, 2023, 7:41pm UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/20 "2023-06-08T19:41:04Z")

</div>

Yes, it works in UE 5.0.3. The issue for me is that google play requires building with 5.1 or 5.2 to for in-app purchases functions to work. So my project is in 5.2 now… ☹

---

<div class="post-metadata">

**Author:** ![DimiGE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimige/32/1106805_2.png) [@DimiGE](https://forums.unrealengine.com/u/DimiGE)\
**Post date:** [June 9, 2023, 5:28am UTC](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434/21 "2023-06-09T05:28:51Z")

</div>

Hey gents!

In terms of the 5.2.0 production version of the engine - we are still not able to run the template or even the AR session.

In terms of the 5.1.1 production version of the engine - my project buddy solved the black screen issue with the specific SDK/NDK settings. But the engine/ARCore is constantly yelling that there is a problem with these SDK/NDK settings. And still has several other stuff - like flipped screenshots - that make the version unusable in the AR context.

In terms of the 5.0.3 production version of the engine - it does work with specific SDK/NDK settings.  
The version of the SDK/NDK - is 21.1.6352462.

I don’t believe we have much more time to tinker with these versions, but in case there will be any other options/solutions - will be keeping you posted, guys.

[Next page](https://forums.unrealengine.com/t/arcore-camera-feed-issue-ue-5-2-0/1174434.md?page=2)
