Title: Field based DLA... Post by: Chris Thomasson on June 01, 2016, 09:34:39 PM One can grow DLA using field lines by creating a single attracting point, creating a particle on the border of a random shape, and iterate how the particle falls into the attractor. When it hits, the last “segment” of the field line is plotted, and registered as a new attractor. This creates the aggregation. The end result can be efficient because the paths of particles follow field lines instead of random walks. Every thing is deterministic except for the initial origin position the the particle, or field walker if you will. A walker is created in a random location, then follows its field line to the cluster of attracting points. The end result of iteration, looks virtually identical to random “drunken” walk based DLA.
0: Create a vector field. 1: Add a single attractor A to the field. 2: Create a random point P. 3: Walk P along its field line until it hits an attractor H. 4: Draw the last segment of P's walk to H. 5: Add the attractor H to the field. 6: Goto step 2 FWIW, here is some sample/crude code that depend on the Cairo graphics and GLM vector math libraries: https://github.com/ChrisMThomasson/CT_fieldDLA/tree/master/cairo_test_penrose (https://github.com/ChrisMThomasson/CT_fieldDLA/tree/master/cairo_test_penrose) https://plus.google.com/101799841244447089430/posts/TdfDCDwkEXf (https://plus.google.com/101799841244447089430/posts/TdfDCDwkEXf) https://plus.google.com/101799841244447089430/posts/7LQhwQVi86V (https://plus.google.com/101799841244447089430/posts/7LQhwQVi86V) https://plus.google.com/101799841244447089430/posts/gZcisaoMdSV (https://plus.google.com/101799841244447089430/posts/gZcisaoMdSV) https://plus.google.com/101799841244447089430/posts/NmsLw9xVmZL (https://plus.google.com/101799841244447089430/posts/NmsLw9xVmZL) https://plus.google.com/101799841244447089430/posts/PPFtCUuuDkL (https://plus.google.com/101799841244447089430/posts/PPFtCUuuDkL) IMVHO, this is interesting... ;^) Title: Re: Field based DLA... Post by: Chris Thomasson on June 01, 2016, 09:44:38 PM Unfortunately wrt the code in my Github, I just installed VS2015 on a new computer and forgot to convert the damn tabs to spaces!
:hurt: Also, here are link to the 3rd party libs it depends on: http://cairographics.org (http://cairographics.org) http://glm.g-truc.net/0.9.7/index.html (http://glm.g-truc.net/0.9.7/index.html) Title: Re: Field based DLA... Post by: Chris Thomasson on June 01, 2016, 09:47:56 PM Here is the output of the program:
https://github.com/ChrisMThomasson/CT_fieldDLA/blob/master/cairo_test_penrose/output.png (https://github.com/ChrisMThomasson/CT_fieldDLA/blob/master/cairo_test_penrose/output.png) You should get this rendering. Title: Re: Field based DLA... Post by: Max Sinister on June 02, 2016, 10:58:56 PM Yes, looks good, definitely.
Title: Re: Field based DLA... Post by: Chris Thomasson on June 03, 2016, 05:36:49 AM Yes, looks good, definitely. Thank you so much! I worked very hard on this in my fairly limited free time, and one of the nice things about it is that it ties directly into field based diffusion limited aggregation. This is basically the direct opposite of the random, perhaps "drunken" walk method. The field based method pulls particles into the attractors quite nicely. And DLA can, and does occur using: 0: Create a vector field. 1: Add a single attractor A to the field. 2: Create a random point P. 3: Walk P along its field line until it hits an attractor H. 4: Draw the last segment of P's walk to H. 5: Add the attractor H to the field. 6: Goto step 2 Well, this is the smallest amount of steps I can reduce the algorithm to. Can anybody go smaller, a faster wrt the aggregation process of field DLA? Title: Re: Field based DLA... Post by: Chris Thomasson on June 03, 2016, 06:23:51 AM Wow, for some reason the following results look "kind of" similar to field DLA:
https://student.societyforscience.org/article/possibility-strange-new-particle-surprises-physicists (https://student.societyforscience.org/article/possibility-strange-new-particle-surprises-physicists) To get the streaking line DLA, use very strong attraction, where the DLA field lines look like straight lines, where the curves are like zooming into a very large circle such that the curve looks like a line. Title: Re: Field based DLA... Post by: Chris Thomasson on June 04, 2016, 07:09:48 AM FWIW, here is a link to a crude pre-alpha test of an animated vector field. Can you please test this out and tell me if it works for you:
http://funwithfractals.atspace.cc/ct_fdla_anime_test_0 (http://funwithfractals.atspace.cc/ct_fdla_anime_test_0) You should see a vector field start to emerge in blue. Does it work for you, does it go too fast? Too slow? Also, let it run until a little alert box pops up saying its done. I would not recommend trying this out on a phone. It will work, but should be fairly slow. ;^o Thanks everybody! :) Title: Re: Field based DLA... Post by: DarkBeam on June 04, 2016, 07:50:39 PM Chris it shows up in my phone correctly :D keep it up
Title: Re: Field based DLA... Post by: Chris Thomasson on June 04, 2016, 10:49:00 PM Chris it shows up in my phone correctly :D keep it up Thank you for giving it a go! I am wondering if you let it run long enough to get the alert box saying its done? If so, how long did it take? The number of simultaneous points for the vector field being rendered is a bit high for a phone. Humm. Also, can you save the rendering to your phone storage? It should be 1920x1080. Title: Re: Field based DLA... Post by: DarkBeam on June 05, 2016, 07:37:52 PM it is so slow Chris! no patience left :beer:
Title: Re: Field based DLA... Post by: Chris Thomasson on June 05, 2016, 08:16:11 PM it is so slow Chris! no patience left :beer: Yup, I was worried about that. Well, at least you did not say it totally locked up the browser! :dink: I have a phone to test on now, and will find optimal simulation parameters to make it run nice and smooth. Thank you for all of your help! O0 Title: Re: Field based DLA... Post by: Chris Thomasson on June 05, 2016, 11:08:15 PM Yup, I was worried about that. Well, at least you did not say it totally locked up the browser! :dink: I have a phone to test on now, and will find optimal simulation parameters to make it run nice and smooth. Thank you for all of your help! O0 Ahhh! I got it working on a phone and a TV. It takes around 10 minutes to get the complete alert box on the Phone, and a really long time on the TV. So, I just need to tone down the density wrt the number of points calculated per animation frame, and it will fly on these devices! This should be ready tonight or tomorrow morning. Thanks again! :^D Title: Re: Field based DLA... Post by: Chris Thomasson on June 06, 2016, 06:29:57 AM Ahhh! I got it working on a phone and a TV. It takes around 10 minutes to get the complete alert box on the Phone, and a really long time on the TV. So, I just need to tone down the density wrt the number of points calculated per animation frame, and it will fly on these devices! This should be ready tonight or tomorrow morning. Thanks again! :^D FWIW, here is a test page that should show a fairly smooth animation on a phone: http://funwithfractals.atspace.cc/ct_fdla_anime_test_0_cp/ The end result is the following rendering: https://plus.google.com/101799841244447089430/posts/ZDr3iwRifsq This should work way faster than the previous test on a phone. :o Title: Re: Field based DLA... Post by: Chris Thomasson on June 10, 2016, 12:45:37 AM I finally got around to animating actual DLA cluster growth using field lines. Here is an experimental test:
http://funwithfractals.atspace.cc/ct_fdla_pa_t0 (http://funwithfractals.atspace.cc/ct_fdla_pa_t0) This program should create something like the following rendering: https://plus.google.com/101799841244447089430/posts/YCJCaq7zjyw (https://plus.google.com/101799841244447089430/posts/YCJCaq7zjyw) then an alert box should pop up saying that its finished. Can you see the DLA forming? The actual field lines are in purple alpha 0.1. I would not use this on a phone quite yet... :o Thanks! Title: Re: Field based DLA... Post by: Chris Thomasson on June 15, 2016, 11:06:59 PM Here is a result of a deterministic process of field based DLA. Each field walker starts from the same place over and over again. The vector field is changing wrt particle stick events for new points are dynamically added: (http://nocache-nocookies.digitalgott.com/gallery/19/11687_15_06_16_11_02_44.png) |