12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <xr-scene ar-system="modes:Marker;planeMode: 1" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady" bind:log="handleLog">
- <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
- <!-- <xr-asset-load type="gltf" asset-id="soldier" src="https://houseoss.4dkankan.com/Soldier.glb" /> -->
- <xr-asset-load type="gltf" asset-id="mtgj" src="https://houseoss.4dkankan.com/mini-ar-test/mtgj.glb" />
- <xr-asset-load type="texture" asset-id="point" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/particles/point.png" />
- <xr-asset-load type="video-texture" asset-id="cat" src="https://houseoss.4dkankan.com/mini-ar-test/Homevideonew.mp4" options="autoPlay:true,loop:true,abortAudio:false,placeHolder:https://houseoss.4dkankan.com/mini-ar-test/Homevideonew.mp4?x-oss-process=video/snapshot,t_0,f_jpg,w_1000,m_fast,ar_auto" />
- <xr-asset-material asset-id="catMat" effect="simple" uniforms="u_baseColorMap: video-cat" />
- </xr-assets>
- <xr-env env-data="xr-frame-team-workspace-day" />
- <xr-node>
- <xr-ar-tracker id="ar-tracker-1" mode="Marker" src="https://houseoss.4dkankan.com/mini-ar-test/save-1.png" bind:ar-tracker-state="handleARTrackerState">
- <!-- <xr-gltf id="soldier-1" position="0 0.2 0" scale="0.3 0.3 0.3" rotation="90 270 90" model="soldier" anim-autoplay bind:gltf-loaded="handleGLTFLoaded" wx:if="{{isT1}}"></xr-gltf> -->
- <xr-gltf id="mtgj-1" position="0 0 0" scale="0.03 0.03 0.03" rotation="-45 0 0" model="mtgj" anim-autoplay="loop:0" bind:gltf-loaded="handleGLTFLoaded" wx:if="{{isT1}}"></xr-gltf>
- <!-- <xr-mesh node-id="mesh-plane" geometry="plane" material="mat" /> -->
- <!-- <xr-particle capacity="500" emit-rate="20" size="0.03 0.06" life-time="2 3" speed="0.04 0.1" start-color="1 1 1 0.8" end-color="1 1 1 0.2" emitter-type="BoxShape" emitter-props="minEmitBox:-0.5 0 0.5,maxEmitBox:0.5 0.2 0,direction:0 0 -1,direction2:0 0 -1" texture="point" /> -->
- </xr-ar-tracker>
- <xr-ar-tracker id="ar-tracker-2" mode="Marker" src="https://houseoss.4dkankan.com/mini-ar-test/mon1.jpg" bind:ar-tracker-state="handleARTrackerState1">
- <xr-mesh node-id="mesh-plane" geometry="plane" material="catMat" scale="0.4 0.4 0.4" />
- </xr-ar-tracker>
- <xr-ar-tracker id="ar-tracker-3" mode="Marker" src="https://houseoss.4dkankan.com/mini-ar-test/save-2.png" bind:ar-tracker-state="handleARTrackerState2">
- <xr-mesh node-id="mesh-plane" geometry="plane" material="catMat" scale="0.4 0.4 0.4" wx:if="{{isT3}}" />
- </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="2" />
- <xr-light type="directional" rotation="90 60 0" color="1 1 1" intensity="1" />
- </xr-node>
- </xr-scene>
|