Page 1 of 3

Tiny fractal studio :-)

Posted: Sat Mar 13, 2010 9:49 am
by 0x69
Hi,

I made small fractal studio with LOVE, there you can create your own fractal. Come here to see :
http://coding-experiments.blogspot.com/ ... actal.html

:-)

Re: Tiny fractal studio :-)

Posted: Sat Mar 13, 2010 6:04 pm
by farvardin
really interesting, but I have to kill the process after the fractal is generated.

It's well done anyway.

Re: Tiny fractal studio :-)

Posted: Sat Mar 13, 2010 7:05 pm
by 0x69
farvardin wrote:really interesting, but I have to kill the process after the fractal is generated.
It's well done anyway.
Thanks :-)

As about your problem - in that case fractal is not generated - you saw only intermediate results :-) (Each iteration adds additional details to fractal).
So you should wait until the end of computation to see the end-result.
But of course there is a way to hang-up the fractal generation process if fractal is too complex to calculate ;)
For example if we take initiator rectangle (4 lines) and some generator polyline with 10 lines. Then to compute fractal in 6 iterations there should be needed at least 4*10^6 = 4 000 000 operations of scaling/translation/rotation. So my advice for not hanging-up process for too complicated fractal - lets use not greater than 8 lines for generator or initiator.

Re: Tiny fractal studio :-)

Posted: Sat Mar 13, 2010 8:59 pm
by farvardin
ok, I understand. I was drawing instead of pointing to create the generator and initiator, so it was too big.
There should be a way to stop the computation if possible, or to create the fractal step by step.

I love this tool!

Re: Tiny fractal studio :-)

Posted: Sat Mar 13, 2010 11:42 pm
by Robin
0x69 wrote:As about your problem - in that case fractal is not generated - you saw only intermediate results :-)
Well, with fractals one can only show intermediate results at any time, since it would take literally infinite time to completely generate it. ;)

Re: Tiny fractal studio :-)

Posted: Sun Mar 14, 2010 3:30 am
by Person
Are you sure about that? Wouldn't only need to go as far as you have pixels to display for? As in, the fractal is finished once you know what the color for the pixel will be and all other features will be smaller then a pixel?

Re: Tiny fractal studio :-)

Posted: Sun Mar 14, 2010 10:28 am
by 0x69
Robin wrote:
0x69 wrote:As about your problem - in that case fractal is not generated - you saw only intermediate results :-)
Well, with fractals one can only show intermediate results at any time, since it would take literally infinite time to completely generate it. ;)
Mathematically you are right. But as for PC process - it doesn`t make sense to talk about some process which never finishes. So it is reasonable to re-define definition of "final results". It just means some chosen N-th iteration of fractal. In my case N=6 are final results ;)
So you just mis-interpreted what i wanted to say with "final/intermediate results". (Intermediate results are any with N < 6)

good luck!

Re: Tiny fractal studio :-)

Posted: Sun Mar 14, 2010 11:04 am
by 0x69
farvardin wrote: There should be a way to stop the computation if possible, or to create the fractal step by step.
I`ve added this to known issues. If i will have time and wish - i will add some hang-up prevention, something like not leting user to draw more than 8 lines ;)
farvardin wrote: I love this tool!
Thanks again ;)

Re: Tiny fractal studio :-)

Posted: Sun Mar 14, 2010 12:34 pm
by Robin
0x69 wrote:Mathematically you are right. But as for PC process - it doesn`t make sense to talk about some process which never finishes. So it is reasonable to re-define definition of "final results". It just means some chosen N-th iteration of fractal. In my case N=6 are final results ;)
So you just mis-interpreted what i wanted to say with "final/intermediate results". (Intermediate results are any with N < 6)

good luck!
Ah, I know. I was just messing a bit with you. ;)

Re: Tiny fractal studio :-)

Posted: Mon Mar 15, 2010 4:46 am
by Thustrust
You should try to get it to calculate and draw a maximum number of lines per frame so there's no lag and the detail can be as large as you want. Rather than doing all operations in a single "frame" which gets exponentially more computationally intensive, maybe you could just run through a set number of lines in each frame. That way the fractal would slowly draw itself and the program wouldn't hang.

Would that work?