android camera image mirrored with a diagonal line
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
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
hello,
thanks it works :-)
Regards,
Laurent
You're welcome. Good luck to you.
Leo
Maxst Support Team