QML Particle GroupGoal artifacts



  • Hi all
    I have problem with my particles
    try to describe
    dragon cast "fire" (2 standard particles for flame and for smoke) to the ground and when flame hit the ground (GroupGoal on bottom of window with 2 TrailEmitters) it should burn and generate more smoke
    It's work fine, but first time when flame particles touch GroupGoal
    I see some trash on the screen looks like first hit was too hard for particle system
    maybe somebody know some solution for this issue??
    please check problem screenshot
    https://www.dropbox.com/s/z4010wa7k49f23o/Screenshot 2016-11-19 17.09.09.png?dl=0
    and the normal one
    https://www.dropbox.com/s/fdwlmd8ya6mud1g/Screenshot 2016-11-19 17.10.14.png?dl=0

    maybe something wrong with my code ??

    ParticleSystem {
            id: psMain
            anchors.fill: parent
            z: 50
        }
    
        ImageParticle {
            id: ipSmoke
            system: psMain
    
            groups: ["smoke"]
            source: "qrc:///particleresources/glowdot.png"
            color: "#FF000011"
            colorVariation: 0.1
            z: 50
        }
    
        ImageParticle {
            id: ipFlame
            system: psMain
    
            groups: ["flame"]
            source: "qrc:///particleresources/glowdot.png"
            color: "#11ff400f"
            colorVariation: 0.1
            z: 50
        }
    
        ImageParticle {
            id: ipGroundSmoke
            system: psMain
    
            groups: ["smoke_ground"]
            source: "qrc:///particleresources/glowdot.png"
            color: "#FF000011"
            colorVariation: 0.1
            z: 50
        }
    
        ImageParticle {
            id: ipGroundFlame
            system: psMain
    
            groups: ["flame_ground"]
            source: "qrc:///particleresources/glowdot.png"
            color: "#11ff400f"
            colorVariation: 0.1
            z: 50
        }
    
        AngleDirection {
            id: agFire
            angle: 40
            magnitude: 500
            angleVariation: 2
            magnitudeVariation: 5
        }
    
        GroupGoal {
            id: ggGround
            groups: ["flame", "smoke"]
            goalState: "burn_ground"
            system: psMain
            enabled: false
    
            height: 100
            width: parent.width / 2
            anchors.bottom: parent.bottom
            //anchors.left: parent.left
            anchors.right: parent.right
            jump: true
        }
    
        ParticleGroup {
            name: "burn_ground"
            duration: 500
            system: psMain        
    
            TrailEmitter {
                group: "flame_ground"
                //system: psMain
                enabled: true
                anchors.fill: parent
                lifeSpan: 300
                emitRatePerParticle: 10
                size: 20
                endSize: 10
                velocity: AngleDirection {
                    angle: 270
                    magnitude: 300
                    angleVariation: 180
                    magnitudeVariation: 50
                }
                //acceleration: PointDirection {y: 20}
            }
    
            TrailEmitter {
                group: "smoke_ground"
                //system: psMain
                enabled: true
                anchors.fill: parent
                lifeSpan: 1300
                emitRatePerParticle: 5
                size: 20
                endSize: 10
                velocity: AngleDirection {
                    angle: 270
                    magnitude: 50
                    angleVariation: 10
                    magnitudeVariation: 10
                }
                acceleration: PointDirection {y: -120}
            }
        }
    
        Emitter {
            id: eFire
            x: 0
            y: 0
            z: 50
    
            group: "flame"
            system: psMain
    
            width: 10
            height: 10
    
            enabled: false
            emitRate: 1500
            lifeSpan: 1000
            size: 15
            endSize: 15
            sizeVariation: 10
            acceleration: PointDirection { y: 80; x: 100 }
            velocity: agFire
        }
    
        TrailEmitter {
            id: eSmoke
            group: "smoke"
            follow: "flame"
            system: psMain
    
            emitRatePerParticle: 1
            lifeSpan: 1400
            lifeSpanVariation: 400
            size: 16
            endSize: 8
            sizeVariation: 8
            acceleration: PointDirection { y: -120;}
            velocity: agFire
        }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.