Tag: 虚拟现实

使用注视input持续时间在Google Cardboard中select用户界面文字

我用我自己的UI文本button修改了Google Cardboard DemoScene。 默认情况下,这些button会响应Onclick()或点击事件来触发操作。 我想触发这些行动时,用户设置他们的目光对象2秒。 我怀疑我需要在GazeInputModule中添加一些条件语句,但我不知道如何度量时间。 任何人都可以指向正确的方向吗? 这是正确的方法还是我应该尝试其他的东西? 这对我来说还是很新的,所以即使是基本的提示也是非常有帮助的!

如何在iOS objective-C中为vr应用程序并排显示相机的两个预览?

我试图为vr应用程序并排实现两个摄像机视图。 我在这个网站find了一些有用的信息: 如何同时显示2个相机预览?[对于纸板应用程序] 但我想如何创build与iOS? 我正在尝试与AVFoundation创build相同的行为。 这是我现在的代码 CameraViewController #import <AVFoundation/AVFoundation.h> #import "CameraViewController.h" @interface CameraViewController () @property (strong, nonatomic) AVCaptureSession *captureSession; @property (strong, nonatomic) AVCaptureStillImageOutput *stillImageOutput; @property (strong, nonatomic) AVCaptureVideoPreviewLayer *previewLayerLeft; @property (strong, nonatomic) AVCaptureVideoPreviewLayer *previewLayerRight; @end @implementation CameraViewController #pragma mark – lazy instantiation – (AVCaptureSession *)captureSession { if (!_captureSession) _captureSession = [[AVCaptureSession alloc] init]; return _captureSession; […]

Google Cardboard – 是否有Cardboard VR套件的iPhone / iOS启动器项目?

我正在寻找谷歌纸板套件,一个廉价的VR设置 ,使用Android设备来玩3D虚拟现实游戏。 我看到他们有一个Android演示项目,但是Cardboard项目中是否有iOS或Objective-C端口? 如果没有,是否有任何其他的iOS项目可以修改为与硬纸板套件一起使用?