Title: 3D Burning Ship formula and .frag file Post by: laser blaster on October 22, 2014, 12:27:57 AM Hello. I've written Fragmentarium code for the 3D burning ship. Here's a picture of the main miniship on the western antenna (click for full-size):
(http://2imgs.com/2i/t/5fb1a78d5e.jpg) (http://2imgs.com/5fb1a78d5e) Here is one of the Julia sets of this formula (this Julia and the others I posted in the gallery are included as presets). (http://nocache-nocookies.digitalgott.com/gallery/16/8614_18_10_14_11_01_50.jpeg) (http://nocache-nocookies.digitalgott.com/gallery/16/8614_18_10_14_11_01_50.jpeg) This is essentially the standard mandelbulb with abs() applied to all axes before the power operation. Here's the iteration formula, in trig form (I've written it in pseudocode using only scalar variables, to make it easier to understand for those who don't know glsl). Code: x = abs(x) I made two versions, a fast, power-2 only version, and arbitrary-power version that is much slower as it uses trig functions. The arbitrary power version also allows an arbitrary rotation to be applied each iteration, while the fast version ignores the RotVector and RotAngle parameters. Both versions use 4-point distance estimation, because the fast scalar DE approximation is not accurate for a fractal with this much stretching and skewing (it would probably work ok for the higher powers, but then you'd essentially be looking at the mandelbulb). So it's a bit slow(turn down the detail setting to get it to run faster). Let me know if you get any compiler errors. I also uploaded a slightly modified version of Syntopia's DE_Raytracer that I used to render the above images. I changed it so that the spot light shadows don't influence the cam light, so now the cam light can act as a proper fill light for the shadowed areas. (NOTE: It will work just fine with the standard raytracer). Title: Re: 3D Burning Ship formula and .frag file Post by: Syntopia on October 22, 2014, 11:04:45 PM Very impressive Fractal - looks extremely botanic.
Would it be okay if I included this as an example in the Fragmentarium distribution? Title: Re: 3D Burning Ship formula and .frag file Post by: laser blaster on October 22, 2014, 11:34:52 PM Please do, that would be great. :)
Title: Re: 3D Burning Ship formula and .frag file Post by: Crist-JRoger on March 01, 2015, 06:14:01 PM Interesting fractal. Many thanks for sharing!
(http://fc01.deviantart.net/fs70/f/2015/060/a/4/grass_by_crist_jroger-d8jznsc.png) (http://fc01.deviantart.net/fs70/f/2015/060/a/4/grass_by_crist_jroger-d8jznsc.png) Title: Re: 3D Burning Ship formula and .frag file Post by: eiffie on March 01, 2015, 06:58:04 PM OooooooO!
Title: Re: 3D Burning Ship formula and .frag file Post by: Crist-JRoger on March 01, 2015, 07:00:29 PM Last DE :embarrass: your shadows code as knighty says )
Title: Re: 3D Burning Ship formula and .frag file Post by: laser blaster on March 01, 2015, 07:12:01 PM Glad you liked it! :D
Did eiffie make a new shadows code? Where do I find this? Title: Re: 3D Burning Ship formula and .frag file Post by: Crist-JRoger on March 01, 2015, 07:15:02 PM Maybe not new ) but in DE looks nice! Here (http://www.fractalforums.com/index.php?action=dlattach;topic=20680.0;attach=10860) |