Title: Help with the burning ship 3d variant Post by: pierre on June 01, 2011, 06:22:36 AM Hello all,
I've asked a question before about rendering the mandelbulb, and got some nice help, so i thought i'd come back to the forum, now that i have (a lot of) trouble rendering the fractal described here: http://www.fractalforums.com/theory/here-are-the-first-true-3d-mandelbrot-images/ (I mean what people refer to as "the second formula" in this thread). However this time my question is quite different: i'm not struggling to get proper shadowing or something, i just get a picture that is *completely* wrong. I'm using a ray-tracer which I wrote myself, and now it's capable of producing an almost decent mandelbulb, and very nice quaternion julias, so it's kind of working. However with the n=2 version of the fractal just mentioned, i get the following ridiculous result (camera at (5, 5, 5) pointing at (0,0,0)): (https://lh4.googleusercontent.com/-O2RpOMfi-Aw/TeW5fdUFhaI/AAAAAAAABDI/wW1xgZsDt7E/s288/bug.jpg) (It's in a very small resolution because I've tried a very slow way of computing, which uses no tricks for speeding up, in the hope that the picture would become right... and no luck) Because i'm so ashamed of the above, here's a julia set that vaguely looks like something: (https://lh3.googleusercontent.com/-MBp4p_14NUo/TeW9bkLLY2I/AAAAAAAABDY/Rb2kcUphyrM/s400/bug2.png) Terrible. I've tried many things and i'm out of ideas. So besides asking for any suggestion as to what may go wrong here, what would really help is a picture of the "mandelbrot" (as opposed to julia) for this fractal, together with the coordinates of the camera and where it is pointing at. A picture of a julia set together with the julia coordinates (and camera position etc) would be awesome, too. Any test i could run to find out what is going on? thanks! pierre Title: Re: Help with the burning ship 3d variant Post by: pierre on June 01, 2011, 09:20:24 AM I'VE GOT IT!!!!
I must have spent 10 hours on this at least today. It turns out that THE C FUNCTION "ABS" IS NOT THE ABSOLUTE VALUE. Instead, it returns the nearest integer to the absolute value. AAAAAAAAAAAARGHHHHHHH!!!!!!!!!! Surely this was the source of everything. I'll try tomorrow... Title: Re: Help with the burning ship 3d variant Post by: pierre on June 01, 2011, 08:39:17 PM this is more like it:
(https://lh3.googleusercontent.com/-RLgXlvC9_EA/TeaG4ZKXMgI/AAAAAAAABDo/l2FYB6-cBoI/s640/02.jpg) what a complicated shape! while i'm at it, does anyone know good places to put the camera, or good julia coordinates? Title: Re: Help with the burning ship 3d variant Post by: miner49er on June 02, 2011, 11:46:06 PM Aw man, don't be ashamed! I like that pic!
I really must get back into coding up some fractals...trouble is, I'm having too much fun using Mbulb3D :-) Title: Re: Help with the burning ship 3d variant Post by: pierre on June 03, 2011, 01:08:42 AM thanks!
it's working fine now. Here's another shot of the same object, much zoomed in: (https://lh5.googleusercontent.com/-Cl4wWrE0lBY/TegVOqh6OFI/AAAAAAAABEc/isozg1I_x-Y/s800/edition-temple3.png) Title: Re: Help with the burning ship 3d variant Post by: visual.bermarte on June 03, 2011, 11:23:21 AM I like it :) is it available somewhere?
Title: Re: Help with the burning ship 3d variant Post by: pierre on June 03, 2011, 05:58:20 PM I like it :) is it available somewhere? If you're asking whether a high-res version of the picture is available, then no, sorry... Title: Re: Help with the burning ship 3d variant Post by: pierre on June 03, 2011, 05:58:53 PM ... but thanks for your comments :)
Title: Re: Help with the burning ship 3d variant Post by: DarkBeam on June 11, 2011, 05:00:37 PM Look here too; http://www.fractalforums.com/gallery/3d-burning-ship/ :dink: :dink:
Title: Re: Help with the burning ship 3d variant Post by: M Benesi on September 14, 2011, 04:51:38 AM Look here too; http://www.fractalforums.com/gallery/3d-burning-ship/ :dink: :dink: Also, I thought you or Jesse implemented it for Mandelbulber. Additionally, I wrote a formula for ChaosPro which is available at the ChaosPro database. Title: Re: Help with the burning ship 3d variant Post by: DarkBeam on December 16, 2012, 10:00:22 AM Use _absz or _absy or both ;) else there is a general formula... hours of coding and nobody used. |