index.wxml 734 B

12345678910111213141516171819
  1. <xr-demo-viewer
  2. title="扫描图片模型透视案例"
  3. intro="基于 Stencil裁剪 实现的基本模型透视效果案例. Model from SketchFab By @Omar Faruq Tawsif"
  4. hint="默认扫描图片见官网开发文档\n组件 -> xr-frame -> 示例"
  5. >
  6. <xr-classic-perspect
  7. disable-scroll
  8. id="main-frame"
  9. width="{{renderWidth}}"
  10. height="{{renderHeight}}"
  11. style="width:{{width}}px;height:{{height}}px;top:{{top}}px;left:{{left}}px;display:block;"
  12. bind:arTrackerState="handleARTrackerState"
  13. />
  14. <view wx:if="{{arTrackerShow}}" style="text-align: center;padding: 12px;">
  15. <view>Tracker识别状态:{{arTrackerState}}</view>
  16. <view>错误信息:{{arTrackerError}}</view>
  17. </view>
  18. </xr-demo-viewer>