List
Unity sample application does not show camera feed
Posted Date: 2023-09-26 9:57     Edited Date: 2023-10-10 8:02     Writer: inactive

Please provide your development details as below;

1. SDK Version: MAXSTARSDK_Unity_5.0.2 
2. Development Environment: Unity-Android (tested on Unity 2020.3 and Unity 2022.3 versions)
3. Tracker/Scanner: All
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise): Free
5. Target Device(Optional): Samsung S20FE

Hello, I am a new user and I downloaded and imported the MAXST AR Unity package to a new Unity project.
I followed the setup instructions from here: https://developer.maxst.com/MD/doc/6_1_x/unity/setup#installing-maxst-ar-sdk-for-unity

and I built it to my Android device.
The problem is that all scenes have a grey background and do not show the feed from the phone's camera.
Here is a screenshot from the phone:

Thank you very much in advance,
George

Posted Date: 2023-09-26 13:45     Edited Date: 2023-09-26 13:45     Writer: sejin

Thank you for your interest in the MAXST AR SDK. 

There are several reasons why the camera screen does not appear on Android.

 

1. license key error

If the license key is incorrect, the current SDK version will display Invalid license on regular Tracker, FusionTracker and SpaceTracker using arCore.

2. Build Settings

Make sure you have set up your Unity Build Settings according to the Unity Setup Guide.

Often, this is issue #10, and make sure Multithreaded Rendering is unchecked,
In the Inspector window, go to Other Settings > Other Scripting Backend drop-down menu > Change to IL2CPP and check ARM64. 

 

If you have any other questions regarding the AR SDK, please feel free to ask.

 

Best regards,

Shelden

MAXST Support Team

Posted Date: 2023-09-26 18:29     Edited Date: 2023-09-26 18:29     Writer: inactive

Hello, thanks for the quick answer.
I don't know how I downloaded the 5.0.2 SDK, I tried now again and I got the new 6.1.0 version.

I built the project with the 6.1.0 and now the app runs correctly (showing the camera feed). 
Thank you again and apologies for my mistake with the old SDK version.

Posted Date: 2023-09-27 8:00     Edited Date: 2023-09-27 8:00     Writer: inactive

Hello, the scenes with the normal trackers are ok, but the scenes with the fusion trackers show a black screen.

I have followed all steps from here: https://developer.maxst.com/MD/doc/6_1_x/unity/setup#installing-maxst-ar-sdk-for-unity

including #10: no auto graphics, no Vulcan, no multithreaded rendering, minimum api level: 26, minify none.

A screenshot of the black screen (of the Image Fusion Tracker scene):

Thanks again,
George

 

Posted Date: 2023-09-27 10:37     Edited Date: 2023-09-27 10:37     Writer: sejin

There is a bug that causes a black screen in Fusion Tracker when the correct license is not entered. This can be resolved by entering the correct license.

 

Best regards,

Shelden

MAXST Support Team

Posted Date: 2023-09-30 10:19     Edited Date: 2023-09-30 10:19     Writer: inactive

Well, I redid all the steps in the Setup Guide and tried again building both in the Unity 2022.3 and 2020.3 versions. The normal scenes work ok, but the fusion scenes show up black screen in the 2020 app and they crash immediately in the 2022 app.

I checked the license information in the developer.maxst.com -> License Manager and the: App Name, App ID, License key are all correct in the Unity Editor.

If you want, I could provide you the logs from the Android Logcat if they could be helpful.

Kind regards and many thanks in advance,

George

Posted Date: 2023-10-10 3:59     Edited Date: 2023-10-10 3:59     Writer: sejin

Often, this is issue #10, and make sure Multithreaded Rendering is unchecked,
In the Inspector window, go to Other Settings > Other Scripting Backend drop-down menu > Change to IL2CPP and check ARM64. 

 

If you have any other questions regarding the AR SDK, please feel free to ask.

 

Best regards,

Shelden

Posted Date: 2023-10-10 8:00     Edited Date: 2023-10-10 8:00     Writer: sejin

Did you regenerate the expired license key with the same app ID? If so, that license has expired. Please register with a different app ID, or if you want to use the same app ID, please register with the pro version.
We are aware of the possible misunderstanding and will take steps to clear up any confusion as soon as possible.
Thank you.


Best regards,

Shelden

MAXST Support Team