artoolkitx / arunityx

artoolkitX for Unity, providing high-performance video acquisition, marker and texture tracking and full Unity Editor support
https://www.artoolkitx.org/
Other
43 stars 22 forks source link

Android resolution low/blurry/pixelated #19

Closed DCoelhoO2 closed 1 year ago

DCoelhoO2 commented 5 years ago

Hello, I've been using arunityx to assist me in a AR project that I'm working on, but I'm facing an issue. While testing the app in Unity everything is fine, but when I build it to android and test it in Android Studio, the video gets extremely low res, as show in the log. (I'll attach pictures showing what I mean, bellow) After building the apk and testing it, the video is still low res. (just like Android Studio) Any idea how to fix this? arunitylowres

1 3

Emulated device: Nexus 5X Tested devices: Xiaomi Mi A1 Vodafone Ultra 6

eromatiya commented 5 years ago

Same issue.

Redmi S2

OptrixAU commented 5 years ago

I'm not sure about the newest version, but in the slightly older one the trick was to open the Android camera settings and choose a higher resolution. You can open it automatically if you detect it's the first time your app has started.

#if UNITY_ANDROID
    using (AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
    AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity");
    jo.Call("launchSettings");
    }
#endif
OptrixAU commented 5 years ago

Correction to the above - the new function in ARToolkitX is actually launchSettings instead of launchPreferencesActivity.

Modified the code above to show this.

lassade commented 4 years ago

Any updates on this issue? or any idea of what can be? @OptrixAU sadly our fix does not work for me :(

I want to give a look into it, some directions will help.

LinearPi commented 4 years ago

@DCoelhoO2

Have you solved the problem of low pixelated?

OptrixAU commented 4 years ago

Any updates on this issue? or any idea of what can be? @OptrixAU sadly our fix does not work for me :(

I want to give a look into it, some directions will help.

Could you describe "Does Not Work For Me"? Does a camera selection page appear? Does it raise an error message?

philip-lamb commented 1 year ago

New native video module should resolve resolution issues.