Warmist's page

Logo

My ramblings

View My GitHub Profile

11 October 2018

Butterfly theory

Generating Diffusion Limited Aggregation (like thing)

initial

The general idea is particles move around and clump together when they hit each other. In this case it’s simplified to have a central seed (red rectangle in center of the image) and the particles start in random place on the border and shoot somewhat towards the center.

More info about this style of generation: wikipedia Example of generator like this: reddit

The chaos part

final

My idea was to explore what happens when you offset particles very little each run. The resulting image (log normed - see fractal flames wikipedia or original pdf about fractal flames) is displayed above.

Implementation

The idea is to have 2 random generators: one that is used for “main” generation of random rays and the “offset” generator that is generating very small (ray target in my case) offset. Rerun the algo many times each time adding the result into a floating point buffer and after some time get the nice image.

The source code for this is here: my github repo

Results

Main issues:

Other

Original idea was just to grow many DFLA’s and add them together. This resulted in uniform “fluffy” look.

tags: