|
@@ -1,6 +1,6 @@
|
|
|
<xr-scene ar-system="modes:Plane ; 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/WXModel/kun_0128.glb" />
|
|
|
|
|
@@ -18,8 +18,7 @@
|
|
|
|
|
|
<xr-asset-load asset-id="anim" type="keyframe" src="/assets/animation/miku-kawaii-animation.json"/>
|
|
|
<xr-asset-load asset-id="anim_kun_long" type="keyframe" src="/assets/animation/kun-long-animation.json"/>
|
|
|
- <xr-asset-load asset-id="anim_kun_long_ni" type="keyframe" src="/assets/animation/kun-long-ni-animation.json"/>
|
|
|
- <xr-asset-load asset-id="anim_lu" type="keyframe" src="/assets/animation/lu-animation.json"/>
|
|
|
+ <xr-asset-load asset-id="anim_kun_long_ni" type="keyframe" src="/assets/animation/kun-long-ni-animation.json"/>
|
|
|
<xr-asset-load asset-id="anim_nianshou" type="keyframe" src="/assets/animation/nianshou-animation.json"/>
|
|
|
|
|
|
<xr-asset-load type="texture" asset-id="particle-texture" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/particles/point.png" />
|
|
@@ -32,19 +31,19 @@
|
|
|
|
|
|
|
|
|
<xr-gltf
|
|
|
- id="denglong" node-id="denglong" scale="1 1 1" position="-0.5 3 -3" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
+ id="denglong" node-id="denglong" scale="1 1 1" position="-15 13 -15" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
|
|
|
<xr-gltf
|
|
|
- id="denglong" node-id="denglong" scale="1 1 1" position="-2.5 3 -2" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
+ id="denglong" node-id="denglong" scale="1 1 1" position="15 12 -20" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
|
|
|
<xr-gltf
|
|
|
- id="denglong" node-id="denglong" scale="1 1 1" position="2.5 3 -3" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
+ id="denglong" node-id="denglong" scale="1 1 1" position="12 11 -30" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
|
|
|
<xr-gltf
|
|
|
- id="denglong" node-id="denglong" scale="1 1 1" position="-0.5 3 -5" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
+ id="denglong" node-id="denglong" scale="1 1 1" position="-5.5 10 -5" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
|
|
|
<xr-gltf
|
|
|
- id="denglong" node-id="denglong" scale="1 1 1" position="-0.5 3 5" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
+ id="denglong" node-id="denglong" scale="1 1 1" position="5.5 9 8" rotation="0 -100 0" model="gltf-denglong" anim-autoplay />
|
|
|
|
|
|
|
|
|
|
|
@@ -74,56 +73,56 @@
|
|
|
|
|
|
</xr-node>
|
|
|
|
|
|
- <xr-node position="40 2 0" anim-keyframe="anim_nianshou" anim-autoplay="clip:parent">
|
|
|
+ <xr-node position="20 0 -20" anim-keyframe="anim_nianshou" anim-autoplay="clip:parent">
|
|
|
<xr-node position="0 0 -10" rotation="0 0 0">
|
|
|
<xr-gltf
|
|
|
- wx:if="false"
|
|
|
+ wx:if="{{nianshouShow}}"
|
|
|
id="qiling" node-id="qiling" scale="10 10 10" position="0 0 0" rotation="0 90 0" model="gltf-qiling" anim-autoplay />
|
|
|
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
- <xr-node position="-40 2 0" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent4">
|
|
|
+ <xr-node position="-25 -3 -35" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent4">
|
|
|
<xr-node position="0 0 -10" rotation="0 0 0">
|
|
|
<xr-gltf
|
|
|
- wx:if="false"
|
|
|
- id="fuzhu" node-id="fuzhu" scale="0.1 0.1 0.1" position="0 0 0" rotation="0 90 0" model="gltf-fuzhu" anim-autoplay />
|
|
|
+ wx:if="{{fuzhuShow}}"
|
|
|
+ id="fuzhu" node-id="fuzhu" scale="0.2 0.2 0.2" position="0 0 0" rotation="0 90 0" model="gltf-fuzhu" anim-autoplay />
|
|
|
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
|
|
|
- <xr-node position="-30 4 30" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent3">
|
|
|
- <xr-node position="0 0 -30" rotation="0 0 0">
|
|
|
+ <xr-node position="30 30 -30" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent3">
|
|
|
+ <xr-node position="0 0 -15" rotation="0 0 0">
|
|
|
<xr-gltf
|
|
|
-
|
|
|
- id="luanniao" node-id="luanniao" scale="2 2 2" position="0 0 0" rotation="0 180 0" model="gltf-luanniao" anim-autoplay />
|
|
|
+ wx:if="{{luanniaoShow}}"
|
|
|
+ id="luanniao" node-id="luanniao" scale="5 5 5" position="0 0 0" rotation="0 180 0" model="gltf-luanniao" anim-autoplay />
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
- <xr-node position="30 4 30" anim-keyframe="anim_kun_long" anim-autoplay="clip:parent4">
|
|
|
- <xr-node position="0 0 -30" rotation="0 0 0" anim-keyframe="anim" anim-autoplay="clip:child">
|
|
|
+ <xr-node position="-30 32 -35" anim-keyframe="anim" anim-autoplay="clip:parent">
|
|
|
+ <xr-node position="0 0 -25" rotation="0 0 0" anim-keyframe="anim" anim-autoplay="clip:child">
|
|
|
<xr-gltf
|
|
|
- wx:if="false"
|
|
|
- id="YinLong" node-id="YinLong" scale="0.03 0.03 0.03" position="0 0 0" rotation="0 90 0" model="gltf-YinLong" anim-autoplay />
|
|
|
+ wx:if="{{yinglongShow}}"
|
|
|
+ id="YinLong" node-id="YinLong" scale="0.06 0.06 0.06" position="0 0 0" rotation="0 90 0" model="gltf-YinLong" anim-autoplay />
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
|
|
|
- <xr-node position="0 2 0" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent3">
|
|
|
- <xr-node position="0 0 30" rotation="0 0 0">
|
|
|
+ <xr-node position="-40 25 -45" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent3">
|
|
|
+ <xr-node position="0 0 10" rotation="0 0 0">
|
|
|
<xr-gltf id="kun" node-id="kun" scale="0.05 0.05 0.05" position="0 0 0" rotation="0 -90 0" model="gltf-kun" anim-autoplay />
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
- <xr-node position="0 3 0" anim-keyframe="anim_kun_long" anim-autoplay="clip:parent4">
|
|
|
- <xr-node position="0 0 -40" rotation="0 0 0">
|
|
|
+ <xr-node position="40 29 -45" anim-keyframe="anim_kun_long" anim-autoplay="clip:parent4">
|
|
|
+ <xr-node position="0 0 -20" rotation="0 0 0">
|
|
|
<xr-gltf id="Jiaolong" node-id="Jiaolong" scale="3 3 3" position="0 0 0" rotation="0 90 0" model="gltf-Jiaolong" anim-autoplay />
|
|
|
</xr-node>
|
|
|
</xr-node>
|
|
|
|
|
|
- <xr-node position="4.3 10 -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-node position="0 25 -45" anim-keyframe="anim" anim-autoplay="clip:parent">
|
|
|
+ <xr-node position="0 0 -10" 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>
|
|
|
</xr-node>
|
|
|
|
|
@@ -165,17 +164,37 @@
|
|
|
</xr-node>-->
|
|
|
|
|
|
<xr-node>
|
|
|
- <xr-custom-particle id="firework" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="0 13 -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"
|
|
|
+ <xr-custom-particle id="firework" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="1 20 -30" start-color="1 1 0 1" end-color="1 0 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 13 -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"
|
|
|
+ <xr-custom-particle id="firework2" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="8 12 -25" 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 13 -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"
|
|
|
+ <xr-custom-particle id="firework3" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="-8 10 -20" start-color="1 1 0 1" end-color="1 0 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="firework4" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="-20 14 -15" 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="firework5" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="5 15 -15" 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="firework6" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="15 16 -5" start-color="1 1 0 1" end-color="1 0 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="firework7" emitter-type="SphereShape" emitter-props="radius:1,arc:0.5" position="-15 18 -5" 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>
|
|
@@ -195,6 +214,8 @@
|
|
|
</xr-node>
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</xr-scene>
|
|
|
|
|
|
|