Aframe 固定实体到摄影机在VR模式下不显示

Aframe 固定实体到摄影机在VR模式下不显示,aframe,webvr,Aframe,Webvr,我想知道我的代码是否有问题,或者是否需要解决一些问题。这就是我所拥有的: <a-scene> <a-sky id="preview_image" src="/assets/img/example.jpg" refresh-event="trigger_event: new_frame_loaded"></a-sky> <a-entity camera look-controls> <a-cir

我想知道我的代码是否有问题,或者是否需要解决一些问题。这就是我所拥有的:

<a-scene>
    <a-sky id="preview_image" src="/assets/img/example.jpg" 
        refresh-event="trigger_event: new_frame_loaded"></a-sky>
    <a-entity camera look-controls>
        <a-circle
            color= "red"
            position= "38 18 -20">
        </a-circle>
    </a-entity>
</a-scene>


它在预览模式下工作良好。我想我可能正在运行A-frame版本:0.9.0

我假设问题似乎是您没有看到红色圆圈
。这是因为圆超出了你的边界

把它改成

<a-circle color= "red" position= "0 0 -1"></a-circle> 
<!-- -1 so it will in front of the <a-sky> -->


也许你可以分享屏幕截图,哪些正常,哪些不正常。啊,你说得对,它超出了范围,并且没有出现在虚拟现实模式中。这有点奇怪,因为它在previewGlad中显示为ok来解决您的问题。请单击答案左侧对您帮助最大的复选标记,结束您的问题