|
@@ -1,7 +1,7 @@
|
|
|
<xr-scene ar-system="modes:threeDof ; planeMode: 1;" bind:ready="handleReady" bind:ar-ready="handleARReady">
|
|
|
|
|
|
<xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
|
|
|
- <xr-asset-load type="gltf" asset-id="gltf-kun" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/5.glb" />
|
|
|
+ <xr-asset-load type="gltf" asset-id="gltf-kun" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/kun2.glb" />
|
|
|
|
|
|
<xr-asset-load type="gltf" asset-id="gltf-long" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/2low_poly_dragon_white_dh10.glb" />
|
|
|
|
|
@@ -14,15 +14,33 @@
|
|
|
<xr-asset-load type="gltf" asset-id="gltf-paopao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/PaoPao1.glb" />
|
|
|
<xr-asset-load type="gltf" asset-id="gltf-bubble" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/bubble.glb" />
|
|
|
<xr-asset-load type="gltf" asset-id="gltf-birdslow" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/phoenix_bird_slow4.glb" />
|
|
|
- <xr-asset-load type="gltf" asset-id="gltf-qipao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/%E6%B0%94%E6%B3%A1.glb" />
|
|
|
+ <xr-asset-load type="gltf" asset-id="gltf-qipao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/bubble4.glb" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xr-asset-load asset-id="anim" type="keyframe" src="/assets/animation/miku-kawaii-animation.json"/>
|
|
|
+ <xr-asset-load type="gltf" asset-id="miku-kawaii" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/phoenix_bird.glb" />
|
|
|
+
|
|
|
+ <xr-asset-load asset-id="animyu" type="keyframe" src="/assets/animation/jingyu.json"/>
|
|
|
+ <xr-asset-load type="gltf" asset-id="miku-yu" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/2ryukin_goldfish.glb" />
|
|
|
+
|
|
|
+ <xr-asset-load type="texture" asset-id="particle-texture" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/particles/point.png" />
|
|
|
+ <xr-asset-load type="texture" asset-id="flarePicture" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/flare.png" />
|
|
|
+
|
|
|
+
|
|
|
</xr-assets>
|
|
|
<xr-env node-id="World" env-data="env1"/>
|
|
|
<xr-node>
|
|
|
|
|
|
- <xr-gltf id="kun" node-id="kun" scale="30 30 30" position="-0.3 -0.5 -5" rotation="0 0 0" model="gltf-kun" anim-autoplay />
|
|
|
+ <xr-gltf id="kun" node-id="kun" scale="1 1 1" position="-0.3 -5 -15" rotation="0 90 0" model="gltf-kun" anim-autoplay />
|
|
|
|
|
|
<xr-gltf id="long" node-id="long" scale="40 40 40" position="-2.3 -0.5 -4" rotation="0 0 0" model="gltf-long" anim-autoplay />
|
|
|
|
|
|
+
|
|
|
+ <xr-gltf
|
|
|
+ wx:if="true"
|
|
|
+ id="qipao" node-id="qipao" scale=" 1 1 1" position="-0.5 0 -2" rotation="0 -100 0" model="gltf-qipao" anim-autoplay />
|
|
|
+
|
|
|
<xr-gltf
|
|
|
wx:if="true"
|
|
|
id="denglong" node-id="denglong" scale="1 1 1" position="-0.5 0 -3" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
@@ -41,6 +59,7 @@
|
|
|
|
|
|
|
|
|
</xr-node>
|
|
|
+
|
|
|
<xr-node position="4.3 0 -15" anim-keyframe="anim" anim-autoplay="clip:parent">
|
|
|
<xr-node position="0 0 -5" rotation="0 0 0" anim-keyframe="anim" anim-autoplay="clip:child">
|
|
|
<xr-gltf position="0 0 0" scale="0.01 0.01 0.01" rotation="0 180 0" model="gltf-birdslow" anim-keyframe="anim" anim-autoplay></xr-gltf>
|
|
@@ -75,7 +94,33 @@
|
|
|
-->
|
|
|
</xr-node>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ <xr-node node-id="target" position="0 1 0" />
|
|
|
+ <xr-gltf position="1.8 -0.5 1.5" scale="0.12 0.12 0.12" rotation="0 0 0" model="miku" anim-autoplay></xr-gltf>
|
|
|
+ <xr-node position="0 0 -2" rotation="0 160 0" anim-keyframe="animyu" anim-autoplay="clip:child">
|
|
|
+ <xr-gltf scale="0.1 0.1 0.1" rotation="0 -90 0" model="miku-yu" anim-keyframe="animyu" anim-autoplay></xr-gltf>
|
|
|
+ </xr-node>
|
|
|
+
|
|
|
+ <xr-node>
|
|
|
+ <xr-custom-particle id="firework" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="0 3 -20" start-color="1 0 0 1" end-color="1 1 0 1" burstCount="1" capacity="2" speed="3.4 3.8" size="0" emit-rate="2" life-time="1" angle="0"
|
|
|
+ rotation="0 0 90"
|
|
|
+ texture="particle-texture">
|
|
|
+ </xr-custom-particle>
|
|
|
|
|
|
+ <xr-custom-particle id="firework2" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="0 3 -20" start-color="1 0 0 1" end-color="1 1 0 1" burstCount="1" capacity="2" speed="3.4 3.8" size="0" emit-rate="2" life-time="1" angle="0"
|
|
|
+ rotation="0 0 90"
|
|
|
+ texture="particle-texture">
|
|
|
+ </xr-custom-particle>
|
|
|
+
|
|
|
+ <xr-custom-particle id="firework3" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="0 3 -20" start-color="1 0 0 1" end-color="1 1 0 1" burstCount="1" capacity="2" speed="3.4 3.8" size="0" emit-rate="2" life-time="1" angle="0"
|
|
|
+ rotation="0 0 90"
|
|
|
+ texture="particle-texture">
|
|
|
+ </xr-custom-particle>
|
|
|
+
|
|
|
+ </xr-node>
|
|
|
+
|
|
|
+
|
|
|
<xr-camera
|
|
|
id="camera" node-id="camera" position="1 1 1" clear-color="0.925 0.925 0.925 1"
|
|
|
background="ar" is-ar-camera
|