Game Development Community

Dynamic particle density

by Ian Omroth Hardingham · in Torque Game Engine · 08/16/2005 (12:52 pm) · 1 replies

Hey everyone.

Did a quick search for particle density but nothing turned up, so here goes.

I'm looking to put in a particle density slider into my options dialog, just like the Tribes 2 one. I've used Mango's advanced options dialog resource, which seems to have every tribes 2 detail setting apart from the particle density one. My main questions are:

1. Does anyone know if the code to "dynamically" alter particle density is still lying around in Torque?
2. If not, anyone have any advice on how to implement it? I suppose you could loop through the ParticleEmitterDatas on the client and reduce the frequency and lifespan, but that doesn't sound ideal. Maybe in the particle emitting code itself reduce the emitting rate if the density is set low... I'm not sure, any comments?

Any advice or opinions much appreciated.

Ian Hardingham
Mode 7 Games

#1
08/16/2005 (1:02 pm)
I've just found this resource which looks like a pretty fine way of doing it.

Ian