Color Black in Particle?

Does anyone has am example of falling stars crossing the screen fom left to right? Im trying to learn particles, but they dont apear in my scene, idk what im doing.

But they are not showing in black color on screen. I wish i had nice black particles, as looking like a falling star. But they dont show to get black.

Thats the particle i`m using:

        this.particleSystem.particleTexture = new Texture("./../res/particle.png", this.scene);
        this.particleSystem.textureMask = new Color4(0, 0, 0, 1.0);

        this.particleSystem.emitter = new Vector3(-70, 10, 0) // the starting object, the emitter
        this.particleSystem.minEmitBox = new Vector3(-200, 5, -20); // Starting all from
        this.particleSystem.maxEmitBox = new Vector3(200, 100, 100); // To...

        this.particleSystem.direction1 = new Vector3(-70, 8, 3);
        this.particleSystem.direction2 = new Vector3(70, 8, -3);

        this.particleSystem.minLifeTime = 3;
        this.particleSystem.maxLifeTime = 4;

        this.particleSystem.minSize = .3;
        this.particleSystem.maxSize = .8;

        this.particleSystem.color1 = new Color4(0.1, 0.1, 0.1, 1.0);
        this.particleSystem.color2 = new Color4(0.2, 0.2, 0.2, 1.0);
        this.particleSystem.colorDead = new Color4(0, 0, 0.0, 0.1);

        this.particleSystem.gravity = new Vector3(0, -9.81, 0);

        this.particleSystem.minEmitPower = 2;
        this.particleSystem.maxEmitPower = 4;
        this.particleSystem.updateSpeed = 0.005;


WOuld you be kind to repro in the Playground?

Then run:;

It will give you an UI to edit your particle system

Thanks… the particles are working, but they have an alpha, i would like them to be all opaque… but they show like in alpha mode. And i couldn’t make opaque in debbuger. :frowning:

Is there a way to let thoses particles opaque?

Nope but may I ask why you would like them to be opaque ???

In my mind, it would look like a screen full of quads.

I would like opaque because my sky is almost white, but a little gray… so a opaque black particle would be nice, i would have see it cleary…

As this particles a with alpha, i almost cant see it on my screen, because it is almost full white.

Why not using the standard blend mode for that ?

system.blendMode = BABYLON.BaseParticleSystem.BLENDMODE_STANDARD

1 Like

Thanks, but, How do i supose to use this code?

Setting this on the particleSystem you created

1 Like

thanks… that solved!!!