x


How do I pre-prime particle systems?

How do I pre-prime a particle system so that it looks like it has been running for a while already?

more ▼

asked Jul 30 '11 at 02:44 AM

Waz gravatar image

Waz
6.5k 23 33 71

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

Like this:

var simulate = 1.0;

function Start()
{
    var step = 0.03;
    for (var i=0.0; i<simulate; i+=step)
       particleEmitter.Simulate(step);
}
more ▼

answered Jul 30 '11 at 02:44 AM

Waz gravatar image

Waz
6.5k 23 33 71

(I tried to use ParticleEmitter.Simulate a while ago without success, but today it suddenly dawned on me how it needs to be used - basically you need to call it with small time increments, just as it would get from a slow progress of frames; I would argue that the simulator should always have a minimum resolution - like that 0.03 above, and should sub-simulate even when the framerate is low to ensure a reasonably consistent visual result)

Jul 30 '11 at 02:46 AM Waz
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x659
x16

asked: Jul 30 '11 at 02:44 AM

Seen: 889 times

Last Updated: Jul 30 '11 at 02:46 AM