List
Camera background not rendering
Posted Date: 2019-10-28 12:23     Edited Date: 2019-10-31 2:41     Writer: inactive

I have a project which utilizes image tracking. It has worked fine until just recently, but since i upgraded to Unity version 2019.2.7, i no longer see the camera background (it doesn't necessarily have to be related to the version upgrade, there have been a few other changes as well). I am using the standard render pipeline. 

I have a behaviour which inherits from ARBehaviour and calls StartCamera. I do get a printout saying that starting the camera was successful:

    10-28 12:46:11.460 20800 20822 I Unity   : Unity StartCamera. result : Success

 

I also get a log message from AbstractCameraBackground with the message StartRendering. One thing which is funny is that the image tracking works fine, and objects will appear above the black background. 

My MAXST version is 4.1.x (don't know exact subversion) pro one time fee license. I have tested on a Galaxy S7 and Google Pixel. I have confirmed that the app has permission to use the camera. 

Posted Date: 2019-10-29 2:29     Edited Date: 2019-10-29 2:29     Writer: inactive

When I just ran LG V50ThinQ with Unity 2019.2.7, MAXST SDK 4.1.4, it worked fine. Write a little more detail to reproduce the environment where the camera background does not work. Are you using a lower version of the SDK and updating to 4.1.x?

 

Leo

Maxst Support Team

Posted Date: 2019-10-29 15:25     Edited Date: 2019-10-29 15:49     Writer: inactive

This is sort of a big project, so i'm not sure if i can provide exact reproduction steps. I have multiple scenes, one menu scene which loads in the others. One of the scenes uses MAXST with image tracking, while the others use ARFoundation with ARCore. The camera background that ARFoundaiton provides works fine in those scenes, but the MAXST background does not work in its scene. There is no camera in the menu scene. There is a script based on a modified version of ImageTrackerSample.cs which handles the camera and tracker management. 

A few months ago, i updated to what was then the latest MAXST version (it doesn't say anywhere in the files what version it is - this is something you might want to add). It worked fine then with the new version and with a similar setup - a scene loaded in the MAXST scene. Is there any way that ARFoundation could be interfering? It was added recently, though I never use it or any related scripts in the same scene as MAXST. All of the debug messages indicate that everything is fine. 

Posted Date: 2019-10-31 2:41     Edited Date: 2019-10-31 2:41     Writer: inactive

First of all, make sure that the MAXST SDK 4.1.x is working on your device. Take the sample code we provide, run it, and see if it works without a problem. And the next step is to make sure that the Rotation_x value of our AR Camera is set to 90 degrees in the scene you are using with both the AR Foundation and the MAXST SDK. And answer if it works normally.

 

Leo

Maxst Support Team