By j1wan
on Wed, 02/10/2021 - 05:12
Vuforia SDK Version: 9.7.4 -
Description with steps to reproduce: I followed the steps as described here: https://library.vuforia.com/articles/Solution/how-to-create-and-load-targets-in-unity.html
I used this plugin to load images from file: https://github.com/yasirkula/UnityNativeGallery
Specifically, I used
< NativeGallery.GetImageFromGallery( MediaPickCallback callback, string title = "", string mime = "image/*" ): prompts the user to select an image from Gallery/Photos. />
to load the images via scripts. When trying to load images from my computer while in Play mode, I realized that only .jpg images would successfully track. Files of .png would compile without error, but would never successfully be detected. -
Development OS (Mac OS X, Windows, Linux): Windows -
Mobile OS and Version: Android 9 -
Mobile Device Manufacturer and Model name: Google Pixel 2 (Computer is Dell Laptop Inspiron 15 5567) -
Do the Vuforia Sample Applications show the same behavior?: No
Hi,
Hi,
If it worked with jpg and not with png than I would assume there is an issue with the png images used. In order to create an Image Target at Run-time or via the Target Manager, the image needs to comply to following rules: