google-cardboard

how to add gaze input timer to trigger an action after gazing for 3secs?

笑着哭i 提交于 2019-12-08 02:25:38
问题 I am new to unity and VR. I have been using google cardboard SDK to create VR apps in unity and am stuck at gazetimer. I want to trigger an action only if the user looks at any object for 3secs but have not been able to do so. Please help 回答1: Please see a similar question and answer here Use Gaze Input duration to select UI text in Google Cardboard In summary, create a script to time the gaze, by cumulatively adding Time.deltaTime on each frame when the object is gazed at. When gaze time

Unity 3D double sided shader with alpha and depth masking

匆匆过客 提交于 2019-12-07 19:23:41
问题 I want to create a shader in Unity 3D that you can add a material to that has both depth and transparency. I have so far created a shader that appears in 'scene' mode with transparency, but when I try to preview this in my VR setup, I cannot see the backface of the image. This is a set up for Google Cardboard, so I need to have the camera inside the mesh. This is my code so far: Shader "Custom/transparentDepth" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("Base (RGB)

Parsing error when trying to play Cardboard SDK For Unity Demo First time

烂漫一生 提交于 2019-12-07 02:53:27
I have followed the getting started steps here: https://developers.google.com/cardboard/unity/get-started But when I load the .apk file to my phone, I get a "There was a problem parsing the package" error. I tried searching online and I assume it means I have an issue somewhere in my AndroidManifest.xml file? Is there anything else I need to be aware of that the get-started guide didn't mention? Found the solution! Open the Android manifest file inside YourProject/Assets/Plugins/Android/AndroidManifest.xml and change the value of android:minSdkVersion to 16 . It was 19 by default. If it helps

google cardboard application in ios without using unity

倖福魔咒の 提交于 2019-12-06 16:25:50
问题 I'm trying to make a spherical 360 video in my ios app with the Google Cardboard SDK.I have seen that all tutorials and samples talking about unity. I am not familiar with unity or GL.Is there any way to do this without using unity ? 回答1: Yes there's now an official SDK for iOS that doesn't require Unity. https://developers.google.com/cardboard/ios/ Also for a simple 360 video player, check out VR View: https://developers.google.com/cardboard/vrview 回答2: You can try EleVR the web player seems

how to view normal video in cardboard like youtube

点点圈 提交于 2019-12-06 08:37:43
问题 I have an app that plays normal and VR videos. My app has two players to play both types. In my VrVideoView there is a button that makes video play in stereo mode . My question is: how can I view normal videos in Cardboard just like the YouTube app? 来源: https://stackoverflow.com/questions/39020103/how-to-view-normal-video-in-cardboard-like-youtube

Unity 3D double sided shader with alpha and depth masking

↘锁芯ラ 提交于 2019-12-06 07:52:41
I want to create a shader in Unity 3D that you can add a material to that has both depth and transparency. I have so far created a shader that appears in 'scene' mode with transparency, but when I try to preview this in my VR setup, I cannot see the backface of the image. This is a set up for Google Cardboard, so I need to have the camera inside the mesh. This is my code so far: Shader "Custom/transparentDepth" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} } SubShader { Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType

how to add gaze input timer to trigger an action after gazing for 3secs?

蹲街弑〆低调 提交于 2019-12-06 07:38:32
I am new to unity and VR. I have been using google cardboard SDK to create VR apps in unity and am stuck at gazetimer. I want to trigger an action only if the user looks at any object for 3secs but have not been able to do so. Please help Eugene Sia Please see a similar question and answer here Use Gaze Input duration to select UI text in Google Cardboard In summary, create a script to time the gaze, by cumulatively adding Time.deltaTime on each frame when the object is gazed at. When gaze time hits a pre-specified duration, trigger the button's OnClick event. On the object, activate the

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

旧街凉风 提交于 2019-12-05 11:07:45
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 have when they first posted the pages. Does anyone have a clue why its doing this and how to fix it? The

YouTube parameter to call split view for 360 degree video

自古美人都是妖i 提交于 2019-12-05 06:07:09
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 parameter or via the API? According to the YouTube Help Docs , Google Cardboard split screen playback is

How to make a simple VR video player by Google CardBoard Android SDK and Rajawali

烂漫一生 提交于 2019-12-04 22:55:35
问题 I am a new man in these area. I am trying to change a program in github to play video for cardboard now. I modified the MyRenderer by using StreamingTexture. public class MyRenderer extends RajawaliCardboardRenderer { public MyRenderer(Context context) { super(context); } private MediaPlayer mMediaPlayer; private StreamingTexture streamingTexture; @Override protected void initScene() { mMediaPlayer = MediaPlayer.create(this.getContext(), R.raw.test); streamingTexture = new StreamingTexture(