google-cardboard

Unable to change FOV of the google card board camera

感情迁移 提交于 2021-02-07 03:38:29
问题 I am developing a sniper game for android using Google card board unity SDK. Now there is the need to tweak the camera's FOV which leads me to interact a variable named 'mockFieldOfView' in CardBoard.cs. Tweaking that value in the Unity editor is fine but as soon as I make a build for Android it doesn't take effect at all. I'm unable to figure out the issue. Any idea or suggestion would be highly appreciated. Apologize for the late reply, so ouflak you can see complete Cardboard.cs here

Unable to change FOV of the google card board camera

跟風遠走 提交于 2021-02-07 03:35:42
问题 I am developing a sniper game for android using Google card board unity SDK. Now there is the need to tweak the camera's FOV which leads me to interact a variable named 'mockFieldOfView' in CardBoard.cs. Tweaking that value in the Unity editor is fine but as soon as I make a build for Android it doesn't take effect at all. I'm unable to figure out the issue. Any idea or suggestion would be highly appreciated. Apologize for the late reply, so ouflak you can see complete Cardboard.cs here

Unity: VRDevice cardboard not supported in Editor Mode. Please run on target device

社会主义新天地 提交于 2021-01-27 09:34:34
问题 There is a problem that the screen can not be divided during the card board test. I'm use versions for goolge sdk for unity 1.6 and Unity 5.6.2f1. in emulater(unity game scene),Game Scene does not split when playing. and console display "VRDevice cardboard not supported in Editor Mode. Please run on target device." but, Screen is split when testing on phone. What's the problem? 回答1: Google VR SDK for Unity v1.50 (May 2017) or above have removed support for stereo preview in the unity editor.

Unity: VRDevice cardboard not supported in Editor Mode. Please run on target device

寵の児 提交于 2021-01-27 09:33:32
问题 There is a problem that the screen can not be divided during the card board test. I'm use versions for goolge sdk for unity 1.6 and Unity 5.6.2f1. in emulater(unity game scene),Game Scene does not split when playing. and console display "VRDevice cardboard not supported in Editor Mode. Please run on target device." but, Screen is split when testing on phone. What's the problem? 回答1: Google VR SDK for Unity v1.50 (May 2017) or above have removed support for stereo preview in the unity editor.

How to fix NDK build error for HelloCardboard sample

ぐ巨炮叔叔 提交于 2021-01-03 08:26:10
问题 I am trying to compile Google Cardboard Sdk sample. I am following instructions given by google's official docs I am stuck at step 3, where I am supposed to assemble the project: This is the error I am getting when I start to assemble: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':hellocardboard-android:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\Shanu\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin

How to fix NDK build error for HelloCardboard sample

荒凉一梦 提交于 2021-01-03 08:26:04
问题 I am trying to compile Google Cardboard Sdk sample. I am following instructions given by google's official docs I am stuck at step 3, where I am supposed to assemble the project: This is the error I am getting when I start to assemble: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':hellocardboard-android:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\Shanu\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin

Three.js Device Orientation Controls to point at a specific target on load

无人久伴 提交于 2020-01-23 10:39:51
问题 I'm using the Device Orientation Controls in Three.js to set up a web application for Google Cardboard. When I load the scene, the default target of the camera is the Y direction (Z on the phone) where there might not be any objects. I'd like to define a direction before loading. Does anyone have any suggestions on how to do this without the need to rotate the objects in the scene? Thanks in advance for your help! 回答1: Add your camera to a THREE.Object3D(). Rotate the parent object. 回答2: I

Canvas is not rendering on top

こ雲淡風輕ζ 提交于 2020-01-22 14:55:27
问题 I used a canvas and Unity UI elements as a HUD. I want HUD to be in front of everything but it's not. 回答1: Haven't worked with Cardboard before but I beleive you can fix this with camera culling. Just follow the steps below: Canvas : 1.Select the Canvas and change the Layer to UI. The default is UI but make sure that it is still set to UI. Default/Main Camera : 1.Select the Main Camera that was there already there and change the Clear Flags to Skybox . 2.Change the Culling Mask to Everything

Google Cardboard default distortion values

喜夏-厌秋 提交于 2020-01-14 05:33:07
问题 Hi I am trying to distort some stereoscopic video footage for viewing with Google Cardboard. I have been looking through the Distortion class and the example project but can not find any distortion values being defined. Could someone advise what the distortion values should be used for the default 45mm lenses onto a Nexus 5 screen? The software I am using to process the footage is NukeX which takes 2 radial distortion values. Any help would be much appreciated. 回答1: The distortion values can

VR View - Render: Unable to load Texture from image.jpg

前提是你 提交于 2020-01-13 10:44:30
问题 Ive been trying to get a VR View setup on my page following the examples and such at https://developers.google.com/vr/concepts/vrview, the image i'm using is a cardboard camera 'photo' copied from my device, but i've also used a regular jpg version just to be sure. No matter what i try when the widget loads it only ever shows the error message Render: Unable to load Texture from image.jpg I've also noticed a bunch of tutorial or example site having the same issue that i assume they didn't