Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: mind on November 29, 2006

Title: MATHCOMP : Buddhabrot
Post by: mind on November 29, 2006
my 1st entry for the challenge i suppose..

it's a program used to plot the Buddhabrot(created by Melinda Green (http://www.superliminal.com/fractals/bbrot/bbrot.htm)), which is an interesting way of displaying the mandlebrot fractal.

The screenshot below is from version 0.2(too lazy to take a new shot lol :)) but i think it's safe to say that the app at its current stage is in an early alpha stage. Rendering the fractal in the screenshot took about 60 minutes(on my gf's 700 or so Mhz laptop) with the threshold set to around 2000..

Based on documentation by J.Tarbell, M.Green and P.Bourke.

I will add the sourcecode once im 100% satisfied with the program(and once the sourcecode aint sloppy spaghetti code :))

Ok, update.. the download is now what i consider 1.0a, and my final update for the competition.. also, the source is now included in the zip. i also added a new screenshot to show off my 7½h render at 20 threshold :P

so, a few thresholds to play around with that give some nice results:  20,  200,  2000,  20000..



Title: Re: MATHCOMP : Buddhabrot
Post by: rdc on November 29, 2006
I remember looking over the website when a link was posted here some time back. Very cool way to view the m. set. I couldn't run your program though; I got an invalid compression method when I tried to unzip the program. Not sure what was going on there.
Title: Re: MATHCOMP : Buddhabrot
Post by: benny! on November 29, 2006
Yup. Cannot extract it either ...  ::)
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on November 29, 2006
thats called winzip 11 >_< guess i'll have to upload a new one then :)

EDIT: new archive up, with zip2.0 compatible compression :)
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 29, 2006
Its SUCH a beautiful image...I'm really pleased someone entered this, well done mind.
The exe seems to crash here, or maybe Im doing something wrong.
When it appears do you just press render button?
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on November 29, 2006
Its SUCH a beautiful image...I'm really pleased someone entered this, well done mind.
The exe seems to crash here, or maybe Im doing something wrong.
When it appears do you just press render button?

thats strange.. any error messages? and yeah, basically you just press the render button.. or fiddle with the sliders(or press the labels to change threshold and/or update frequency);

i'll try to run it on a few different configurations and see if i can find the problem.. it's basically standard delphi so it SHOULD work on all systems..
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 29, 2006
No error message unfortunately...I press render, it waits a second or two then just vanishes...sorry not much help Im afraid.
Title: Re: MATHCOMP : Buddhabrot
Post by: combatking0 on November 29, 2006
Quite ghostly looking indeed.

I also liken this to an X-Ray photo. Very nice.
Title: Re: MATHCOMP : Buddhabrot
Post by: rdc on November 29, 2006
Thanks for the new zip. Works well for me. Very nice job.
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on November 29, 2006
Taj, i added a new zip with some bruteforce logging.. i would appreciate if you could run it and tell me at what point it screws up and dies.. thanks in advance..

oh and btw, so far i have run it on 5 different comps, and it worked flawlessly on all om em.. so there's something weird going on here.. :(

and thanks for your kind words folks :)
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 29, 2006
Mind,

log file is *empty* after running. Program must die immediately but I notice one thing, what I see on the screen is not like your screenshot. So I enclose. Maybe its a clue, maybe not.

Also, in the end, dont worry about my machine, the fact that I cant run it does not detract from how cool the image is. Others can run it fine...must be some weirdness with my PC I guess.
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on November 29, 2006
hmm thats weird, seeing as you got so far as to setting the canvas up..


your logfile should ATLEAST look something like this:

Creating bitmap.
Initializing.
Setting up canvas. (this MIGHT be where you crash out, but since your logfile is empty we will never know :))

