Jump to content
  • Advertisement
Sign in to follow this  
vicer1234

Particle Effect

This topic is 2596 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Smoke(number of particles, position, "image file",...);


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
Advertisement
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???

Share this post


Link to post
Share on other sites

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???


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; blast effect

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!