A few questions .
by Ian Roach · in Torque Game Engine · 07/10/2002 (6:49 pm) · 1 replies
Hi everyone. I currently have a few questions i would like answered :)
1) How are special effects done/made in the engine. Is it better to do an effect in an animation and trigger it or is there some other way ? For example things like explosions, or little electrival shields around a player e.t.c
2) Currently i have a weapon model exported in game but the problem is in first person view i cant see the weapon model at all. In Third person view its fine. I believe this has soemthing to do with mountpoints right ? If so how do you fix em ?
1) How are special effects done/made in the engine. Is it better to do an effect in an animation and trigger it or is there some other way ? For example things like explosions, or little electrival shields around a player e.t.c
2) Currently i have a weapon model exported in game but the problem is in first person view i cant see the weapon model at all. In Third person view its fine. I believe this has soemthing to do with mountpoints right ? If so how do you fix em ?
About the author
Associate Anthony Rosenbaum
here is an example snipet from the rifle.cs so you know what to look for
// Projectile trail emitter datablock ParticleData(RifleSmokeParticle) { textureName = "~/data/shapes/rifle/smokeParticle"; dragCoeffiecient = 0.0; gravityCoefficient = -0.2; // rises inheritedVelFactor = 0.00; lifetimeMS = 300; // time in ms lifetimeVarianceMS = 150; // ...more or less useInvAlpha = false; spinRandomMin = -30.0; spinRandomMax = 30.0; colors[0] = "0 0.2 1 1.0"; colors[1] = "0 0.2 1 1.0"; colors[2] = "0 0 0 0"; sizes[0] = 0.25; sizes[1] = 0.4; sizes[2] = 0.6; times[0] = 0.0; times[1] = 0.3; times[2] = 1.0; }; datablock ParticleEmitterData(RifleSmokeEmitter) { ejectionPeriodMS = 10; periodVarianceMS = 5; ejectionVelocity = 0.25; velocityVariance = 0.10; thetaMin = 0.0; thetaMax = 90.0; particles = RifleSmokeParticle; };2)to fix change the offset in theShapeBaseImageData dataBlock look for the variable