anyways, i know what you are seeing isnt what i attached in my initial post.. however, your screenshot looks screwed up in general, with the buttons and sliders beeing positioned over the canvas etc.. this is what it SHOULD look like:

Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 29, 2006
Tried it at home and it works fine...hmmmm.
Title: Re: MATHCOMP : Buddhabrot
Post by: Shockwave on November 29, 2006
The buddhabrot looks stunning!! :) Thanks Mind.
Title: Re: MATHCOMP : Buddhabrot
Post by: benny! on November 29, 2006
Finally I got it working. Looks very impressive. Thumb up ;)
Title: Re: MATHCOMP : Buddhabrot
Post by: Rbz on November 29, 2006
cool buddhabrot effect  :cheers:
Title: Re: MATHCOMP : Buddhabrot
Post by: MrP on November 30, 2006
This looks very nice indeed. Has a very eerie sort of x-ray kinda feel.... I Like it.
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on November 30, 2006
Updated.. "Final" version now uploaded aswell as a new render. Zip now features full sources. Enjoy :)
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 30, 2006
Final + source = karma
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on November 30, 2006
I ran it for 24 hours and got a super smooth picture...

Title: Re: MATHCOMP : Buddhabrot
Post by: benny! on November 30, 2006
I ran it for 24 hours and got a super smooth picture...

lol .. that's crazy. Hope the picture isn't burned into your screen now ;)
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on December 01, 2006
Another one left for 28 hours...
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 01, 2006
well, my app seems popular.. :) its mad fun to run it for 20+ hours and check the results once in a while.. you get MAD smooth results :)
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on December 01, 2006
Its very cool, any chance you could add zoom Mind? Yeah I know it takes even longer to draw but thats ok Ill leave it for a week to see the heart pendant close up and the teddy bear above the heart.

Its worth ++++++++karma :-)
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 01, 2006
Its very cool, any chance you could add zoom Mind? Yeah I know it takes even longer to draw but thats ok Ill leave it for a week to see the heart pendant close up and the teddy bear above the heart.

Its worth ++++++++karma :-)
lol.. i'd have to read up on that first.. i never wrote a madelbrot zoomer.. i'll see what i can do.. my gf is pissed at me though, since i've been sitting at her comp almost 24/7, writing that buddha.. rofl..  i was thinking about adding a few sliders to modify the image region, might aswell add zoom..

i did some reading up on the metropolis-hastings (http://www.steckles.com/buddha/) algorithm.. seems that by using it you can vastly improve rendering speed on highly zoomed areas of most fractals..
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 01, 2006
and btw, whats that? like 20 threshold and a low bail-out? somewhere around the 5-15 region? not that the bail-out makes THAT much of a difference..
Title: Re: MATHCOMP : Buddhabrot
Post by: Jim on December 01, 2006
Try multithreading too if you have a HT processor or Core 2 - since it's all CPU and no IO it'll go massively faster.

Jim
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 01, 2006
Try multithreading too if you have a HT processor or Core 2 - since it's all CPU and no IO it'll go massively faster.

Jim


i wrote this on my gf's 700Mhz laptop, with no HT capabilities.. and my comp aint much better lol.. pIII-900 For the lose.. :P

but, the code is up there, feel free to upgrade it with HT or dualcore :P
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 01, 2006
speaking of nothing, Taj you have msn? i have a pretty cool idea i'd like to discuss with you.. regarding texture generation for smaller prods, like 1k and 4k :)
Title: Re: MATHCOMP : Buddhabrot
Post by: Jim on December 01, 2006
I've been planning a multithreaded mandelbrot for some time - mostly as an example for this place. Â I did a very basic experiment on my HT CPU (2 threads generating 1/2 the set each) and got very nearly the optimum 2x speedup. Â That surprised me as I thought HT was a gimmick, but it's obvious for CPU-bound stuff, esp. floating point stuff, it's a big gain.

The plan is to have 2 or more worker threads that get given a square of the screen to generate. Â If it's more than a single thread should handle then it'll queue up sub-squares of that square for other threads to work on. Â There are some really cool estimates for which squares are 'complicated' and which are 'simple'. Â They probably apply to buddhabrot too.

Multithreading is going to be huge, especially as the number of cores goes from HT (1 core, multiple hardware threads) to Core Duo (2 core) and Core Quadro (4 core) to PS3 (about 12 cores!) Â to Mesh computing (unlimited cores scattered all over the world). To get the best performance on modern CPUs everything is going to be multithreaded. Â Intel keep sending me application notes on how it all works, if anyone's interested.

Jim
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on December 01, 2006
speaking of nothing, Taj you have msn? i have a pretty cool idea i'd like to discuss with you.. regarding texture generation for smaller prods, like 1k and 4k :)

wroceng nick...try that
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on December 01, 2006
Its very cool, any chance you could add zoom Mind? Yeah I know it takes even longer to draw but thats ok Ill leave it for a week to see the heart pendant close up and the teddy bear above the heart.

Its worth ++++++++karma :-)
lol.. i'd have to read up on that first.. i never wrote a madelbrot zoomer.. i'll see what i can do.. my gf is pissed at me though, since i've been sitting at her comp almost 24/7, writing that buddha.. rofl..  i was thinking about adding a few sliders to modify the image region, might aswell add zoom..

