Sign in to follow this  
vicer1234

Particle Effect

Recommended Posts

vicer1234    115
Hi,
I am trying to implement a particle engine. The structure layout has ParticleManager->ParticleSystem->Particle

I am able to get the entity ie the particle to be displayed. What i want to do is to have different effects just by calling different ParticleSystem like Smoke, Spark, Bubble, Snow etc by calling the
functions like
[code]
Smoke(number of particles, position, "image file",...); [/code]

The problem i am facing is...how to get the calculation for these effects.
Like if the particle has properties like....

position
velocity
energy
gravity
windspeed etc

Then how to manipulate these properties...is there any particular calculation for each of these effect like Smoke how much velocity,energy etc needs to be changed and how to be changed..etc
Similarly for other effects.

All suggestions are welcome...

Share this post


Link to post
Share on other sites
SmellyIrishMan    198
[quote name='vicer1234' timestamp='1307397702' post='4820270']
how to give particle a blast effect 2d.

eg: 10 particles and what sort of velocity should i give to make it appear as blast???
[/quote]

You need to analyse the effect that you're looking to accomplish and see what type of velocity/positioning etc... that it displays.

So taking your example of a blast... well, normally a blast comes from a very specific point, so the initial position of the particles will be very close to one another and to the source of the blast. Then lets look at the velocity, unless the blast is from something very specific then an explosion typically has not specific direction and instead just spread out in all directions, so you should distribute your particles velocity over a unit circle.

Have a look at this for example; [url="http://www.youtube.com/watch?v=_up622Gtsmk"]blast effect[/url]

With particles (and most simulation) you need to study your target, figure out its general properties and then try to match these.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this