SpriteParticle3D QML Type
Particle using a 2D sprite texture. More...
Import Statement: | import QtQuick3D.Particles3D |
Since: | Qt 6.2 |
Inherits: | |
Inherited By: |
Properties
- BlendMode : enumeration
- billboard : bool
- blendMode : BlendMode
- castsReflections : bool
- colorTable : Texture
- lights : list<Light>
- offsetX : float
- offsetY : float
- particleScale : real
- sprite : Texture
- spriteSequence : SpriteSequence3D
Detailed Description
The SpriteParticle3D is a logical particle element that creates particles from a 2D sprite texture.
Property Documentation
BlendMode : enumeration |
Defines the blending mode for the particles.
Constant | Description |
---|---|
SpriteParticle3D.SourceOver | Blend particles with SourceOver mode. |
SpriteParticle3D.Screen | Blend particles with Screen mode. |
SpriteParticle3D.Multiply | Blend particles with Multiply mode. |
billboard : bool |
This property defines if the particle texture should always be aligned face towards the screen.
Note: When set to true
, Particle3D alignMode property does not have an effect.
The default value is false
.
blendMode : BlendMode |
This property defines the blending mode used for rendering the particles.
The default value is SpriteParticle3D.SourceOver
.
[since 6.4] castsReflections : bool |
When this property is set to true
, the sprite is rendered by reflection probes and can be seen in the reflections.
This property was introduced in Qt 6.4.
colorTable : Texture |
This property defines the Texture used for coloring the particles. The image can be a 1D or a 2D texture. Horizontal pixels determine the particle color over its lifeSpan. For example, when the particle is halfway through its life, it will have the color specified halfway across the image. If the image is 2D, vertical row is randomly selected for each particle. For example, a c {256 x 4} image contains 4
different coloring options for particles.
This property contains a list of lights used for rendering the particles.
Note: For optimal performance, define lights only if they are needed and keep the amount of lights at minimum.
This property was introduced in Qt 6.3.
[since 6.3] offsetX : float |
This property defines the particles offset in the X axis
This property was introduced in Qt 6.3.
[since 6.3] offsetY : float |
This property defines the particles offset in the Y axis
This property was introduced in Qt 6.3.
particleScale : real |
This property defines the scale multiplier of the particles. To adjust the particles sizes in the emitter, use ParticleEmitter3D particleScale, particleEndScale, and particleScaleVariation properties.
The default value is 5.0
.
sprite : Texture |
This property defines the Texture used for the particles.
For example, to use "snowFlake.png" as the particles texture:
SpriteParticle3D { id: snowParticle ... sprite: Texture { source: "images/snowflake.png" } }
spriteSequence : SpriteSequence3D |
This property defines the sprite sequence properties for the particle. If the sprite texture contains a frame sequence, set this property to define the frame count, animation direction etc. features.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.