Log in or register to post comments

Load a Unity scene on top of the image target

January 1, 2018 - 2:47pm #1

Hello guys, I need some help here.

I have a project where I'm using Vuforia Cloud to detect targets, each one of the detected targets must trigger a download event for a different scene made in Unity.

After the download, I have to load the scene and show it to the user.

Currently, I'm able to:

-> detect the target

-> download the scene

-> load the scene

But, when I load the scene, the ARCamera is gone, it shows only the camera from the scene, that doesnt have Vuforia in it.

I need to show the scene on top of the detected target and not replacing it.

The only way I know to load a scene in Unity is like this, is there another way ?

SceneManager.sceneLoaded += sceneDidLoad;

SceneManager.LoadScene(sceneName, LoadSceneMode.Additive);

Thanks!

Load a Unity scene on top of the image target

January 2, 2018 - 4:01pm #3

Removing the camera from the scene didn't work for me, but adjusting the depth of the camera solved my problem.

Thank you so much!

Load a Unity scene on top of the image target

January 2, 2018 - 6:06am #2

Maybe the camera from the loaded scene is rendering top of the ARCamera.  Can you remove the camera from the loaded scene or do you need it?  

You can also check the depth value on the ARCamera vs the other camera, higher number will be on top.

Log in or register to post comments