|
Trailing effect for rockets or jets?
#442376
06/19/14 20:59
06/19/14 20:59
|
Joined: May 2014
Posts: 179 The lit part of the Truth
CyberGhost
OP
Member
|
OP
Member
Joined: May 2014
Posts: 179
The lit part of the Truth
|
How do I make an effect of a trail for a jet plane or a rocket? It will be fascinating! I tried to do it ,but something wrong happens that makes particles move in different directions
Last edited by CyberGhost; 06/21/14 01:38.
Nothing to say ....
|
|
|
Re: Trailing effect for rockets or jets?
[Re: CyberGhost]
#442380
06/20/14 06:41
06/20/14 06:41
|
Joined: Mar 2003
Posts: 1,524 Canada
Stansmedia
Serious User
|
Serious User
Joined: Mar 2003
Posts: 1,524
Canada
|
Something like this?
function smokefnc(PARTICLE *p)
{
p.alpha -= p.skill_a*time_step;
p.size += p.skill_a*time_step;
if (p.blue > 0) { p.blue -= p.skill_a*time_step*2; }
if (p.red > 0) { p.red -= p.skill_a*time_step*2; }
if (p.green > 0) { p.green -= p.skill_a*time_step*2; }
if (p.alpha <= 0) p.lifespan = 0;
}
function smoke(PARTICLE* p)
{
vec_set(p.blue,vector(150,150,150));
set(p, MOVE | BRIGHT | TRANSLUCENT);
p.alpha = 50+random(20);
p.size = 0.1+random(1.5);
p.gravity = -0.025;
p.skill_a = 2; // fade factor
p.event = smokefnc;
}
effect(smoke,1,my.x,nullvector);
Last edited by Stansmedia; 06/20/14 06:43.
|
|
|
Re: Trailing effect for rockets or jets?
[Re: DLively]
#442393
06/20/14 16:00
06/20/14 16:00
|
Joined: Mar 2003
Posts: 1,524 Canada
Stansmedia
Serious User
|
Serious User
Joined: Mar 2003
Posts: 1,524
Canada
|
beam causes the particle the multiply itself based on the direction - making it kind of like a "train" i guess. Streak stretches the particle. For a smoke, or rocket smoke, you don't really want to set a velocity speed. If it was a spark, or a blood splatter, then you would want to use the velocity. if you want to spread the particles on creation use:
effect(smoke,1,vector(my.x+random(16)-8,my.y+random(16)-8,my.z+random(16)-8),nullvector);
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|