By Sharkou
on Fri, 05/26/2017 - 17:52
Hello everyone!
I'm new Vuforia's user and I'm looking for a way to pause or freeze the camera without affect current AR interaction.
For instance, on mobile, we can :
1. Look at an Image Target
2. View the AR object or animation
3. Press a button to freeze the camera
4. Place our phone on the table while continuing to manipulate AR interaction
Can you explain me how to do it please?
Thank you!
You can get the current
You can get the current camera image from CameraDevice GetCameraImage (https://library.vuforia.com/articles/Solution/How-To-Access-the-Camera-Image-in-Unity)
Then create a texture2d from the image and use this as the texture for the BackgroundPlane
Thanks for your answer
Thanks for your answer
I try to do it with this function :
See the article I linked, you
See the article I linked, you need to register a callback with the Vuforia service to set the camera pixel format first. Then also check Image is not null before using it.
Thank you for your help! and
Thank you for your help! and sorry for my mistake..
I have a new source code in my GameObject :
Nobody can help me? :/
Nobody can help me? :/
Hey there!!
Hey there!!
First include this line at the very top of your script:
Using Vuforia;
And then use this to freeze:
Vuforia.Instance.Pause();
Use this line to unfreeze:
Vuforia.Instance.Play();
Hello @ChandanSmartGames !
Hello @ChandanSmartGames !
I tried your method, but I get an error saying that Instance in not contain in the namespace Vuforia, any idea where it could have been moved ? :)
Thank you really much !
using Vuforia;
using Vuforia;
VuforiaRenderer.Instance.Pause(true);
Pausing Vuforia Camera using
Pausing Vuforia Camera using VuforiaRenderer.Instance.Pause(true); in OnApplicationPause(bool true) when app comes back from background on iOS device, but the screen is upside down.