Page 1 of 1

A question on particle effects

Posted: 10 Sep 2009, 12:36
by Erik
How do colour maps work? (for example on muzzleflashes)
Havent yet found out how to work with it, for example how does one make darker parts visible? How to change the fully transparent colour (if possible)?

Re: A question on particle effects

Posted: 10 Sep 2009, 15:01
by KDR_11k
They're RGBA value sets, each set is one color it reaches during its lifetime.

Re: A question on particle effects

Posted: 10 Sep 2009, 15:31
by Master-Athmos
As KDR said: You always have groups of four numbers meaning Red, Green, Blue and Alpha (i.e. transparency). You just write those four number groups right one after another. So e.g.

Code: Select all

1 1 1 0.5 0 0 0 0.5
would result in a colormap that makes the particle white in the beginning and then makes it go black until the end of its lifetime while always being halfway transparent (it's a fluent transition). Each group of the four numbers you add get distributed equally on the particle's lifespan. So if you put in three of the four number groups the first quad of numbers will be about how the particle looks when it gets emitted, the second quad will be about its state when having passed 50% of its lifetime and the third quad is how it has to look at the end of its lifespan...

To give you a visual clue: I guess you already know that kind of functionality from applying a gradient in whatever graphics software you use. It works the same way (except for having an additional value for the transparency):

Image

So with five quads of values for the particle's color and alpha it'll do just that transition you can see in the image...

Re: A question on particle effects

Posted: 25 Sep 2009, 19:06
by Erik
So what do i need to do if i want a thick dark cloud, without the black square around it showing up?

Re: A question on particle effects

Posted: 25 Sep 2009, 19:38
by bobthedinosaur
what image are you using for the effect? something you made or something from another game? it might have to do with the alpha map, or it could just be you have a texture issue with your visual settings and/ or your gpu.

Re: A question on particle effects

Posted: 25 Sep 2009, 22:17
by Erik
I'm using both self made textures and some that are "default" as in i don't really know where i got them from, most likely the sample mod.
They work fine but only for bright colours and low transparency settings. Higher alphas turn them into black squares.

Re: A question on particle effects

Posted: 25 Sep 2009, 23:20
by bobthedinosaur
try giving the texture an alpha map, make black the outside and details white. this may help the texture loose its box effect

Re: A question on particle effects

Posted: 26 Sep 2009, 00:04
by Erik
I cant do Alphamaps T_T

Re: A question on particle effects

Posted: 26 Sep 2009, 03:39
by bobthedinosaur
uploaded it and i will make one

Re: A question on particle effects

Posted: 26 Sep 2009, 17:29
by Erik
For every particle that i wanna do?
How does that work with gimp? All i can do is pressing "del" after loading an image to make the housecolour dissapear...

Re: A question on particle effects

Posted: 26 Sep 2009, 18:34
by smoth
Gundam has pd effects take what you want.

Re: A question on particle effects

Posted: 27 Sep 2009, 14:05
by Erik
thx, can i even take the codes?

Re: A question on particle effects

Posted: 27 Sep 2009, 15:20
by smoth
Yeah

Re: A question on particle effects

Posted: 27 Sep 2009, 18:20
by Erik
Thanks a lot I'm really not good at coding those.