【问题标题】:Aframe Cursor disorted帧光标失真
【发布时间】:2018-12-07 06:52:28
【问题描述】:

当我在移动设备上进入虚拟现实模式时,您会看到一个光标进行交互。现在我的问题是光标扭曲了。当我移动我的 VR 眼镜的镜片时,我可以让光标变成一个,但我的场景不再正确了。这是我的相机和我的光标:

  <!--------camera---------->    
<a-entity rotation="0 90 0">
  <a-camera user-height="0" wasd-controls-enabled="false" look-controls>
    <a-cursor id="curseid" visible="false" opacity="0" fuse="true" fusetimeout="4000"
      position="0 0 -0.1"
      raycaster="objects: .clickable"
      geometry="primitive: ring;
      radiusInner: 0.002;
      radiusOuter: 0.003"
      material="color: red; shader: flat">
      <a-animation attribute="scale"
                      to="3 3 3"
                      dur="2000"
                      begin="cursor-fusing"
                      fill="backwards"
                      easing="linear">
      </a-animation>
      <a-animation attribute="material.opacity" begin="fade" to="0"></a-animation>
      <a-animation attribute="material.opacity" begin="fade_cursor" dur="2000" from="0" to="1"></a-animation>
   </a-cursor>
    <a-entity id="redcircle" visible="false" position="0 0 -0.1" 
            geometry="primitive: ring;
            radiusInner: 0.007;
            radiusOuter: 0.0077"
            material="color: red; opacity: 0; shader: flat">
     <a-animation attribute="material.opacity" begin="fade" to="0"></a-animation>
    <a-animation attribute="material.opacity" begin="fade_circle" dur="2000" from="0" to="0.25"></a-animation></a-entity>
 </a-camera>  
</a-entity>  

【问题讨论】:

  • 能否提供手机型号、使用的浏览器?
  • 问题是否体现在光标示例中:aframe.io/aframe/examples/test/cursor
  • 我很愚蠢,我的光标在 z:-0.1 这是关闭相机的方式,现在一切都很好,感谢识别:)

标签: camera cursor aframe virtual-reality


【解决方案1】:

光标是关闭相机的方法,我将它设置在 z: -1 上,现在可以了

【讨论】:

    猜你喜欢
    • 2016-12-05
    • 1970-01-01
    • 2012-08-16
    • 1970-01-01
    • 2010-10-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-02
    • 2016-05-07
    相关资源
    最近更新 更多