google-cardboard

Display a gstreamer video feed into Google Cardboard SurfaceTexture

大憨熊 提交于 2019-12-03 07:40:18
I'm using gstreamer to retrieve a video feed (sent from a RaspPi), and I need to display it into Google Cardboard. I based my work on the tutorial-3 example of gstreamer . I managed to display my video into a SurfaceView, by giving my Surface (retrieved from SurfaceView.SurfaceHolder.getSurface() , but I now need to connect it with the Google Cardboard. If I do not mistake, Google Cardboard relies on some SurfaceTexture. So I thought it would be easy to simply get the Surface from the SurfaceTexture using the Surface(SurfaceTexture) constructor. The problem is that it simply doesn't work. My

Stream youtube video for Google Cardboard - Android

冷暖自知 提交于 2019-12-03 06:07:40
I want to stream a 360 video from YouTube in my android app in such a way that it is compatible with Google Cardboard- that is, I want the video to be streamed side by side like in CardboardView. I have been searching the internet about this and I don't seem to have much luck with it. So any amount of help would be heavily appreciated. Thanks in advance! 来源: https://stackoverflow.com/questions/30870607/stream-youtube-video-for-google-cardboard-android

How to use RajawaliVR or Rajawali to play a 360 Video

南楼画角 提交于 2019-12-03 04:51:16
I am having a hard time to figure out how to use the Rajawali to play a 360 video. In order to achieve this, I tried every solution I could find in the Internet, but I failed. Firstly, I used the RajawaliCardboard, and let the MainActivity extend from CardboardActivity . At the same time, in MyRenderer class, I let this class extend from the RajawaliCardboardRenderer class. In MyRenderer class, I overrided the initScene() function: protected void initScene() { StreamingTexture mTexture = null; if (externalMemoryAvailable()) { mVideoPath = Environment.getExternalStorageDirectory()

Google Cardboard VR sensors

懵懂的女人 提交于 2019-12-02 22:45:00
I'm using the Google Cardboard (its HeadTracker class) to detect certain things about device rotation in an AR application. It works very well. However, on some devices, it doesn't work (nothing happens). I assume this is because they don't have the necessary sensors. My questions: 1) I want to detect at runtime whether the current device supports the HeadTracker, i.e. it has the necessary sensors available. For this, I need to know which sensors are used by HeadTracker, so that I can query if those sensors are present. What are these sensors? 2) Is there a way to specify the necessary sensors

Optimization to avoid jitters on cardboard app when moving camera with head on Android

。_饼干妹妹 提交于 2019-12-02 17:02:28
问题 I am working on a cardboard application for android platform. Currently I have Light-maps, heavy textures and around 100 UI elements in scene (most of them have text components with stock Arial font from Unity3D standard assets and few ScrollRect and Mask components). Running application on cardboard in a bit jittery overall when I move head to look around in the scene and shows spikes on Profiler when I load a new menu. Profiler view from a frame is shown in the image below : Has anyone

Unity GVR Cardboard Camera incorrect work on Android

风流意气都作罢 提交于 2019-12-01 21:42:42
I have prepared unity environment to work with Google VR cardboard. Sample project performs fine and all is good. In my project I have Main Camera object, which moves across the scene. I've added "Strereo Controller" (Script) component to the camera and it works fine in Unity editor. But when I start project on Android device camera stand still on one place and doesn't move. What can it be? You can't move the VR Camera, it's the SDK that determine the mainCamera position. In order to move your camera you can just make a new GameObject as a parent of your mainCamera then move the parent

Unity Cardboard Orientation Landscape Right Upside Down

可紊 提交于 2019-12-01 20:26:30
Hi I have a Unity app which uses google Cardboard SDK to enable stereoscopic view so I will have a VR enabled app. My app runs perfectly fine. But there is a problem if I set the player settings orientation to be auto orientation with only landscape left and landscape right allowed. When it is in landscape left, everything works as per normal but when it is in landscape right the cardboard view will turn 180 degrees (settings button moved to bottom of screen) but my unity objects does not. Thus I have an upside-down objects. Any method to fix this? Thanks. It appears the native code that the

Unity says API level is too low

时间秒杀一切 提交于 2019-12-01 15:24:53
问题 The exact error: Minimum API Level Not Supported on Requested VR Device Cardboard Requires a Minimum API Level of 19 Though in the Android SDK Manager, it says I have revisions 25.2.5, 25.0.5, and 25.0.3 installed. 回答1: You have to change this Minimun API Level from the Editor. Go to Edit --> Project Settings --> Player --> Other Settings --> Identification --> Minimium API Level --> Android 4.4 'Kit Kat' (API Level 19) or anything above. Also change Target API Level to Automatic (highest

How to import unity project into existing Android studios projecT?

好久不见. 提交于 2019-12-01 11:33:46
问题 I am having problems importing unity project into Android Studios. I already have a Android studio project (for menu and other things), and i want to add a scene from Unity 5 3D, as a second activity (not the main activity). I want to call unity scene when user clicks the button. I know how to export it from unity but it automatically sets it as MainActivity, and i cant find a way to manually overwrite it. Edit: I want to do it in Android Studios and not Eclipse. I just want to know if there

How to navigate in Google VR view?

拈花ヽ惹草 提交于 2019-12-01 08:52:41
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 an arbitrary image from disk using: * adb shell am start -a "android.intent.action.VIEW" \ * -n "com