收藏
回答

xr-frame的OSD下怎么识别后加载gif图?

<xr-scene ar-system="modes:OSD" id="xr-scene" bind:ready="handleReady">

  <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">

  </xr-assets>

  <xr-node>

    <xr-ar-tracker bind:ar-tracker-switch="handleTrackerSwitch" mode="OSD" src="http://arnhxb.jctmj.cn{{markerImg}}"  bind:ar-tracker-switch="handleToySwitch">

      <xr-node wx:if="{{toyReady}}">

      <image src="http://arnhxb.jctmj.cn/xcxImage/image/man.gif" style="position: absolute;left: 50%;right: 50%;transform: translateX(-50%) translateY(-50%);width: 500rpx;height: 500rpx;z-index: 99999;"/>

      </xr-node>

    </xr-ar-tracker>

    <xr-camera

      id="camera" node-id="camera" position="1 1 1" clear-color="0.925 0.925 0.925 1"

      far="2000" background="ar" is-ar-camera

    ></xr-camera>

  </xr-node>

  <xr-node node-id="lights">

    <xr-light type="ambient" color="1 1 1" intensity="0.3" />

    <xr-light type="directional" rotation="30 60 0" color="1 1 1" intensity="1" />

  </xr-node>

</xr-scene>

回答关注问题邀请回答
收藏
登录 后发表内容