i did some reading up on the metropolis-hastings (http://www.steckles.com/buddha/) algorithm.. seems that by using it you can vastly improve rendering speed on highly zoomed areas of most fractals..

Mind,
zoom in this sense is the same thing as setting a new image region...so ok do what you were thinking!
Yeah metropolis is the way forward. I agree.

Lastly my seetings were threshold 9! everything else standard. I prefer your image to be honest but the egg shaped light is interesting in mine.

Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 02, 2006
Its very cool, any chance you could add zoom Mind? Yeah I know it takes even longer to draw but thats ok Ill leave it for a week to see the heart pendant close up and the teddy bear above the heart.

Its worth ++++++++karma :-)
lol.. i'd have to read up on that first.. i never wrote a madelbrot zoomer.. i'll see what i can do.. my gf is pissed at me though, since i've been sitting at her comp almost 24/7, writing that buddha.. rofl..  i was thinking about adding a few sliders to modify the image region, might aswell add zoom..

i did some reading up on the metropolis-hastings (http://www.steckles.com/buddha/) algorithm.. seems that by using it you can vastly improve rendering speed on highly zoomed areas of most fractals..

Mind,
zoom in this sense is the same thing as setting a new image region...so ok do what you were thinking!
Yeah metropolis is the way forward. I agree.

Lastly my seetings were threshold 9! everything else standard. I prefer your image to be honest but the egg shaped light is interesting in mine.



download the latest verison.. run it ar 3 threshold and 3 bailout.. for a few hours.. MAD cool.. :P

anyways, i said MSN not AIM.. AIM is gay.. rofl.. download msn 7.5 and add me, BWAHAHAHAHA!! email gone!! no spam bots gonna add me :P..

we'll talk :D
Title: Re: MATHCOMP : Buddhabrot
Post by: taj on December 02, 2006
That is msn, but yeah ok I added you...
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 02, 2006
ahh, thought it was aim.. since wroceng nick whatever looked like an aim screen name.. n eed mail addys to add ppl on msn :P
Title: Re: MATHCOMP : Buddhabrot
Post by: lilw4t3rdr0p on December 03, 2006
I like it. It looks like some sort of thing pressing through the light to free itself. Does that make sense? Anyway, it is stunning!
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on December 04, 2006
I like it. It looks like some sort of thing pressing through the light to free itself. Does that make sense? Anyway, it is stunning!
made no sense at all, but glad you liked it :P
Title: Re: MATHCOMP : Buddhabrot
Post by: lilw4t3rdr0p on December 04, 2006
It was a vision. LOL Nevermind. Thanks :)
Title: Re: MATHCOMP : Buddhabrot
Post by: Merick on October 19, 2009
I was going through some of the comp entries that show up randomly on the front page and decided to check this one out, but when i hit the render button it pops up a message box with "range check error"
Title: Re: MATHCOMP : Buddhabrot
Post by: Shockwave on October 19, 2009
Maybe Mind can cast a bit of light on the problem
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on October 20, 2009
hmm, thats a tricky one.. i havent touched the code in years and i have no ideas what values you used when you got the error >_>
Title: Re: MATHCOMP : Buddhabrot
Post by: Merick on October 20, 2009
it doesn't matter what values i use, it always gives me that error when i hit the render button, i've even tried repeatedly hitting the random button but no luck
Title: Re: MATHCOMP : Buddhabrot
Post by: mind on October 21, 2009
thats strange..  oh well, nothing i can be bothered looking deeper into now to be honest, as the code is a few years old :D