收藏
回答

XRFrame 2DMarker xr-ar-tracker模式支持多个目标但进入时有卡顿怎么优化?

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

    <xr-ar-tracker  mode="Markersrc="{{iUrl}}" id="arTrackerbind:ar-tracker-switch="handleTrackerSwitch">

      <xr-mesh wx:if="{{meshProps}}" node-id="video-itemgeometry="planeposition="{{meshProps.position}}" scale="{{meshProps.scale}}" material="removeBlack-matuniforms="u_videoMap:video-matstates="renderQueue:3000">

      </xr-mesh>

    </xr-ar-tracker>

    <xr-ar-tracker  mode="Markersrc="{{test-a}}" id="arTrackerbind:ar-tracker-switch="handleTrackerSwitch">

      <xr-mesh wx:if="{{meshProps}}" node-id="video-itemgeometry="planeposition="{{meshProps.position}}" scale="{{meshProps.scale}}" material="removeBlack-matuniforms="u_videoMap:video-matstates="renderQueue:3000">

      </xr-mesh>

    </xr-ar-tracker>

    <xr-ar-tracker  mode="Markersrc="{{test-b}}" id="arTrackerbind:ar-tracker-switch="handleTrackerSwitch">

      <xr-mesh wx:if="{{meshProps}}" node-id="video-itemgeometry="planeposition="{{meshProps.position}}" scale="{{meshProps.scale}}" material="removeBlack-matuniforms="u_videoMap:video-matstates="renderQueue:3000">

      </xr-mesh>

    </xr-ar-tracker>

    <xr-camera id="camerabackground="aris-ar-camera  clear-color="0.925 0.925 0.925 1"/>

  </xr-node>


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