Home   Help Search Login Register  

Author Topic: Particles not dissolving properly.  (Read 1063 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Particles not dissolving properly.
« on: 20 Jan 2009, 20:47:03 »
Hello,

I'm working on a script where I use smoke effects coming out of a plane, but the smoke doesn't dissolve the way i want it to. It looks good in the beginning, but when towards the end of the smoke animation the clouds stay sharp and clear before dissapearing. It looks bad. I would like to have the smoke dissolving in the air after let's say 30 sek.

Does anyone know what I'm doing wrong?

Looked at forums, turorials and unPBO'd addons, but couldn't find the solution.

It would be perfect to use the lit fire effect, if it could be uncoded and made bigger.

Code: [Select]

_source = _this select 0

_count = 0

#loop

? _count > 1000 : exit

_count = _count + 1

drop [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 0], "", "Billboard", 3, 30 + random 30, [0,0,0], [random 5,random 5,random 5], random 8, 0.1 + random 0.2, 0.1, 1, [30 + random 20, 40 + random 30, 0], [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1]], [10, 10], 1, 0, "", "", _source];

~ 0.03

goto "loop"


Thanks in advance,

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Particles not dissolving properly.
« Reply #1 on: 20 Jan 2009, 22:38:48 »
One of the problems seems to be that you start with transparent cloudlets and make them more opaque over time:

..., [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1]], [10, 10], 1, 0, "", "", _source];




try { return true; } finally { return false; }

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Particles not dissolving properly.
« Reply #2 on: 20 Jan 2009, 22:47:19 »
So you might just make the last component of the color array transparent for that smooth dissolve effect you are looking for:

Code: [Select]
..., [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1],[1, 1, 1, 0]], [10, 10], 1, 0, "", "", _source];

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Particles not dissolving properly.
« Reply #3 on: 20 Jan 2009, 23:42:18 »
Thanks a bunch, both of you.

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.