Title: Mandelbrot distance estimation problem Post by: Iariak on November 18, 2016, 10:30:26 PM So I tried to implement distance estimation into my VBA program because I really liked the images you can get with that (been doing everything using escape time so far).
However, because my idea of what derivation is is extremely vague (and from what I understand, it is used in distance estimation) I ended up ripping the extra code needed for DE off of another thread on this forum (namely this one: http://www.fractalforums.com/mandelbrot-and-julia-set/problem-with-mandelbrot-distance-estimator/) here is my code: Code: Sub render() (https://c2.staticflickr.com/6/5575/31091454105_8f99238e07.jpg) (https://flic.kr/p/PnrQ6x)Mandelbrot set zoom (https://flic.kr/p/PnrQ6x) What bothers me though that if that image was darker, there would be visible "straps" just like the ones you get with escape time, you can see that on this image (this is the whole set) (https://c7.staticflickr.com/6/5487/30288535014_7008c87371_m.jpg) (https://flic.kr/p/N9uEdW)Whole Mandelbrot using DE (https://flic.kr/p/N9uEdW) If anyone has any idea what I did wrong, let me know please. Thanks! Title: Re: Mandelbrot distance estimation problem Post by: quaz0r on November 19, 2016, 07:53:11 AM i dont know if it is your only problem but try a larger bailout
Title: Re: Mandelbrot distance estimation problem Post by: Iariak on November 19, 2016, 09:54:44 AM Naw man, 200 is enough for the whole set. The picture is so dark just because I wanted the straps to be visible. If it was brighter, it would look just fine. Thanks for taking your time to go through the code though ^^
Title: Re: Mandelbrot distance estimation problem Post by: quaz0r on November 19, 2016, 11:02:43 AM i wasnt asking, i was telling. also your bailout in that code is 2, not 200. i guess 200 is your maxiter there. O0
Title: Re: Mandelbrot distance estimation problem Post by: Adam Majewski on November 19, 2016, 11:18:53 AM IMHO problem is int the code which computes color from distance estimation.
Try to chang coloring : * if interior then red * if exterior ** if distance < 10*pixel_size then black ** else white Show result HTH BTW https://en.wikibooks.org/wiki/Fractals/Iterations_in_the_complex_plane/demm Title: Re: Mandelbrot distance estimation problem Post by: quaz0r on November 19, 2016, 11:31:10 AM well, the code is obviously just a basic (pun intended?) example in any case. his question though,
Quote if that image was darker, there would be visible "straps" relates to his intentionally using a larger multiplier (500 instead of your suggested 10). and again, i suspect if his bailout matched or exceeded this value it could produce better results. Title: Re: Mandelbrot distance estimation problem Post by: claude on November 19, 2016, 02:29:46 PM Like quaz0r said, you need to change "If mag > 2" to increase the escape radius. Attached is a comparison, showing that the "straps" reduce when the radius is increased, no harm going huge like R = 1e6 or so because once it escapes 2 it grows very fast. The bigger the radius, the more accurate the distance estimate.
Title: Re: Mandelbrot distance estimation problem Post by: Iariak on November 19, 2016, 04:14:35 PM Oh sorry I didn't know that number was called a bailout and assumed you meant the max iterations x) Anyway that was totally it! It would never occur to me that changing that number would have any effect, I always used 2. Anyway thanks a bunch to all of you, it works beautifully. |