index.wxml 1.3 KB

12345678910111213141516171819202122
  1. <xr-scene ar-system="modes:Marker" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="bg" src="https://houseoss.4dkankan.com/project/hq-eduction-vr/public/BG/HQ.gltf" options="preserveRaw: true" />
  4. <xr-asset-load type="gltf" asset-id="adl" src="https://houseoss.4dkankan.com/project/hq-eduction-vr/public/adl-gltf/adl.gltf" options="preserveRaw: true" />
  5. </xr-assets>
  6. <xr-env env-data="xr-frame-team-workspace-day" />
  7. <xr-node wx:if="{{arReady}}">
  8. <xr-ar-tracker mode="Marker" src="{{markerImg}}" bind:ar-tracker-state="handleARTrackerState1">
  9. <xr-gltf vis model="bg" position="0 0 0" scale="0.5 0.5 0.5" rotation="-90 0 0" bind:gltf-loaded="handleItem1Loaded" />
  10. <xr-gltf vis model="adl" position="{{adlPos}}" scale="{{adlScale}}" rotation="-90 0 0" bind:gltf-loaded="handleItem2Loaded" />
  11. </xr-ar-tracker>
  12. <xr-camera id="camera" position="1 1 1" node-id="camera" clear-color="0.925 0.925 0.925 1" background="ar" is-ar-camera></xr-camera>
  13. </xr-node>
  14. <xr-node node-id="lights">
  15. <xr-light type="ambient" color="1 1 1" intensity="1" />
  16. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="2" />
  17. </xr-node>
  18. </xr-scene>