google-cardboard

Persist Google Cardboard forward direction across scene loads in Unity3D 4.6.7?

[亡魂溺海] 提交于 2019-12-01 08:37:36
I'm having trouble trying to maintain what Google Cardboard considers forward for the device after a scene load. Although I can't find any obvious call to this in the SDK c# code, it appears that the Google Cardboard SDK will automatically call Recenter after each scene load. I've tried calling DontDestroyOnLoad on the cardboard instantiated prefab, and on the Cardboard.SDK object (which is mentioned on line 328 of Cardboard.cs). This persists those objects across the load, but the view is still re-centered based on the current orientation of the device. I want to avoid the recenter because

Persist Google Cardboard forward direction across scene loads in Unity3D 4.6.7?

江枫思渺然 提交于 2019-12-01 07:08:09
问题 I'm having trouble trying to maintain what Google Cardboard considers forward for the device after a scene load. Although I can't find any obvious call to this in the SDK c# code, it appears that the Google Cardboard SDK will automatically call Recenter after each scene load. I've tried calling DontDestroyOnLoad on the cardboard instantiated prefab, and on the Cardboard.SDK object (which is mentioned on line 328 of Cardboard.cs). This persists those objects across the load, but the view is

How to navigate in Google VR view?

一世执手 提交于 2019-12-01 06:36:08
问题 I am writing an android app using VrPanoramaView I know there are two ways to navigate in VR apps Use the single button on the cardboard as a click Treat looking at something for a long period of time as a click How can i implement navigation using one of these so that if user clicks button panoview will skip to the next picture? Below is the sample Vr PanoramaView code ** * A basic PanoWidget Activity to load panorama images from disk. It will load a test image by * default. It can also load

[android Side By Side Camera

谁说胖子不能爱 提交于 2019-11-30 15:44:45
Hi i want to show a live camera preview side by side on my Android Phone. Like this: https://lh6.googleusercontent.com/-Ngo4tD4AvWY/U8JOHxxQ9KI/AAAAAAAACK8/NZjnw1Yqg8A/w384-h287/2.jpg It works if just the left half screen shows the live preview or just the right side, but if i want to show the left and the rigth side simultaneously i just get a black screen And i dont know why. Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.test.normaltest.sbscameraview" > <uses-permission android:name="android.permission.CAMERA"

How to create VR Video player using Google Cardboard SDK for Unity

大城市里の小女人 提交于 2019-11-29 20:12:45
I just downloaded Google Cardboard SDK for unity. I am fine and able to create VR project. Setup is fine and everything is working fine. I am noob at VR Apps. Just stepped in VR Apps. I am planing to create my own VR Enabled Video Player for android, Just like the default Google Cardboard Youtube player. Can any one suggest me a link or can guide me in developing this app. Scott Driscoll's answer totally works. I had some initial problems getting the Easy Movie Texture Unity plug-in to work for me, but finally figured it out, and it works flawlessly. I now have 360-video running as a texture

Orbiting around the origin using a device's orientation

感情迁移 提交于 2019-11-29 08:37:49
I am trying to replicate the functionality of Google's Cardboard Demo "Exhibit" with three.js. I took the starting example straight from the Chrome Experiments web page and just dropped in code to draw a simple triangular pyramid in the init method: function init() { renderer = new THREE.WebGLRenderer(); element = renderer.domElement; container = document.getElementById('example'); container.appendChild(element); effect = new THREE.StereoEffect(renderer); scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera(90, 1, 0.001, 700); camera.position.set(0, 0, 50); scene.add(camera);

Unity- Photosphere Photo Viewer for Google Cardboard

旧时模样 提交于 2019-11-28 16:45:47
I am trying to build a Photosphere-like application with Unity3D and use it along with Google cardboard. I need to load different panoramic view photos and be able to view them stereoscopically, by using the Cardboard goggles. I am having problem to use the pano images and render it into stereoscopic view in Unity. Any suggestions will be gratefully received. felixwcf Simplest solution that I can give to you: A. Install your Unity Pro with Android Pro plugins, setup Cardboard SDK For Unity , install Android Build tools and SDK. B Setup Skybox Get a stereoscopic panorama image (Might take a

360 viewer in unity, texture appears warped in the top and bottom

流过昼夜 提交于 2019-11-28 11:36:42
I am making a 360 viewer in unity, to view a 360 photo I used to have a cubemap attached to a skybox, and it worked great. But the weight of the cubemaps forced me to switch to textures. All of the 360 viewer tutorials say to just put a sphere with a shader on it, and put the camera inside. When I do this, it doesn't work very well, because when I look to the top or bottom, I see the image warped like so: (The chairs are suppossed to look normal) It did not happen when I used a skybox. Does any one know why is this happening? Thank you very much! The shader you choose does not handle

How to show 2 camera preview side by side?[For cardboard apps]

折月煮酒 提交于 2019-11-28 07:44:17
I am trying to build a Cardboard android application that shows 2 camera view side by side. [Just like the camera view works for VRCinema Android app.] So I studies the Cardboard code from GitHub, made some modification and so far I am able to use the imageView to replicate the same image side by side. and the Code so far looks like this. AndroidManifest.XML <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.vrtoolkit.cardboard.samples.treasurehunt" > <uses-permission android:name="android.permission.NFC" /> <uses

Orbiting around the origin using a device's orientation

自闭症网瘾萝莉.ら 提交于 2019-11-28 02:16:15
问题 I am trying to replicate the functionality of Google's Cardboard Demo "Exhibit" with three.js. I took the starting example straight from the Chrome Experiments web page and just dropped in code to draw a simple triangular pyramid in the init method: function init() { renderer = new THREE.WebGLRenderer(); element = renderer.domElement; container = document.getElementById('example'); container.appendChild(element); effect = new THREE.StereoEffect(renderer); scene = new THREE.Scene(); camera =