Vuforia reinit after deinit in unity

Multi tool use
up vote
0
down vote
favorite
guys.
I got a problem with Vuforia VR and AR transition in unity.
I just want to change scene like this...
3D scene -> VR scene -> 3D scene -> AR scene
I tried to make this order workflow but it is not working.
before I quit VR scene, I used this code.
Vuforia.VuforiaUnity.Deinit();
or
Vuforia.VuforiaRuntime.Instance.Deinit();
and
Vuforia.VuforiaBehaviour.Instance.enabled = false;
because of these code, I can turn off VR Camera and successfully open 3D scene.
(without this code, I can't open 3D scene because VR camera still working!)
however, whenever I open AR scene after 3D scene, there are some errors and AR Camera is not work.
Could not create dataset.
UnityEngine.Debug:LogError(Object)
Vuforia.ObjectTracker:CreateDataSet()
Vuforia.DatabaseLoadARController:LoadDatasets()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
Vuforia.VuforiaARController:Start()
System.Delegate:DynamicInvoke(Object)
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object)
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)
Vuforia.VuforiaBehaviour:Start()
and
Failed to set frame format
UnityEngine.Debug:LogError(Object)
Vuforia.CameraDevice:SetFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:ForceFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:Start()
Vuforia.MixedRealityController:StartCameraAndTrackersIfStopped()
Vuforia.MixedRealityController:SetViewerAR()
Vuforia.MixedRealityController:SetMode(Mode)
TransitionManager:Update() (at Assets/SamplesResources/Scripts/TransitionManager.cs:106)
To Sum up, AR camera in AR scene is not working After Deinit() method.
is there anyway to reinit vuforia
or
turn off VR camera without using Deinit() method?
unity3d augmented-reality vuforia virtual-reality
add a comment |
up vote
0
down vote
favorite
guys.
I got a problem with Vuforia VR and AR transition in unity.
I just want to change scene like this...
3D scene -> VR scene -> 3D scene -> AR scene
I tried to make this order workflow but it is not working.
before I quit VR scene, I used this code.
Vuforia.VuforiaUnity.Deinit();
or
Vuforia.VuforiaRuntime.Instance.Deinit();
and
Vuforia.VuforiaBehaviour.Instance.enabled = false;
because of these code, I can turn off VR Camera and successfully open 3D scene.
(without this code, I can't open 3D scene because VR camera still working!)
however, whenever I open AR scene after 3D scene, there are some errors and AR Camera is not work.
Could not create dataset.
UnityEngine.Debug:LogError(Object)
Vuforia.ObjectTracker:CreateDataSet()
Vuforia.DatabaseLoadARController:LoadDatasets()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
Vuforia.VuforiaARController:Start()
System.Delegate:DynamicInvoke(Object)
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object)
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)
Vuforia.VuforiaBehaviour:Start()
and
Failed to set frame format
UnityEngine.Debug:LogError(Object)
Vuforia.CameraDevice:SetFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:ForceFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:Start()
Vuforia.MixedRealityController:StartCameraAndTrackersIfStopped()
Vuforia.MixedRealityController:SetViewerAR()
Vuforia.MixedRealityController:SetMode(Mode)
TransitionManager:Update() (at Assets/SamplesResources/Scripts/TransitionManager.cs:106)
To Sum up, AR camera in AR scene is not working After Deinit() method.
is there anyway to reinit vuforia
or
turn off VR camera without using Deinit() method?
unity3d augmented-reality vuforia virtual-reality
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
guys.
I got a problem with Vuforia VR and AR transition in unity.
I just want to change scene like this...
3D scene -> VR scene -> 3D scene -> AR scene
I tried to make this order workflow but it is not working.
before I quit VR scene, I used this code.
Vuforia.VuforiaUnity.Deinit();
or
Vuforia.VuforiaRuntime.Instance.Deinit();
and
Vuforia.VuforiaBehaviour.Instance.enabled = false;
because of these code, I can turn off VR Camera and successfully open 3D scene.
(without this code, I can't open 3D scene because VR camera still working!)
however, whenever I open AR scene after 3D scene, there are some errors and AR Camera is not work.
Could not create dataset.
UnityEngine.Debug:LogError(Object)
Vuforia.ObjectTracker:CreateDataSet()
Vuforia.DatabaseLoadARController:LoadDatasets()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
Vuforia.VuforiaARController:Start()
System.Delegate:DynamicInvoke(Object)
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object)
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)
Vuforia.VuforiaBehaviour:Start()
and
Failed to set frame format
UnityEngine.Debug:LogError(Object)
Vuforia.CameraDevice:SetFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:ForceFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:Start()
Vuforia.MixedRealityController:StartCameraAndTrackersIfStopped()
Vuforia.MixedRealityController:SetViewerAR()
Vuforia.MixedRealityController:SetMode(Mode)
TransitionManager:Update() (at Assets/SamplesResources/Scripts/TransitionManager.cs:106)
To Sum up, AR camera in AR scene is not working After Deinit() method.
is there anyway to reinit vuforia
or
turn off VR camera without using Deinit() method?
unity3d augmented-reality vuforia virtual-reality
guys.
I got a problem with Vuforia VR and AR transition in unity.
I just want to change scene like this...
3D scene -> VR scene -> 3D scene -> AR scene
I tried to make this order workflow but it is not working.
before I quit VR scene, I used this code.
Vuforia.VuforiaUnity.Deinit();
or
Vuforia.VuforiaRuntime.Instance.Deinit();
and
Vuforia.VuforiaBehaviour.Instance.enabled = false;
because of these code, I can turn off VR Camera and successfully open 3D scene.
(without this code, I can't open 3D scene because VR camera still working!)
however, whenever I open AR scene after 3D scene, there are some errors and AR Camera is not work.
Could not create dataset.
UnityEngine.Debug:LogError(Object)
Vuforia.ObjectTracker:CreateDataSet()
Vuforia.DatabaseLoadARController:LoadDatasets()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
Vuforia.VuforiaARController:Start()
System.Delegate:DynamicInvoke(Object)
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object)
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)
Vuforia.VuforiaBehaviour:Start()
and
Failed to set frame format
UnityEngine.Debug:LogError(Object)
Vuforia.CameraDevice:SetFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:ForceFrameFormat(PIXEL_FORMAT, Boolean)
Vuforia.CameraDevice:Start()
Vuforia.MixedRealityController:StartCameraAndTrackersIfStopped()
Vuforia.MixedRealityController:SetViewerAR()
Vuforia.MixedRealityController:SetMode(Mode)
TransitionManager:Update() (at Assets/SamplesResources/Scripts/TransitionManager.cs:106)
To Sum up, AR camera in AR scene is not working After Deinit() method.
is there anyway to reinit vuforia
or
turn off VR camera without using Deinit() method?
unity3d augmented-reality vuforia virtual-reality
unity3d augmented-reality vuforia virtual-reality
asked Nov 7 at 7:36


CHANGJAE LEE
12
12
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago
add a comment |
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53185193%2fvuforia-reinit-after-deinit-in-unity%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Alzv7N9mBCzHPVov tqs HHKMd WWtSZHgF05 o
Did you try to just set the gameObject of the AR/Vr camera of Vuforia to false? (Requires the AR/VR camera of Vuforia to be on a different object than the main camera ofcourse)
– derHugo
Nov 7 at 17:51
Actually, I just generated and used cameras in each scene. I'm gonna try to do this way and answer to you. Thank you for your advise, derHugo.
– CHANGJAE LEE
2 days ago