Logo by dainbramage - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. December 01, 2025, 09:58:18 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Field based DLA...  (Read 3999 times)
Description: A vector field is used to create DLA clusters...
0 Members and 1 Guest are viewing this topic.
Chris Thomasson
Conqueror
*******
Posts: 137



« 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://plus.google.com/101799841244447089430/posts/TdfDCDwkEXf

https://plus.google.com/101799841244447089430/posts/7LQhwQVi86V

https://plus.google.com/101799841244447089430/posts/gZcisaoMdSV

https://plus.google.com/101799841244447089430/posts/NmsLw9xVmZL

https://plus.google.com/101799841244447089430/posts/PPFtCUuuDkL


IMVHO, this is interesting...  ;^)
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #1 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://glm.g-truc.net/0.9.7/index.html



Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #2 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

You should get this rendering.
Logged
Max Sinister
Conqueror
*******
Posts: 114


« Reply #3 on: June 02, 2016, 10:58:56 PM »

Yes, looks good, definitely.
Logged

Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #4 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?
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #5 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

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.
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #6 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

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!

 smiley
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #7 on: June 04, 2016, 07:50:39 PM »

Chris it shows up in my phone correctly cheesy keep it up
Logged

No sweat, guardian of wisdom!
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #8 on: June 04, 2016, 10:49:00 PM »

Chris it shows up in my phone correctly cheesy 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.
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #9 on: June 05, 2016, 07:37:52 PM »

it is so slow Chris! no patience left A Beer Cup
Logged

No sweat, guardian of wisdom!
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #10 on: June 05, 2016, 08:16:11 PM »

it is so slow Chris! no patience left A Beer Cup

Yup, I was worried about that. Well, at least you did not say it totally locked up the browser!  wink

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!

 afro
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #11 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!  wink

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!

 afro

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
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #12 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.   shocked
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #13 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

This program should create something like the following rendering:

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...   shocked

Thanks!
Logged
Chris Thomasson
Conqueror
*******
Posts: 137



« Reply #14 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:

Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Web-based OpenGL ES2 Fractal Website of the Month David Makin 4 5398 Last post January 29, 2011, 01:16:50 AM
by subblue
Depth of Field Mandelbulb 3d mehrdadart 1 4004 Last post February 09, 2011, 11:22:45 PM
by Jesse
Poppy field 2d Art Sergio CT 0 2029 Last post April 20, 2011, 08:00:10 PM
by Sergio CT
Field of balls Mandelbulb3D Gallery miguelnpg 0 960 Last post May 15, 2011, 07:38:12 AM
by miguelnpg
Which fractal is this based on? Help & Support looper 7 1359 Last post February 03, 2015, 04:43:07 PM
by TheRedshiftRider

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.264 seconds with 24 queries. (Pretty URLs adds 0.013s, 2q)