aframe - 光标停留在 iPhone iOS safari、iOS google chrome、iOS Mozilla 上的加载位置
问题描述
我最近开始使用 A-frame 来开发 VR 体验。我的第一个项目是一个简单的城市虚拟之旅。除了一种情况外,框架似乎在桌面浏览器和 iOS 上运行良好。当我在 iOS 上进入 VR 模式时,光标卡在加载位置。
我的项目的一些细节是我将我的 a-entity 对象存储在 JSON 中并通过 elements.js 呈现它们
你可以在https://thearchmedia.com/3d-tours/tampere-tour/vr/看到我的项目
我知道在 aframe.io 上据说对 iOS 的支持很奇怪,但我很好奇是否有解决这个问题的方法。我刚刚开始尝试使用 a-frame,所以如果您发现代码有任何问题,请随时告诉我。
这是我的代码!任何帮助,将不胜感激。
<html>
<head>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-template-component@3.x.x/dist/aframe-template-component.min.js"></script>
<script src="https://unpkg.com/aframe-layout-component@4.x.x/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@5.x.x/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene stats>
<a-assets>
<img crossorigin="anonymous" id="node1" src="https://static.thearchmedia.com/media/documents/a-frame_images/node1.jpg">
</a-assets>
<a-camera>
<a-cursor></a-cursor>
</a-camera>
<a-sky id="image-360" src="#node1" color="#fff" animation__fade="property: components.material.material.color; type: color; from: #FFF; to: #000; dur: 300; startEvents: fade" animation__fadeback="property: components.material.material.color; type: color; from: #000; to: #FFF; dur: 300; startEvents: animationcomplete__fade"></a-sky>
<!-- Link template we will build. -->
<!-- Camera + Cursor. -->
</a-scene>
</body>
</html>
解决方案
推荐阅读
- vue.js - 在 Front 中安全存储用户角色的位置
- mysql - SQL:从外键和属性创建主键
- c - C 字符串操作
- arrays - 从数组打印字符串打印错误的结果
- javascript - 如何获取 mp4 的编解码器 mime 信息?
- linux-device-driver - 在 Ubuntu 20.04 上使用什么代替 strlen() 作为设备驱动程序
- xml - 你如何在 xsl 中编写特殊字符?
- excel - 如何从 Excel 表格中的非唯一值返回行和列标签?
- arrays - 使用数组和指针的龟兔赛跑
- javascript - 我如何在按钮中使用 js ajax 打开一个新标签