Game Development Community

Mount & Node for Torch Flame ?

by Richard: · in Artist Corner · 02/27/2006 (9:57 am) · 1 replies

Hi everyone,

I have a need to build a torch; nothing fancy, just the typical flaming cone you sometimes see in old medieval flicks. Building and texturing it is the easy part.

What I need to discover is .. can I add a flame or fire effect using the torque particle system, or would it be simpler to animate via a cyclic flame animation (with alpha)?

If the particle system is the way to go, how does one assign hooks or Mounts so the flame effect moves with the torch?

Any help appreciated.

About the author

I play bluegrass mandolin & was twice scouted by the Mets. During the cool season, from my garage, I reverse-engineer UFO propulsion systems.


#1
02/27/2006 (10:44 am)
One way to mount a particle datablock is to create a ShapeBaseImageData datablock

datablock ShapeBaseImageData(someName){
shapeFile = "~/data/shapes/markers/empty.dts";
mountPoint = 0;
className = "ParticleEmitterImage";
stateName[0] = "Activate";
stateEmitter[0] = "yourEmitter";
stateEmitterTime[0]= 1500.0;
stateTimeoutValue[0]= 1500.6;
offset = "0 0 0";
};

And then use mountImage to attach it to your torch:

yourTorch.mountImage(someName, 0); // will attach to mount point 0