Page 1 of 1

Multiple particle effects on a single monster?

Posted: Sat Nov 03, 2012 1:56 am
by Kasarul
Hello!

I am trying to add multiple particle effects and lights to a single monster and I'm not having much luck.
I have tried adding multiple lines of effects but the game just recognizes the first effect and ignores the others even if they are placed at different points on the model.

For example:

particleSystem = "fire_head",
particleSystemNode = "head",
particleSystem = "fire_head",
particleSystemNode = "ball",
particleSystem = "fire_head",
particleSystemNode = "l_ball",

will only play the 'fire_head' effect on the head node.

Thanks in advance! :)

Re: Multiple particle effects on a single monster?

Posted: Sat Nov 03, 2012 2:00 am
by Neikun
This is a question that has been floating around the forums for awhile now.
As far as we can tell, we can only have one.
However, I'm fairly certain you can redefine the size of a particle system.
-It feels like it's been forever since I made my water slime with custom particle effect.
SpoilerShow
Image

Re: Multiple particle effects on a single monster?

Posted: Sat Nov 03, 2012 2:09 am
by Kasarul
I was afraid of that.
Thanks for the info!

Re: Multiple particle effects on a single monster?

Posted: Sat Nov 03, 2012 2:21 am
by HaunterV
yeah i asked earlier this month and through trial and error it seems only one is all you can have atm... thoguh the secret to the uggardian flames might be the key we seek.

Re: Multiple particle effects on a single monster?

Posted: Wed Nov 07, 2012 6:15 am
by Neikun
I think I've got it.
You define a new particle system with more than one particle in it.
Lets say you wanted a creature with two firey hands, you would make two identical emitters with the only change being the boxMin and boxMax

It's bed time for me now, so I'll likely test this tomorrow.

Re: Multiple particle effects on a single monster?

Posted: Wed Nov 07, 2012 2:57 pm
by Neikun
It takes a loooot of tweaking to get things to look right.
One draw back to this method is that it will be specfic to each model.
Another is the animation will only move with the node you put it on.
For example, using the capsule as a node for the ogre and doing two flaming hands will most likely look bad when the ogre smashes you with his hammer. (just a prediction)

EDIT: The problem presented itself in the right hand, too.
SpoilerShow
Image
(his hand is supposed to be flaming)

Re: Multiple particle effects on a single monster?

Posted: Wed Nov 07, 2012 8:22 pm
by HaunterV
Neikun wrote:It takes a loooot of tweaking to get things to look right.
One draw back to this method is that it will be specfic to each model.
Another is the animation will only move with the node you put it on.
For example, using the capsule as a node for the ogre and doing two flaming hands will most likely look bad when the ogre smashes you with his hammer. (just a prediction)

EDIT: The problem presented itself in the right hand, too.
SpoilerShow
Image
(his hand is supposed to be flaming)

What the hell am i seeing?

is he being attacked by an electricity spell? or did you get shock and flame effects on him at once? if so, step in the right direction.

Re: Multiple particle effects on a single monster?

Posted: Wed Nov 07, 2012 8:29 pm
by Neikun
HaunterV wrote:
Neikun wrote:It takes a loooot of tweaking to get things to look right.
One draw back to this method is that it will be specfic to each model.
Another is the animation will only move with the node you put it on.
For example, using the capsule as a node for the ogre and doing two flaming hands will most likely look bad when the ogre smashes you with his hammer. (just a prediction)

EDIT: The problem presented itself in the right hand, too.
SpoilerShow
Image
(his hand is supposed to be flaming)

What the hell am i seeing?

is he being attacked by an electricity spell? or did you get shock and flame effects on him at once? if so, step in the right direction.
He's swinging the hammer at you.
In this particle effect, he has an electric aura all about him. I positioned the flame particle on his hand, but since it's still attached to the node "capsule" it didn't move with the hand.

Re: Multiple particle effects on a single monster?

Posted: Wed Nov 07, 2012 10:16 pm
by HaunterV
Neikun wrote:
HaunterV wrote:
Neikun wrote:It takes a loooot of tweaking to get things to look right.
One draw back to this method is that it will be specfic to each model.
Another is the animation will only move with the node you put it on.
For example, using the capsule as a node for the ogre and doing two flaming hands will most likely look bad when the ogre smashes you with his hammer. (just a prediction)

EDIT: The problem presented itself in the right hand, too.
SpoilerShow
Image
(his hand is supposed to be flaming)

What the hell am i seeing?

is he being attacked by an electricity spell? or did you get shock and flame effects on him at once? if so, step in the right direction.
He's swinging the hammer at you.
In this particle effect, he has an electric aura all about him. I positioned the flame particle on his hand, but since it's still attached to the node "capsule" it didn't move with the hand.

Well in any case it's a start.

Re: Multiple particle effects on a single monster?

Posted: Thu Nov 08, 2012 1:44 am
by Neikun
HaunterV wrote:

Well in any case it's a start.
Every particle effect can hold multiple graphics.
Here is my arcane ogre's particle effect:
It has lightning, smoke and teleporter stars.

Code: Select all

defineParticleSystem{
	name = "lightning_bolt_hit_loop",
	emitters = {
		-- sparks
		{
			emissionRate = 60,
			emissionTime = 0,
			maxParticles = 50,
			boxMin = {-1.0, -1.0,-1.0},
			boxMax = { 1.0, 1.0, 1.0},
			sprayAngle = {0,360},
			velocity = {0,0},
			objectSpace = false,
			texture = "assets/textures/particles/lightning01.tga",
			frameRate = 4,
			frameSize = 256,
			frameCount = 4,
			lifetime = {0.2,0.4},
			color0 = {2.5,2.5,2.5},
			opacity = 1,
			fadeIn = 0.1,
			fadeOut = 0.3,
			size = {0.1, 1.5},
			gravity = {0,0,0},
			airResistance = 1,
			rotationSpeed = 0,
			blendMode = "Additive",
		},

		-- fog
		{	
			emissionRate = 1,
			emissionTime = 0,
			spawnBurst = false,
			maxParticles = 10,
			boxMin = {-1.0, -0.8,-1.5},
			boxMax = { 1.0, 0.5, 1.3},
			sprayAngle = {90,270},
			velocity = {0,0},
			objectSpace = false,
			texture = "assets/textures/particles/smoke_01.tga",
			lifetime = {2,3},
			color0 = {0.25, 0.5, 1},
			opacity = 0.7,
			fadeIn = 1,
			fadeOut = 3,
			size = {2, 2.2},
			gravity = {0,0,0},
			airResistance = 1,
			rotationSpeed = 2,
			blendMode = "Additive",
		},

		-- small stars
		{
			emissionRate = 300,
			emissionTime = 0,
			maxParticles = 1000,
			boxMin = {-1.0,-1.5,-1.0},
			boxMax = { 1.0, 1.0, 1.0},
			sprayAngle = {0,360},
			velocity = {0.5,1.0},
			objectSpace = false,
			texture = "assets/textures/particles/teleporter.tga",
			lifetime = {1,1},
			color0 = {1.6,1.8,1.8},
			opacity = 1,
			fadeIn = 0.1,
			fadeOut = 0.1,
			size = {0.05, 0.1},
			gravity = {0,-0.2,0},
			airResistance = 0.1,
			rotationSpeed = 2,
			blendMode = "Additive",
		}

	}
}