Vuforia reinit after deinit in unity











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?










share|improve this question






















  • 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















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?










share|improve this question






















  • 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













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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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




















































































這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()