Lightning Particle Emitters
by Brown College (#0073) · in Torque Game Builder · 10/13/2008 (10:08 pm) · 1 replies
I'm looking for a good way on how to make lightning as a particle emitter. I'm not for sure how I can but I'm looking for a way on how to make it.
This is my code so far I'm not doing so well so far if anyone can give me some advice on what I can do to make it look more like lightning I would appreciate the gesture.
datablock ParticleData(lightning_pd)
{
textureName = "~/data/shapes/particles/lightning.png";
lifetimeMS = 500;
lifetimeVarienceMS = 60;
//gravityCoefficient = 1.0;
windCoefficient = 0.0;
sizes[0] = 0.1;
sizes[1] = 2.1;
sizes[2] = 1.0;
times[0] = 0.0;
times[1] = 0.5;
times[2] = 0.75;
};
datablock ParticleEmitterData(lightning_ped)
{
particles = "lightning_pd";
thetaMin = 0;
thetaMax = 0;
phiReferenceVel = 0;
phiVariance = 30;
ejectionVelocity = 1;
};
datablock ParticleEmitterNodeData(example_pend)
{
timeMultiple = 1.0;
};
This is my code so far I'm not doing so well so far if anyone can give me some advice on what I can do to make it look more like lightning I would appreciate the gesture.
datablock ParticleData(lightning_pd)
{
textureName = "~/data/shapes/particles/lightning.png";
lifetimeMS = 500;
lifetimeVarienceMS = 60;
//gravityCoefficient = 1.0;
windCoefficient = 0.0;
sizes[0] = 0.1;
sizes[1] = 2.1;
sizes[2] = 1.0;
times[0] = 0.0;
times[1] = 0.5;
times[2] = 0.75;
};
datablock ParticleEmitterData(lightning_ped)
{
particles = "lightning_pd";
thetaMin = 0;
thetaMax = 0;
phiReferenceVel = 0;
phiVariance = 30;
ejectionVelocity = 1;
};
datablock ParticleEmitterNodeData(example_pend)
{
timeMultiple = 1.0;
};
Torque Owner Tom Lenz