Game Development Community

ParticleEmitters not working?

by Ken Davis · in Torque Game Engine · 11/14/2004 (2:03 pm) · 5 replies

Hi again.
I have a hoverVehicle and I am trying to make the dust emitters and hoverbubble emitters work. In my vehicle datablock I have the following code.
dustEmitter = HoverEmitter;
triggerDustHeight = 0.0; // .0.5
dustHeight = 10.0; // 1.0
dustTrailEmitter = HoverEmitter;
dustTrailOffset = "0.0 -1.0 0.5";
triggerTrailHeight = 0.0; // 2.6
dustTrailFreqMod = 15.0;
and here is the code for the Emitters
datablock ParticleData(HoverParticle)
{
   textureName          = "~/data/particles/dustParticle.png";
   dragCoefficient      = 2.0;
   gravityCoefficient   = -0.1;
   inheritedVelFactor   = 0.1;
   constantAcceleration = 0.0;
   lifetimeMS           = 1000;
   lifetimeVarianceMS   = 0;
   colors[0]     = "0.46 0.36 0.26 1.0";
   colors[1]     = "0.46 0.46 0.36 0.0";
   sizes[0]      = 0.50;
   sizes[1]      = 1.0;
};

datablock ParticleEmitterData(HoverEmitter)
{
   ejectionPeriodMS = 10;
   periodVarianceMS = 0;
   ejectionVelocity = 1;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 5;
   thetaMax         = 20;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "HoverParticle";
};

There are no errors in the console log but the particles just don't show.
Any ideas?
Thanks,
Ken

#1
11/14/2004 (4:37 pm)
Not sure if it helps you any, but in the last month or so this had begun to pop up in my logs...

Could not register dust emitter for class: MediumMaleHumanArmor
Could not register dust emitter for class: MediumMaleHumanArmor
*** Initial Control Object



I've tried various emitters and settings and none of them change anything.

I haven't had tiime to figure out what happened though, or even if it's my fault or not. I suspect it's not because I never messed with any of that stuff before.
#2
11/14/2004 (9:56 pm)
Are the emitter definitions before the MHMArmor definition?
#3
11/16/2004 (5:53 am)
In my code they are. I was getting errors similar to Gonzo's until I moved the emitter datablocks to the top. All of my other emitters work (water, splash, explosion, damage). Maybe the dust is working and I just can't see it.
-Ken
#4
02/11/2005 (7:53 am)
I am trying to get my dust to work on a flying vehicle and I see it for a second then it is gone. I did notice however that you put your triggerdusthieght = 0.0;. That may be your problems because with a hove vehicle you are never at 0 altitude. you may want to replace this value with the value that you are hovering at or higher.

EDIT: found out what was wrong with my dust emitter only appearing for a second it was the settings in the datablock I had the lifetime set so it only emmited for that amount of time :).
#5
02/11/2005 (8:29 am)
If you have deleted all splash emitters and only use the dust you get
that error.
The splashemitter is a dust emitter :)