Start a new topic

Pause AR tracking (to save battery) ?

Pause AR tracking (to save battery) ?


Hi Amaury,
Yes, tomorrow ;). We will upload a 'Developer Channel Release' for all SDK products plus all of the extensions.

Best regards,

Andreas

Hi, 
New downloads in our 'Beta' section are now available!

Best regards,

Andreas

Hi Andreas,

I tested this new 5.3.1 version on an iPad Air 2 (on iOS 9) and the bugs I mentionned previously are not here anymore. 

But again new bugs seam to appear. I quickly found this one : 

- when the camera is disabled, and then the screen is rotated, the app crashes.

I did some extended tests on my own to be sure that this bug was not due to a mistake in our app, but it really only appears when the camera is disabled. 

Tell me if you can replicate the bug on your own.

Hope you can really fix (and run all the tests) on this function soon.

Have a good weekend,

Amaury.

 

Hi Amaury,
I could reproduce it and here are some download links for new builds: Android SDK and iOS SDK.

Please let me know if they work for you.

Best regards,

Andreas

Hi Andreas !

Thanks a lot for this really quick update :-) 

I am developing with the cordova plugin and I didn't manage to update it from the iOS native SDK files last time. If the procedure is simple and you can describe it here, I can try.

Have a good day,

Amaury.

 

Hi Amaury,
Sorry that I again forgot that you need a Cordova plugin. Thankfully our build system also builds all extensions, so here is the link to the Cordova Plugin.

Best regards,

Andreas

Hi Andreas and thanks for integrating this fix in your last update :-)

I can now enable and disable Camera, but new bugs, causing the app to crash, are appearing on iOS (not tested yet in android).

First, if I load an AR World, track some objects, disable the camera, re-enable it, and track an object again, the app crashes (at the moment where the new object is about to be tracked). The error reported on XCode is :

 #0 0x0027244e in wikitude::sdk_foundation::impl::CameraService::getPlatformSpecificConversionMatrix() ()
EXC_BAD_ACCESS

Second scenario, if I track an object, disable the camera when this object is being tracked, and reenable the camera, the app crash when the camera is reenabled. XCode report a "memory read failed".

Hope you can also fix these bugs. Tell me if you need more information about it.

Amaury.

 

Hello :-)

We have an app with some interactive AR elements, and at some point we display some text in full screen without leaving the AR World (and tracking is still running in the background). Is there a way to pause the tracking while we are in displaying these full screen text content ? Without closing the entire world. 

I am thinking about momentarely disabling our tracker (Trackable2DObject Object), would that do the trick ? in other words, if there is no tracker activated, is the AR Engine still processing something ? is it still using important amount of CPU ?

Thanks,

Amaury.

Hi Andreas,

I tried to rename the WikitudeSDK file to libWikitudeSDK.a and place it (twice) in my cordova project. This way I get many "duplicat symbols" errors while trying to build the project.

Also the initial libWikitudeSDK.a is 88,7 Mo and the WikitudeSDK file (that I renamed to libWikitudeSDK.a) is 132,4 Mo.

If you repackage a proper cordova plugin, I could try again.

Thanks,

Amaury.

Hi Amaury,
thx for the report. We will investigate it right away.

Best regards,

Andreas

Please have a look at AR.hardware.camera.enabled, this feature should provide what you're looking for.

Best regards

Hi Amaury,
You can download a pre-release version of the iOS Architect SDK here. I was able to reproduce the issue locally but would appreciate if you could also test it and give me some feedback if it works for you as well.

Do you also use input plugins in your application?

 

Best regards,

Andreas

Hi Andreas,

I only develop with Cordova, and the file attached to your message is only for iOS native development I presume ? 

Otherwise I would be happy to try this pre-release on my own and give you some feedback. And I don't use any input plugins, no. 

Thanks for your reactivity !

Amaury.

Hi Amaury,
It's easy to use the .framework withing Cordova. Simply look up the .framework content, locate the file 'WikitudeSDK', rename it to libWikitudePlugin.a and replace the existing libWikitudePlugin.a in your existing Cordova project (it might exist twice).

Best regards,

Andreas

Hi Andreas,

Thanks, this seems to be exactly what I need, and I have indeed better perfmormance when I turn the camera off !  

However on iOS (iPad Air 2), reenabling the camera causes my app to crash systematically. This is some element provided by XCode about the crash :


- MyApp`non-virtual thunk to wikitude::sdk_foundation::impl::PluginManager::cameraFrameProviderChanged(aramis::CameraFrameProvider&):

- EXC_BAD_ACCESS (code=1, adress=0x38)


I use the last version of the cordova plugin.

Thanks,

Amaury.

 
Login or Signup to post a comment