我目前正在 Unity 上为 Oculus Quest 耳机开发 3d VR 游戏(v 2019.3.6f1)
每当我在 Unity 编辑器中启动游戏(按“播放”按钮)时,我都会收到以下错误:
Unable to start Oculus XR Plugin.
Failed to load display subsystem.
Failed to load input subsystem.
Run Code Online (Sandbox Code Playgroud)
XR 插件已安装并更新到最新版本 (1.2.0):
这些错误的原因可能是什么?预先感谢您的回答。
我想弄清楚如何使用three.js 和webXR 为我的oculus quest 和其他设备绘制控件。该代码有效,并允许我移动控制器,将一个圆柱体映射到每个控件,并允许我使用触发器来更改圆柱体的颜色。这很棒,但我找不到任何关于如何使用操纵杆、手柄和其他按钮的轴控制的文档。我的一部分想相信它就像知道要调用哪个事件一样简单,因为我不知道还有哪些其他事件可用。
这是我基于此的教程的链接。https://github.com/as-ideas/webvr-with-threejs
请注意,此代码按预期工作,但我不知道如何进一步执行并执行更多操作。
function createController(controllerID, videoinput) {
//RENDER CONTROLLER AS YELLOW TUBE
const controller = renderer.vr.getController(controllerID);
const cylinderGeometry = new CylinderGeometry(0.025, 0.025, 1, 32);
const cylinderMaterial = new MeshPhongMaterial({ color: 0xffff00 });
const cylinder = new Mesh(cylinderGeometry, cylinderMaterial);
cylinder.geometry.translate(0, 0.5, 0);
cylinder.rotateX(-0.25 * Math.PI);
controller.add(cylinder);
cameraFixture.add(controller);
//TRIGGER
controller.addEventListener('selectstart', () => {
if (controllerID === 0) {
cylinderMaterial.color.set('pink')
} else {
cylinderMaterial.color.set('orange');
videoinput.play()
}
});
controller.addEventListener('selectend', () => {
cylinderMaterial.color.set(0xffff00);
videoinput.pause();
console.log('I pressed play');
});
}
Run Code Online (Sandbox Code Playgroud)
当我将 APK 上传到 Oculus 开发者中心时,出现此错误:
ERROR: Please sign or rebuild your APK using a production certificate or verify your Keystore build settings are correct.
我不知道如何解决该问题。如果有人可以提供帮助,请这样做,我们将不胜感激。如果有帮助的话,这是GitHub 存储库。
是否可以使用 Oculus 触摸控制器在 A 型框架项目中移动相机?
找不到任何工作示例。
尝试将 .apk 上传到 Oculus 应用实验室,但上传失败并出现以下错误:
错误:验证发现以下错误:此应用程序仅包含以下 32 位 (armeabi-v7a) 库:libOVRLipSync.so、libmemalign16.so、libovravatarloader.so、libmain.so、libmemalign16_cpp.so、libMonoPosixHelper.so、libovrplatformloader。所以,libmono-native.so,libopenxr_loader.so,libmonobdwgc-2.0.so,libunity.so,libOVRPlugin.so,libOculusXRPlugin.so
oculusquest ×6
oculus ×2
webxr ×2
aframe ×1
android ×1
apk ×1
certificate ×1
javascript ×1
three.js ×1
webvr ×1