How do I make my rain effect look more like rain and less like snowfall?

Posted by Nikhil Lamba on Game Development See other posts from Game Development or by Nikhil Lamba
Published on 2012-06-16T06:37:02Z Indexed on 2012/06/16 15:23 UTC
Read the original article Hit count: 357

Filed under:
|
|

I am making a game in that game I want a rain effect. I am little bit far from this right now. I am creating the rain effect like below:

particleSystem.addParticleInitializer(new ColorInitializer(1, 1, 1));
particleSystem.addParticleInitializer(new AlphaInitializer(0));
particleSystem.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
particleSystem.addParticleInitializer(new VelocityInitializer(2, 2, 20, 10));
particleSystem.addParticleInitializer(new RotationInitializer(0.0f, 30.0f));

particleSystem.addParticleModifier(new ScaleModifier(1.0f, 2.0f, 0, 150));
particleSystem.addParticleModifier(new ColorModifier(1, 1, 1, 1f, 1, 1, 1, 3));
particleSystem.addParticleModifier(new ColorModifier(1, 1, 1f, 1, 1, 1, 1, 6));
particleSystem.addParticleModifier(new AlphaModifier(0, 1, 0, 3));
particleSystem.addParticleModifier(new AlphaModifier(1, 0, 1, 125));
particleSystem.addParticleModifier(new ExpireModifier(50, 50));

scene.attachChild(particleSystem);

But it looks like snowfall! What changes can I do for it to look more like rain?

EDIT Here is a screenshot:

enter image description here

© Game Development or respective owner

Related posts about android

Related posts about box2d