google-cardboard

[android Side By Side Camera

半腔热情 提交于 2020-01-10 20:11:21
问题 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"

Detecting Google Cardboard Magnetic Button Click

落花浮王杯 提交于 2020-01-06 02:40:05
问题 I'm developing a VR app with cardboard. When I click twice on the magnetic button, I want the menu to appear. How do I write this condition in C#? 回答1: In brief, you need to detect that your phone's compass changed without any tilt (i.e., the magnet has gotten close to the phone and disrupted its compass without changing its physical orientation). You'll want to look at both vectors and see if they've changed. There's two open source implementations, the simplest of which I shamelessly

Playing a video in Google Cardboard

别说谁变了你拦得住时间么 提交于 2020-01-05 22:46:25
问题 I am looking at playing a video in Google Cardboard. I have already created 2 cardboard views and am able to display 2 images in those views. But am not able to play a video in those views. Also, am not getting any exception. The cardboard sample here shows a treasure hunt game using open-gl, but nothing related to playing a video. Any help would be appreciated. 回答1: Use PanFrame. http://www.panframe.com/ Download their SDK and it has sample apps that let you play videos side by side,

Google Cardboard SDK not working in Unity 5.4.1f (Gvr Controller script not loaded)

时间秒杀一切 提交于 2020-01-05 05:26:15
问题 I'm trying to use Google Cardboard SDK with Unity 5.4.1f (Free). After importing the unitypackage with SDK, I tried to run the demo scene, but I see only freezing camera. I can't look around with mouse, just static picture. And I see the errors in Console and Inspector tab. Here is the screenshot: I tried to import different versions of Cardboard SDK and also tried Unity 5.3, but got the same errors. Please help me, I don't know what's wrong with it. 回答1: The project is likely corrupted. Make

GvrViewerMain rotates the camera yourself. Unity3D + Google VR

99封情书 提交于 2020-01-03 19:44:05
问题 I have a problem. Using Google VR + Unity. GameObject Camera automatically changes the angle "Y". The device does not change positions. Maybe fluctuations in the hands. The editor is no problem. The device Samsung S6. Pic 0 sec Pic after ~15 sec public void Update() { text.text = cameraTransform.eulerAngles.y.ToString(); } 回答1: Sorry mate but this is a known issue and it's been there since day 1. It's called camera drift. It lives in this beautiful ecosystem of github community where the

YouTube parameter to call split view for 360 degree video

三世轮回 提交于 2020-01-02 04:09:26
问题 I'm trying to find out if the "VR mode" with two eye splitview of some YouTube 360 videos can also be called via a parameter or via the API? Right now when playing back a #360 video on my iPhone I'm able to move around in 360 degrees but the splitview is not an option. If I do the same thing on an Android Device I have an option to enter "splitview" for Google Cardboard. Is it possible to trigger this splitview mode also from the iPhone or if a #360 video is embedded into a website with a

How to show 4 videos at once using Google Cardboard?

大憨熊 提交于 2019-12-25 09:14:59
问题 I am trying to show four videos at once using Google Cardboard. These videos are normal 2D videos that were shot on a normal 16:9 camera. What I want and need is to have one video in front of you then you turn your head 90 degrees and you see another video, turn again and see another until you hit the front video again. Please see my Pablo Picasso Microsoft Paint skills to visualize what I am talking about... So basically what I need is like four VR movie theater screens that a person can

Making an object detect that raycast not hitting it anymore

回眸只為那壹抹淺笑 提交于 2019-12-25 08:57:51
问题 I use SendMessage to inform the Object that is was hit by a Raycast: using UnityEngine; public class Raycaster : MonoBehaviour { void Update() { RaycastHit hit; if (Physics.Raycast(transform.position, transform.forward, out hit)) if(hit.transform.tag == "MyGameObject"){ hit.transform.SendMessage ("HitByRay"); } } } And object have a script like this: using UnityEngine; public class ObjectHit : MonoBehaviour { void HitByRay () { Debug.Log ("I was hit by a Ray"); } } And that print message "I

Android XML InflateException - Google Cardboard

和自甴很熟 提交于 2019-12-25 07:58:44
问题 Getting an InflateException for the following XML. The suspect line is with VrVideoView. I have looked through the XML, and cannot find any big differences between this an the demo app. Has anyone successfully used VrVideoView XML <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@android:color/white"> <LinearLayout android:layout_width="match

How do I allow a browser on IOS 13 to access my iPhone 6s' Gyroscope?

荒凉一梦 提交于 2019-12-24 19:22:51
问题 Original Question I am attempting to run a webVR program using A-Frame on my iPhone 6s, and these three browsers I have tested do not have access to my gyroscope. Safari Chrome Firefox I believe this could be fixed if the apps had the permission to, but there is not an easy way to do this switch that I have found. If anyone can give me a way to do this (without jailbreaking) it would be appreciated. Currently when I enter https://vrfinal.glitch.me and switch to google cardboard view on chrome