I'm looking to use Google Cardboard in Unity 3D, but I don't want the camera to rotate when the user rotates their head. How would this be done?
Related
My camera is not focusing on my image target. The camera is blurred. My normal camera app functions properly. In my AR app the camera is not focusing.
I am using Google VR SDK for Unity v1.60. Every time the app starts up, the camera view gets rotated if the phone is tilted.
I want the camera rotation and positon fixed always. but Somehow on startup it is rotating according to the phone and then getting fixed.
I'm currently creating a google cardboard vr app and I'm running into an issue for the UI. The VR app is set up to be on rails by creating an animation for an empty object that contains the google cardboard camera prefab. I have a world space canvas that has 3 UI objects (backwards, pause, and forward similar to the iphone). In the first case the UI works for pausing (time scale set to 0) as seen in the image below.
However the issue I'm having is having those UI icons show up while in motion. The icons seem to go off in a weird direction have a mind of their own - even though I can track the canvas and know it's in the same position relative to the camera. If I pause in game or in the editor it returns to the correct state in example 1.
I have the canvas set to world space and the event camera is the google cardboard camera prefab. I'm not sure what's going on.
I am able to have my app run in VR mode and all works well, I can view 360 degrees, gaze at menu options etc, all good.
I can also switch to fullscreen mode and for the most part, all good in that I can view 360 degrees, but I have to physically rotate the device as if in VR mode, there is no touch control to enable a user to swipe in all directions to view the 360 world.
Is there a way to achieve this? Should I be disabling Cardboard an implementing a new camera?
I making viewer big model in Unity3d for mobile.
How rotate camera on one touch around self
Here is doc about TouchInput Unity Doc. E.g You can count screen width and hight to angle and rotate camera object. Or You can use one of assets from Asset Store e.g : Simple Touch Camera Script