Game Development Community

dev|Pro Game Development Curriculum

Atomic Particle

by Minesh · 08/09/2009 (7:54 am) · 5 comments

BOOM the Atomic Particle i made
And it took a while but its done.

//effects
datablock ParticleData(AtomRadParticle)
{
	dragCoefficient		= 5.0;
	windCoefficient		= 0.0;
	gravityCoefficient	= 0.0;
	inheritedVelFactor	= 0.0;
	constantAcceleration	= 10.0;
	lifetimeMS		= 1000;
	lifetimeVarianceMS	= 0;
	spinSpeed		= 10.0;
	spinRandomMin		= -50.0;
	spinRandomMax		= 50.0;
	useInvAlpha		= true;
	animateTexture		= false;
	//framesPerSec		= 1;

	textureName		= "~/data/particles/cloud";
	//animTexName		= "";

	// Interpolation variables
	colors[0]     = "1 0 0 1";
	colors[1]     = "1 0.5 0 1";
	colors[2]     = "1 0.5 0 1";
	colors[3]     = "1 0 0 0";
	sizes[0]      = 1;
	sizes[1]      = 0.9;
	sizes[2]      = 0.8;
	sizes[3]      = 1.5;
	times[0]      = 0;
	times[1]      = 1;
	times[2]      = 1;
	times[3]      = 2;
};
datablock ParticleEmitterData(AtomRadEmitter)
{
   ejectionPeriodMS = 1.2;
   periodVarianceMS = 0;
   ejectionVelocity = 50;
   velocityVariance = 100;
   ejectionOffset   = 50.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 180;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "AtomRadParticle";

};
datablock ParticleData(AtomRad2Particle)
{
	dragCoefficient		= 5.0;
	windCoefficient		= 0.0;
	gravityCoefficient	= 0.0;
	inheritedVelFactor	= 0.0;
	constantAcceleration	= 10.0;
	lifetimeMS		= 1000;
	lifetimeVarianceMS	= 0;
	spinSpeed		= 10.0;
	spinRandomMin		= -50.0;
	spinRandomMax		= 50.0;
	useInvAlpha		= true;
	animateTexture		= false;
	//framesPerSec		= 1;

	textureName		= "~/data/particles/cloud";
	//animTexName		= "";

	// Interpolation variables
	colors[0]     = "1 0 0 1";
	colors[1]     = "1 0.1 0 1";
	colors[2]     = "1 0.5 0 1";
	colors[3]     = "1 0 0 0";
	sizes[0]      = 1;
	sizes[1]      = 0.9;
	sizes[2]      = 0.8;
	sizes[3]      = 1.5;
	times[0]      = 0;
	times[1]      = 0;
	times[2]      = 1;
	times[3]      = 2;
};
datablock ParticleEmitterData(AtomRad2Emitter)
{
   ejectionPeriodMS = 1.2;
   periodVarianceMS = 0;
   ejectionVelocity = 50;
   velocityVariance = 100;
   ejectionOffset   = 50.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 180;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "AtomRad2Particle";

};
datablock ParticleData(AtomGroParticle)
{
	dragCoefficient		= 5.0;
	windCoefficient		= 0.0;
	gravityCoefficient	= 0.0;
	inheritedVelFactor	= 0.0;
	constantAcceleration	= 10.0;
	lifetimeMS		= 1000;
	lifetimeVarianceMS	= 0;
	spinSpeed		= 10.0;
	spinRandomMin		= -50.0;
	spinRandomMax		= 50.0;
	useInvAlpha		= true;
	animateTexture		= false;
	//framesPerSec		= 1;

	textureName		= "~/data/particles/cloud";
	//animTexName		= "";

	// Interpolation variables
	colors[0]     = "1 0 1 0";
	colors[1]     = "1 0 0 1";
	colors[2]     = "1 0 0 1";
	colors[3]     = "1 0 1 0";
	sizes[0]      = 1;
	sizes[1]      = 0.9;
	sizes[2]      = 0.8;
	sizes[3]      = 1.5;
	times[0]      = 0.0;
	times[1]      = 0.1;
	times[2]      = 0.9;
	times[3]      = 1.0;
};

datablock ParticleEmitterData(AtomGroEmitter)
{
   ejectionPeriodMS = 10;
   periodVarianceMS = 10;
   ejectionVelocity = 0.0;
   velocityVariance = -50;
   ejectionOffset   = 20.0;
   thetaMin         = 90;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;

   particles = AtomGroparticle;
};

datablock ExplosionData(spearExplosion)
{
   //explosionShape = "";
   lifeTimeMS = 1000;

   soundProfile = spearExplosionSound;

   emitter[0] = AtomGroEmitter;
   emitter[1] = AtomradEmitter;
   emitter[2] = Atomrad2Emitter;

About the author

Recent Blogs

• Near decect Hurricane emitter

#1
08/11/2009 (6:23 am)
Woah dude you need to update to retail blockland.
Not really an atomic bomb either.
#2
08/12/2009 (3:33 am)
well its meant to be a emmitter
#3
08/12/2009 (2:29 pm)
It looks good enough for what it was meant for. :-)
Good job Minesh and thanks for contributing it.
#4
08/12/2009 (3:12 pm)
and i bought milkshape: :D
#5
08/12/2009 (5:47 pm)
:/ you should have went and got the TrueSpace 3D for free. You might like it more then milkShape.