LineParticle3D QML Type

Line particle. More...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.4
Inherits:

SpriteParticle3D

Properties

Detailed Description

The LineParticle3D creates line shaped sprite particles.

The line is created from the path of the particle when it moves. The length of the line is specified either by the length parameter or the segment count and minimum delta between points. In latter case the length of the line may vary if the particles speed varies.

Property Documentation

TexcoordMode : enumeration

Defines the texture coordinate mode of line particle.

ConstantDescription
LineParticle3D.AbsoluteTexture coordinates are specified relative to the world position.
LineParticle3D.RelativeTexture coordinates are specified relative to line first line point.
LineParticle3D.FillTexture coordinates are specified such that the texture fills the whole line.

alphaFade : real

This property holds the alpha fade factor of the line. The alphaFade value range is [0, 1]. When the value is greater than 0.0, causes the line to fade the further the segment is from the first particle segment. The alpha for a segment is calculated like this: segmentAlpha(s) = (1.0 - alphaFade) ^ s, where s is the segment index. The default value is 0.0.


eolFadeOutDuration : int

This property holds the end-of-life fade-out duration of the line. If set, each line remains in the place it was when the particle reached end of its lifetime, then fades out during this time period. The default value is 0.


length : real

This property holds the length of the line. If the value is set, the lines length is limited to the value. In this case the minimum delta of the line is the length divided by the segment count. If the value is not set, the line length varies based on the speed the particle moves as well as segment count and minimum delta. The default value is -1.0.


lengthDeltaMin : real

This property holds the minimum length between segment points. This parameter is ignored if the length parameter is set. The default value is 10.0.


lengthVariation : real

This property holds the length variation applied to each line. Variation is applied only if the length property is also set. The resulting line length clamps to positive values.

The default value is 0.0.


scaleMultiplier : real

This property holds the scale multiplier of the line. The scaleMultiplier value range is [0, 2]. The scaleMultiplier modifies the line size for the line segments. If the value is less than 1.0, the line gets smaller the further a segment is from the first segment and if the value is greater than 1.0 the line gets bigger. The size for a segment is calculated like this: size(s) = scaleMultiplier ^ s, where s is the segment index.


segmentCount : int

This property holds the number of segments in the line. The line is drawn using segment + 1 points, where the additional one comes from the particles current position. The default value is 1.


texcoordMode : TexcoordMode

This property holds the texture coordinate mode of the line.


texcoordMultiplier : real

This property holds the texture coordinate multiplier of the line. This value is factored to the texture coordinate values of the line. The default value is 1.0.


© 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.