Initial commit
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: animatedSpriteSystem
|
||||
ParticleEmitter3D {
|
||||
id: animatedSpriteEmitter
|
||||
velocity: animatedSpriteDirection
|
||||
particle: animatedSpriteParticle
|
||||
lifeSpan: 1000
|
||||
emitRate: 1
|
||||
SpriteParticle3D {
|
||||
id: animatedSpriteParticle
|
||||
particleScale: 25
|
||||
billboard: true
|
||||
sprite: animatedTexture
|
||||
spriteSequence: animatedSequence
|
||||
maxAmount: 10
|
||||
|
||||
SpriteSequence3D {
|
||||
id: animatedSequence
|
||||
duration: -1
|
||||
interpolate: false
|
||||
}
|
||||
|
||||
Texture {
|
||||
id: animatedTexture
|
||||
}
|
||||
}
|
||||
|
||||
VectorDirection3D {
|
||||
id: animatedSpriteDirection
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: attractorSystem
|
||||
ParticleEmitter3D {
|
||||
velocity: attractorDirection
|
||||
particle: attractorParticle
|
||||
emitRate: 200
|
||||
lifeSpan: 2000
|
||||
|
||||
SpriteParticle3D {
|
||||
id: attractorParticle
|
||||
maxAmount: 1000
|
||||
}
|
||||
|
||||
VectorDirection3D {
|
||||
id: attractorDirection
|
||||
direction.y: 40
|
||||
directionVariation.y: 10
|
||||
directionVariation.z: 100
|
||||
directionVariation.x: 100
|
||||
}
|
||||
}
|
||||
|
||||
Attractor3D {
|
||||
id: particleAttractor
|
||||
y: 100
|
||||
duration: 1000
|
||||
particles: attractorParticle
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: burstSystem
|
||||
ParticleEmitter3D {
|
||||
id: burstEmitter
|
||||
emitBursts: emitBurst
|
||||
velocity: burstDirection
|
||||
particle: burstParticle
|
||||
lifeSpan: 4000
|
||||
SpriteParticle3D {
|
||||
id: burstParticle
|
||||
maxAmount: 200
|
||||
}
|
||||
|
||||
VectorDirection3D {
|
||||
id: burstDirection
|
||||
directionVariation.z: 10
|
||||
directionVariation.y: 10
|
||||
directionVariation.x: 10
|
||||
}
|
||||
|
||||
EmitBurst3D {
|
||||
id: emitBurst
|
||||
time: 500
|
||||
duration: 100
|
||||
amount: 20
|
||||
}
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: modelBlendSystem
|
||||
Component {
|
||||
id: modelComponent
|
||||
Model {
|
||||
id: sphere
|
||||
source: "#Sphere"
|
||||
materials: defaultMaterial
|
||||
DefaultMaterial {
|
||||
id: defaultMaterial
|
||||
diffuseColor: "#4aee45"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Node {
|
||||
id: translateNode
|
||||
x: 150
|
||||
}
|
||||
ModelBlendParticle3D {
|
||||
id: modelBlendParticle
|
||||
modelBlendMode: ModelBlendParticle3D.Construct
|
||||
endNode: translateNode
|
||||
random: true
|
||||
delegate: modelComponent
|
||||
endTime: 1500
|
||||
}
|
||||
ParticleEmitter3D {
|
||||
id: emitter
|
||||
velocity: modelBlendDirection
|
||||
particle: modelBlendParticle
|
||||
lifeSpan: 4000
|
||||
emitRate: modelBlendParticle.maxAmount
|
||||
|
||||
VectorDirection3D {
|
||||
id: modelBlendDirection
|
||||
directionVariation.z: 50
|
||||
directionVariation.x: 50
|
||||
}
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: modelShapeSystem
|
||||
ParticleEmitter3D {
|
||||
id: modelShapeEmitter
|
||||
shape: targetShape
|
||||
velocity: modelShapeDirection
|
||||
emitRate: 100
|
||||
lifeSpanVariation: 100
|
||||
lifeSpan: 4000
|
||||
particle: modelShapeParticle
|
||||
particleRotationVelocityVariation.x: 200
|
||||
particleRotationVariation.z: 180
|
||||
particleRotationVelocityVariation.y: 200
|
||||
|
||||
SpriteParticle3D {
|
||||
id: modelShapeParticle
|
||||
color: "#ffffff"
|
||||
fadeInDuration: 1500
|
||||
fadeOutDuration: 1500
|
||||
particleScale: 2
|
||||
maxAmount: 2000
|
||||
|
||||
VectorDirection3D {
|
||||
id: modelShapeDirection
|
||||
directionVariation.z: 2
|
||||
direction.y: 2
|
||||
directionVariation.x: 2
|
||||
direction.z: 0
|
||||
directionVariation.y: 2
|
||||
}
|
||||
}
|
||||
particleRotationVelocityVariation.z: 200
|
||||
particleEndScale: 1.5
|
||||
particleRotationVariation.y: 180
|
||||
particleRotationVariation.x: 180
|
||||
}
|
||||
ParticleModelShape3D {
|
||||
id: targetShape
|
||||
fill: false
|
||||
delegate: Model {
|
||||
source: "#Cube"
|
||||
}
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: particleTrailSystem
|
||||
TrailEmitter3D {
|
||||
id: trailEmitter
|
||||
follow: spriteParticle
|
||||
emitRate: 10
|
||||
particle: trailParticle
|
||||
velocity: trailDirection
|
||||
particleScale: 1
|
||||
VectorDirection3D {
|
||||
id: trailDirection
|
||||
direction.y: -1
|
||||
directionVariation.z: 10
|
||||
directionVariation.y: 10
|
||||
directionVariation.x: 10
|
||||
}
|
||||
SpriteParticle3D {
|
||||
id: trailParticle
|
||||
}
|
||||
}
|
||||
|
||||
ParticleEmitter3D {
|
||||
id: spriteEmitter
|
||||
velocity: spriteDirection
|
||||
particle: spriteParticle
|
||||
lifeSpan: 2000
|
||||
particleScale: 2
|
||||
VectorDirection3D {
|
||||
id: spriteDirection
|
||||
directionVariation.z: 10
|
||||
directionVariation.y: 10
|
||||
directionVariation.x: 10
|
||||
}
|
||||
SpriteParticle3D {
|
||||
id: spriteParticle
|
||||
maxAmount: 1000
|
||||
}
|
||||
emitRate: 2
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: spriteSystem
|
||||
ParticleEmitter3D {
|
||||
id: spriteEmitter
|
||||
velocity: spriteDirection
|
||||
particle: spriteParticle
|
||||
lifeSpan: 2000
|
||||
emitRate: 200
|
||||
SpriteParticle3D {
|
||||
id: spriteParticle
|
||||
maxAmount: 1000
|
||||
}
|
||||
|
||||
VectorDirection3D {
|
||||
id: spriteDirection
|
||||
directionVariation.z: 10
|
||||
directionVariation.y: 10
|
||||
directionVariation.x: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
SpriteParticle3D {
|
||||
id: spriteParticle
|
||||
color: "#ffffff"
|
||||
particleScale: 5.0
|
||||
maxAmount: 100
|
||||
}
|
||||
ParticleEmitter3D {
|
||||
id: particleEmitter
|
||||
particle: spriteParticle
|
||||
particleScale: 1.0
|
||||
particleEndScale: 1.5
|
||||
particleRotationVariation.x: 180
|
||||
particleRotationVariation.y: 180
|
||||
particleRotationVariation.z: 180
|
||||
particleRotationVelocityVariation.x: 200
|
||||
particleRotationVelocityVariation.y: 200
|
||||
particleRotationVelocityVariation.z: 200
|
||||
VectorDirection3D {
|
||||
id: dir3d
|
||||
direction.z: -100
|
||||
directionVariation.x: 10
|
||||
directionVariation.y: 10
|
||||
}
|
||||
velocity: dir3d
|
||||
emitRate: 10
|
||||
lifeSpan: 1000
|
||||
lifeSpanVariation: 100
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
import QtQuick3D.Particles3D
|
||||
|
||||
ParticleSystem3D {
|
||||
id: wanderSystem
|
||||
ParticleEmitter3D {
|
||||
id: wanderSpriteEmitter
|
||||
particle: wanderSpriteParticle
|
||||
position: wanderTarget.position
|
||||
emitRate: 100
|
||||
particleScale: 20
|
||||
particleScaleVariation: 5
|
||||
particleEndScale: 30
|
||||
particleEndScaleVariation: 10
|
||||
lifeSpanVariation: 1000
|
||||
|
||||
SpriteParticle3D {
|
||||
id: wanderSpriteParticle
|
||||
sprite: spriteTexture
|
||||
particleScale: 0.2
|
||||
maxAmount: 600
|
||||
billboard: true
|
||||
fadeInEffect: Particle3D.FadeScale
|
||||
fadeInDuration: 100
|
||||
fadeOutEffect: Particle3D.FadeOpacity
|
||||
fadeOutDuration: 1500
|
||||
Texture {
|
||||
id: spriteTexture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Wander3D {
|
||||
uniquePace.z: 0.1
|
||||
uniquePace.y: 0.1
|
||||
uniquePace.x: 0.1
|
||||
uniqueAmount.z: 40
|
||||
uniqueAmount.y: 40
|
||||
uniqueAmount.x: 40
|
||||
uniqueAmountVariation: 1
|
||||
uniquePaceVariation: 1
|
||||
fadeInDuration: 3000
|
||||
}
|
||||
|
||||
Node {
|
||||
id: wanderTarget
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user