List
android camera image mirrored with a diagonal line
Posted Date: 2019-05-12 0:13     Edited Date: 2019-05-18 7:58     Writer: inactive

1. SDK Version: 4.1.x
2. Development Environment: Unity-Android
3. Tracker/Scanner: Sample app
4. License Type Free:
5. Target Device(Optional): Samsung S6 , and others

Hello, I want to evaluate your sdk, everything went ok to build and deploy, exept the live camera image on the device is distorted, please see picture.
image seems mirrored from a diagonal line ?

Best Regards,

Best Regards,

Laurent

Posted Date: 2019-05-13 5:27     Edited Date: 2019-05-13 5:27     Writer: inactive

Our SDK does not yet support Unity 2019 version. The problem is caused by the change in uv notation in the Unity 2019 version.

It takes time for us to update to the Unity 2019 version. If you are in a hurry, you can modify the code below.

in MaxstAR / Script / Wrapper / CameraBackgroundBehaviour.cs

private void CreateCameraTexture (int imageWidth, int imageHeight, ColorFormat imageFormat)
{
  ...
BEFORE
uvs [0] .x = 0; uvs [0] .y = 1;
uvs [1] .x = 1; uvs [1] .y = 0;
uvs [2] .x = 1; uvs [2] .y = 1;
uvs [3] .x = 0; uvs [3] .y = 0;

AFTER
uvs [0] .x = 0; uvs [0] .y = 1;
uvs [1] .x = 1; uvs [1] .y = 1;
uvs [2] .x = 0; uvs [2] .y = 0;
uvs [3] .x = 1; uvs [3] .y = 0;
  ...
}

 

Leo

Maxst Support Team

Posted Date: 2019-05-17 23:50     Edited Date: 2019-05-17 23:50     Writer: inactive

hello,

thanks it works :-)

Regards,

Laurent

Posted Date: 2019-05-18 7:58     Edited Date: 2019-05-18 7:58     Writer: inactive

You're welcome. Good luck to you.

 

Leo

Maxst Support Team