天道酬勤,学无止境

google-cardboard

Google Cardboard default distortion values

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.

2021-07-03 14:40:34    分类:问答    android   google-cardboard

three.js — fit a background image panorama

I am trying to put this image -- https://hdfreefoto.files.wordpress.com/2014/09/bright-milky-way-over-the-lake-at-night.jpg -- as a panorama background in my three.js scene. I have the following code: var sphere = new THREE.SphereGeometry(200, 200, 32); sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1)); var sphereMaterial = new THREE.MeshBasicMaterial(); sphereMaterial.map = THREE.ImageUtils.loadTexture(<path to above image>); var sphereMesh = new THREE.Mesh(sphere, sphereMaterial); scene.add(sphereMesh); However When i view through cardboard, and rotate 360 degrees, i do not see the

2021-06-29 01:02:30    分类:问答    three.js   google-cardboard   panoramas   360-panorama   360-panorama-viewer

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

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?

2021-06-28 07:29:56    分类:问答    android   unity3d   google-cardboard

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

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

2021-06-26 09:38:29    分类:问答    unity3d   unityscript   google-cardboard   virtual-reality   360-virtual-reality

is it possible to remove the (i) info button and place some video controllers over 360 video Google VR?

The title says it all! but to be more clear, please check this screenshot. This is a 360 video playback using the Google VR https://developers.google.com/vr/ios/ but I want to know if it is possible to remove this little (info) button? and instead overlay our own set of video controlers?

2021-06-26 07:23:27    分类:问答    ios   objective-c   google-cardboard   google-vr

Unity 3D double sided shader with alpha and depth masking

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

2021-06-26 00:27:21    分类:问答    unity3d   shader   google-cardboard

如何在 Google VR 视图中导航?(How to navigate in Google VR view?)

问题 我正在使用 VrPanoramaView 编写一个 android 应用程序我知道有两种方法可以在 VR 应用程序中导航 使用纸板上的单个按钮作为单击将长时间注视某物视为单击 我如何使用其中一个实现导航,以便如果用户单击按钮全景视图将跳到下一张图片? 下面是示例 Vr PanoramaView 代码 ** * 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.google.vr.sdk.samples.simplepanowidget/.SimpleVrPanoramaActivity" \ * -d "/sdcard/FILENAME.JPG" * * To load stereo images, "--ei inputType 2" can be used to pass in an integer extra which will set * VrPanoramaView

2021-06-25 06:59:04    分类:技术分享    android   navigation   google-cardboard   virtual-reality   360-panorama-viewer

优化避免在 Android 上用头移动相机时纸板应用程序上的抖动(Optimization to avoid jitters on cardboard app when moving camera with head on Android)

问题 我正在为 android 平台开发纸板应用程序。 目前,我在场景中有光照贴图、重纹理和大约 100 个 UI 元素(其中大多数具有来自 Unity3D 标准资产的带有库存 Arial 字体的文本组件以及很少的 ScrollRect 和 Mask 组件)。 当我移动头部在场景中环顾四周并在加载新菜单时在 Profiler 上显示尖峰时,在纸板上运行应用程序总体上有点紧张。 框架中的 Profiler 视图如下图所示: 有没有人遇到过这个问题? 有人可以指出我正确的优化方向吗? 提前致谢。

2021-06-25 01:27:31    分类:技术分享    android   performance   unity3d   profiling   google-cardboard

如何将 unity 项目导入到现有的 Android studios project 中?(How to import unity project into existing Android studios projecT?)

问题 我在将统一项目导入 Android Studios 时遇到问题。 我已经有一个 Android Studio 项目(用于菜单和其他东西),我想从 Unity 5 3D 添加一个场景,作为第二个活动(不是主要活动)。 当用户单击按钮时,我想调用统一场景。 我知道如何从 unity 导出它,但它会自动将其设置为 MainActivity,而且我找不到手动覆盖它的方法。 编辑:我想在 Android Studios 而不是 Eclipse 中进行。 我只想知道是否有一种简单的方法可以做到这一点,或者至少是如何做到这一点的提示。 回答1 有同样的要求,成功地将 Unity 项目导入到现有的 Android Studio 项目中。 如前所述,第一件事是导出 Unity 项目。 我使用了 Unity 2017.1 版。 粗略的步骤如下: 通过 Unity 构建设置导出 Android 项目 您只需选择现有项目所在的文件夹即可。 Unity 应该添加一个包含 Android Studio 格式项目和所有依赖项以及运行所需的所有内容的子文件夹。 现在我们需要将此“应用程序”项目转换为“库”项目。 这只需通过更改build.gradle文件即可完成。 将应用插件:' com.android.application ' 替换为应用插件:' com.android.library '。

2021-06-23 17:28:55    分类:技术分享    android-studio   unity3d   android-manifest   google-cardboard

使用设备的方向绕原点运行(Orbiting around the origin using a device's orientation)

问题 我正在尝试使用three.js 复制Google Cardboard Demo“Exhibit”的功能。 我直接从 Chrome Experiments 网页中获取了起始示例,并在init方法中添加了代码以绘制一个简单的三角金字塔: 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); controls = new THREE.OrbitControls(camera, element); controls.rotateUp(Math.PI / 4); controls.noZoom = true; controls.noPan = true; var

2021-06-23 13:07:33    分类:技术分享    javascript   three.js   google-cardboard