spawn towards nearest particle possible?
#1
I've got 10000 particles scattered on a torus surface.  I want to grow splines to join the paricles, however i want to start from 1 particle (or some random ones) and i thought spawning via travel distance from this origin to its neighbours (based on a distance threshold).  Is this possible?  I intend to spawn from these neighbour particles outwards etc until the torus is covered.

I have tried flocking with rubbish results.
  Reply
#2
Ok so i'm now trying to get a fake growth setup to work.  I figured i could birth 1 particle then spawn multiple offset a distance using the spread operator.  After that i spawned at a rate per sec and tested against a binding absolute distance to keep the particles apart and end up with a nice even (not symmetrical) cover of the surface.  Problem is the spawned particles jump position every frame, so i added a test against event time to freeze after they had found a valid position. alas, still plenty of position jumping.

https://www.dropbox.com/s/nsl0lat9en4cfw...6.png?dl=0
  Reply
#3
You can use groups and neighbor tests to simulate growth, and then use those same groups within a spline operator (set to neighbor mode) to bind only between the particles of the growing group.

Attached is an example scene for you to reference.


Attached Files
.max   growNeighborSplines_001.max (Size: 656 KB / Downloads: 340)
  Reply
#4
that is such a simple solution, thanks for the scene.
  Reply
#5
That's awesome and thanks for the sample scene, I was about to ask a very similar question when birthing with voxels.
  Reply
#6
now, if i wanted to take this further - as the splines snap on with the distance threshold and the paricles not moving.

Could i substitute the distance threshold for maybe a time threshold, so as particles become active in the group the spline can use the variable radius on age instead of length?
  Reply
#7
Well i got a little something by adding an intermediate event with some variable time delay and a flocking force.

https://www.dropbox.com/s/qyxxoqrkurf4v0...9.png?dl=0
  Reply


Forum Jump: