- Home /
Too much waiting for a moderator. I have moved it to gamedev.stackexchange.com
Vuforia AR/VR sample with Google Cardboard SDK: I cannot switch from augmented reality to virtual reality
I have followed the Integrating Cardboard to the AR/VR Sample latest tutorial. I have configured the provided scene sample according to that tutorial. I have compiled it to Android without any problem.
The game load an AR scene with a yellow pointer in the center. If I understood well, if a glaze at the ImageTargetStones GameObject, it will switch to VR. Unfortunately I cannot find that GameObject anywhere. I only see the AR scene with nothing than the yellow pointer.
I don't find what I'm missing. Why is not that ImageTargetStones GameObject in the AR scene?
Are you sure that you printed out/look at the correct .pdf? If yes: check if the data set and image target is set to 'stones' in the inspector (ImageTargetStones->ImageTargetBehaviour) and if the data set is loaded and activated on the ARCamera (ARCamera->DatabaseLoadBehaviour).
@saschandroid I think I want to use Vuforia for an uncommon use. I think that's the reason of the misunderstanding.
I don't want to use its image recognition possibilities. I want to switch between AR to VR when glazing to a button.
I have tried to duplicate the VRButton to move it to an independent place of the scene with no parent. I have checked its IsTrigger checkbox. I have added a PointerEnter EventTrigger that set Focused to true. I have added a PhysicsRaycaster to both AR Camera and $$anonymous$$ainCamera (child of Cardboard$$anonymous$$ain-Head).
Nothing happens when I gaze at the button. I have to compile everytime I want to try it by the way. I did not manage to make it work in the editor.
Follow this Question
Related Questions
Vuforia simultaneous tracked objects 0 Answers
Reduce APK file Size with Vuforia 0 Answers
Unet NetworkServer.Spawn() not working 5 Answers
Help with rotation. 1 Answer
How to get back to the first position animatedly in unity? 1 Answer