Particle simulations - rain / snow

Post your help queries and engine programming questions here

Particle simulations - rain / snow

Postby Killersan » Fri Sep 05, 2014 8:15 am

Hello guys,

Have anyone tried to make a snow / rain effects by using IgeParticleEmitter ?

I'm wondering would it be efficient or should I put IgeEntity instead and tween it ?

I would like to know Your opinion.
User avatar
Posts: 24
Joined: Sat Jun 21, 2014 1:45 pm

Re: Particle simulations - rain / snow

Postby robaldred » Tue Sep 16, 2014 2:42 pm

Hey the particles that the IgeParticleEmitter emits are essentially tweened IgeEntity objects.
It's would be possible to create a rain/snow effect.

There are lots of things to configure, checkout example 11.1-particles as a base.

I'd recommend mounting your particle emitter to your main scene, but translate it with the camera by overriding it's update method.
This way to you only need to to generate enough particles to cover the viewport, and it should help to create particles that feel a little more realistic especially when the camera is moving.

Adjust your translateVarianceX and translateVarianceY to generate particles randomly across the screen.
Code: Select all
new IgeParticleEmitter()

Depending on your target devices you may start to affect performance of your game the more particles you add.
You'll just have to experiment and find an optimal level.
I don't work for Irrelon. All comments are my own.
I would strongly encourage anyone building production projects with Isogenic to buy a premium licence, it costs very little and will help towards continued development of the engine. Irrelon have spent thousands of hours developing this wonderful platform with many features found in AAA game engine.
User avatar
Posts: 243
Joined: Wed Oct 23, 2013 8:09 pm
Location: Manchester, England

Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest