Log in or register to post comments

Obtain unity camera image without real world (only augmentation)

February 26, 2021 - 12:47am #1

Hi, I am using Unity with Vuforia to develop an Android AR app.

 

A functionality of the app is to take a screenshot of the virtual objects without the real image of the camera.

Would it be possible to implement this?

How could I do it?

Obtain unity camera image without real world (only augmentation)

March 10, 2021 - 1:33am #6

Hi,

Finally, this solution does not working for me but i have just found the correct solution.

I only have to desactivate the GameObject called BackgroundPlane, so with the following code attached to the ARCamera it works for me:

            GameObject bgPlane = GameObject.Find("BackgroundPlane");

            bgPlane.SetActive(false);

 

Obtain unity camera image without real world (only augmentation)

March 8, 2021 - 4:15am #5

Hi,

Digging a little bit mor eon your use-case, you are correct, the config file is only read at initialistion.

I was able to found this guide that should work: https://developer.vuforia.com/forum/faq/unity-how-can-i-disable-video-background

Thank you for your understanding.

Vuforia Engine Support

Obtain unity camera image without real world (only augmentation)

March 6, 2021 - 4:18am #4

Hi, I have a doubt with the toggled on and off via code. I am trying to disable at run time the background with the following code:

 

          Vuforia.VideoBackgroundManager.Instance.SetVideoBackgroundEnabled(false);

 

But nothing happens although I use the following code to print in the log if the background is setting. Before to execute the first line of code the value is true and after is false so is changing but it seems there are not changes in the camera and the background is always enabled:

         Debug.Log(Vuforia.VideoBackgroundManager.Instance.VideoBackgroundEnabled);

 

What could i do to obtain the behaviour that I want?

Obtain unity camera image without real world (only augmentation)

February 26, 2021 - 2:13am #3

Thank you very much! This is exactly what i was looking for.

Obtain unity camera image without real world (only augmentation)

February 26, 2021 - 1:13am #2

Hi,

Vuforia offers the possibility to turn of the real life footage and only preview the augementation. This can be achieved by turning off the Video Background from the Vuforia Configuration. ( Video Background-> Enable video background needs to be unchecked)

This setting can be toggled on and off also via code here more information: https://library.vuforia.com/sites/default/files/references/unity/classVuforia_1_1VuforiaConfiguration_1_1VideoBackgroundConfiguration.html

Coming back to your use-case I am not aware on exactly it can achieved however the above information should point you in the right direction.

Thank you.

Vuforia Engine Support

Log in or register to post comments