jit.bfg noise stops working after a while

Blair's icon


How can I fix this problem? I have a particle setup with movement controled by jit.bfg. Initially it looks something like this

But over time every particle starts to converge like this

And eventually after a while it looks like this

How can I make it so it always is covering most of the screen, like in the first pic?

Max Patch
Copy patch and select New From Clipboard in Max.

Blair's icon

bump :)) (but i believe part of the reason is because the speed is slightly being reduced until 0 every time i * 0.001 the bfg in gen, so over time it gets smaller until its adding 0) I could be wrong though.

MakePatchesNotWar's icon

Jit.bfg is working fine. What your're seeing here is the particles lining up over time because they get pushed in that direction by the vectorfield.

Blair's icon

How could I fix that? If instead of wrapping the particles around -1 and 1 if they were remapped to a random position if they went over that range would that fix it? If so how would I implement it?

MakePatchesNotWar's icon

Yeah, that's a good solution. It does require you to either keep track of the spawn-position or get a new position from something like jit.noise. But yeah, check if they're out of bounds and if so, select a new position.

I generally use a different approach which uses the age of particles. If you want to see this it's in my post history somewhere > look for "Sharing 2d-flowfield"

Blair's icon

wow that patch is scarily accurate to what I was trying to do, even with the twopi * cos and sin stuff of the x and y. couldnt figure it out haha gj