#Login Register
Particle Effects
  • 0 Vote(s) - 0 Average


07-07-2014, 04:26 PM #1
Odoacer AC Operations Team
*
Status: Offline Posts:154 Threads:16 Joined:Apr 2014
Particles are tiny, usually partially-transparent images that each have independent movement and lifespan. When enough of them are spawned and drawn on top of each other they can create an interesting visual effect.

Particles are spawned by Particle Emitters. The settings for a particle emitter dictates the characteristics of the particles that are spawned from it. These characteristics include what color the particle is, how large it is, how long it lives, how fast it moves and in what direction, among many others.

I've put in place particle emitters for:

- ship smoke
- ship explosion
- grenade explosion
- grenade trail
- missile explosion
- missile trail
- shrapnel
- flag ring
- health bonus

Settings for each of these emitters can be found in XML files in your .spark_cache/particles folder and can be changed as you wish. There is a video here: https://www.youtube.com/watch?v=Re5XJiWy4eQ that is very helpful in explaining all the settings in the XML file. The default settings are ones that I spent very little time tweaking, so I'm hoping some of you will do the work of improving them. If improved effects are discovered, I will put them in the game as the defaults.

Some of the effects -- ship explosion, grenade trail, and missile trail -- have two emitters (and two emitter config files). The first emitter's particles are drawn, and then the second emitter's particles are drawn on top. This was done to allow more complex effects. You may disable any emitter by setting its spawnCount to 0 if it is not needed. The last effect, health bonus, is disabled in its settings file since it isn't an effect that existed in the game already.

There are two files -- testemitter1.xml and testemitter2.xml -- which can be used to test new effects. To use them, type "/toggle testemitter" in game and left click where you want the particle emitter to go. The files are re-read every time you click, so you may change them while in the game. Note that there is a particle count displayed when using the testemitter. Keep in mind that very high particle counts, while they can produce very nice effects, can also reduce your FPS.






Forum Jump:


Messages In This Thread
Particle Effects - Odoacer - 07-07-2014, 04:26 PM
RE: Particle Effects - benevolence - 07-07-2014, 06:43 PM
RE: Particle Effects - LineOf7s - 07-08-2014, 08:58 AM
RE: Particle Effects - oTaCon - 07-11-2014, 05:16 AM
RE: Particle Effects - oTaCon - 07-13-2014, 06:10 PM
RE: Particle Effects - InSoMnIaC - 07-20-2014, 04:54 PM
RE: Particle Effects - Odoacer - 07-21-2014, 09:00 PM

Users browsing this thread:
1 Guest(s)