"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Pause/Resume AR without camera stop

Hi,

 

I would like to be able to pause the AR engine, still getting the camera rendering. 

The documentation is not very usefull : 

static void com.qualcomm.vuforia.Vuforia.onResume( )[static]

Executes AR-specific tasks upon the onResume activity event

static void com.qualcomm.vuforia.Vuforia.onPause( )[static]

Executes AR-specific tasks upon the onResume activity event

 

Can I know more about that please ?

Thanks !

AlessandroB

Thu, 05/22/2014 - 06:46

Hi, 

you can do this by stopping the Trackers;  if you look at the sample code (e.g. in ImageTargets), you can find some code like this:

OK. After some research I did this.

Just copy the next Script in a new script and call it "RecognitionSwitch" (or whatever you want, as long as it has same class name and script name):

 

Hi !

 

Will the start-stop reset the tracker datas ?

I mean : sometimes the pose is not good, not well oriented, and we would like to make a "reset" instead of moving the camera far from the marker to force it.

 

thanks.

@AlessandroB

Hi,I tried your code but it doesnt work.

ImageTracker is not recognize So I used ObjectTracker instead of ImageTracker.
Still it doesnt work.

My code is here