【发布时间】:2018-12-29 21:55:54
【问题描述】:
我正在尝试使用汽车的 .obj 模型在 A 框架中创建第一人称视图。
摄像头已定位在靠近驾驶座的位置,javascript 中有一个定时间隔,通过三角计算移动摄像头位置并相应地移动摄像头。
这是我面临的两个问题
1) 你如何使它更流畅? A-frame 中的渲染循环是否有一个可以在 javascript 中访问的钩子?我似乎找不到它的文档。
2)当我在手机(Android 9)上以VR模式查看上述页面时,创建的动画突然停止,在全屏模式下效果很好。
html的代码在这里https://raw.githubusercontent.com/CuriosityGym/VRWithAframe/master/templates/class3-models.html
示例可以在这里访问http://cgaframe.herokuapp.com/class3
谢谢!
【问题讨论】:
标签: render aframe virtual-reality