List
Is it possible to supply .3dmap files externally to android application.
Posted Date: 2017-11-14 12:59     Edited Date: 2017-11-15 6:32     Writer: inactive

Hi MaxST

I am building an android application using maxst ,in which i am trying to download the .3dmap file seperately and storing into Application.persistentDataPath and downloading ObjectTrackable object  through AssetBundle.

When the .3dmap is included in Streaming assets folder then i am sucessfully tracking the object and able to show augmentations,but when i saperately download it and store in Application.persistentDataPath then the application is not able to ditect the object.

code below:-

//giving path of local folder on android

TrackerManager.GetInstance().AddTrackerData(Application.persistentDataPath +"/"+ mapname + ".3dmap", true);

I am not getting error in either case and gettig log that tracker is added sucessfully.

Is this possible , to add .3dp map files saperately ?

Thank you.

Posted Date: 2017-11-14 14:51     Edited Date: 2017-11-14 14:51     Writer: inactive

Hi, 

The second paramter of AddTrackerData function means the map file is located in assets folder finally.

Unity's StreamingAssets folder changes to android asset folder after compile and the asset folder is in apk file (Something like zip compressed format).

As I know Application.persistentDataPath means "/data/data/package_name/files" and that folder is uncompressed state.

So..please change second parameter to "false".

If you saw "success to load map" logcat messgae, we need to check our code.

Thanks a lot.

Posted Date: 2017-11-15 6:32     Edited Date: 2017-11-15 6:32     Writer: inactive

Thank You Maxst this resolves my problem