Welcome to Fractal Forums

Fractal Software => Programming => Topic started by: tit_toinou on August 16, 2014, 12:13:30 PM




Title: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: tit_toinou on August 16, 2014, 12:13:30 PM
Hi all,

[[ EDIT 2016 November 6]] :

You can have a look at this technique and tweak the GLSL code in Shadertoy !

 Mandelbrot Filaments & Lightning  (https://www.shadertoy.com/view/MttXz8)

I also added a nice 3D effect :

 Mandelbrot Shadow (3D Illusion)  (https://www.shadertoy.com/view/4l3XR4)
 Epileptic Mandelbrot  (https://www.shadertoy.com/view/ltcXz4)

[[ /EDIT ]] :

I've recently explored Mandelbrot with the distance to decide the color and its gradient for the brightness of the pixel.
We can see the borderlines way more clearly : thanks to the modulus of the gradient they must be one or two pixels width.

~Edit 26th april :
I've uploaded on github the sketch as asked : https://github.com/ttoinou/MandelbrotDE (https://github.com/ttoinou/MandelbrotDE)
Post your images on this topic :)

Here's the gallery and few samples : (http://titoinou.deviantart.com/gallery/36894648/Mandelbrot-like)


(http://fc06.deviantart.net/fs71/i/2014/225/2/8/trip_into_mandelbrot___d_by_titoinou-d7v16vm.jpg) (http://titoinou.deviantart.com/art/Trip-Into-Mandelbrot-D-475386898)


(http://fc06.deviantart.net/fs70/i/2014/226/4/5/trip_into_mandelbrot___f_by_titoinou-d7v73q0.jpg) (http://titoinou.deviantart.com/art/Trip-Into-Mandelbrot-F-475662744)



(http://fc04.deviantart.net/fs71/i/2014/226/0/e/trip_into_mandelbrot___e_by_titoinou-d7v48vx.jpg) (http://titoinou.deviantart.com/art/Trip-Into-Mandelbrot-E-475529469)



Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: Chillheimer on August 16, 2014, 06:56:49 PM
wow! very very cool!!  :o :D

what program did you use to do this?


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: David Makin on August 16, 2014, 10:40:22 PM
Nice way to get the brightness to show the error in the distance estimation ;)


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: tit_toinou on August 17, 2014, 04:25:39 AM
Thanks.

@Chillheimer : I use my own Processing program. Sad thing is Processing can't handle double, it only has float..

@David Makin : I don't think theses are error artefacts.
It gets whiter where the distance does not stay constant : near the border (along spines) and far away.
But at the middle between two spines the derivative of the distance is near 0, so that's why it gets darker.


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: laser blaster on August 18, 2014, 12:06:19 AM
Very cool! Is the gradient the derivative of the DE function? And do you calculate it analytically or with finite differencing?


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: tit_toinou on August 18, 2014, 02:27:58 AM
Very cool! Is the gradient the derivative of the DE function? And do you calculate it analytically or with finite differencing?
Yes, DE gives me a matrix of distance, I then differentiate this matrix with a Sobel operator (on the X axis and Y axis separately) and take the modulus of the two numbers. Talking about gradient was maybe wrong  :embarrass: .. Anyway it also works with others filters and gives pretty much the same thing !

Looking at the angle (of the two numbers from the filter) is also very interesting I'll post images soon.


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: Adam Majewski on April 18, 2015, 06:54:19 PM
 "I use my own Processing program. Sad thing is Processing can't handle double, it only has float.."

Can you post the code with description ?



Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: DarkBeam on April 18, 2015, 07:35:31 PM
It looks like a great work, so sharing will be appreciated.


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: tit_toinou on April 18, 2015, 09:49:40 PM
Of course, give me a few days to clean the code from useless littles tweaks and release it on the internet.
The second image was made thanks to photoshop by merging (the formulae -fusion mode- should be pretty simple to find though) two output images from the same sketch (it outputs as many images as we want).


By the way I've begun to code After Effects plugins (http://www.fractalforums.com/programming/after-effects-plugin-for-fractal/). I've ported this Mandelbrot DE generator, here are the first images :

(http://nocache-nocookies.digitalgott.com/gallery/17/4891_16_04_15_8_30_35.png) (http://www.fractalforums.com/images-showcase-%28rate-my-fractal%29/mandelbrot-de-1/)

(http://nocache-nocookies.digitalgott.com/gallery/17/4891_18_04_15_2_24_43.png) (http://www.fractalforums.com/images-showcase-(rate-my-fractal)/mandelbrot-de-2)

(http://nocache-nocookies.digitalgott.com/gallery/17/4891_19_04_15_6_11_23.png) (http://www.fractalforums.com/images-showcase-%28rate-my-fractal%29/mandelbrot-de-3/msg82838/#new)

(http://nocache-nocookies.digitalgott.com/gallery/17/4891_25_04_15_6_01_03.png) (http://www.fractalforums.com/index.php?action=gallery;sa=view;id=17414/)


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: tit_toinou on April 26, 2015, 02:07:45 PM
@Adam Majewski & DarkBeam : I've uploaded the code on github : https://github.com/ttoinou/MandelbrotDE (https://github.com/ttoinou/MandelbrotDE).

Here's an image with the angle :

(http://nocache-nocookies.digitalgott.com/gallery/17/4891_26_04_15_2_00_46.png) (http://www.fractalforums.com/index.php?action=gallery;sa=view;id=17418/)

I'm sure we can find nice coloring algorithms using the angle :) .


Please post here the fractals you've created with my sketch !


Title: Re: Classic mandelbrot with distance and gradient for coloring
Post by: tit_toinou on November 04, 2016, 05:29:25 PM
For thoses interested I coded this in Shadertoy !

https://www.shadertoy.com/view/MttXz8 (https://www.shadertoy.com/view/MttXz8)


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: Adam Majewski on May 13, 2017, 10:40:47 PM
Hi,
I have
* ubuntu 16.04 LTS
* processing 3.3.3
* cloned your repo

After opening files and run command
there is an error :
  size of the sketch can not be determined from your code.

?

Adam


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: Adam Majewski on May 14, 2017, 11:27:10 AM
It works with processing 2.
OK


What is the licence of your code ?
I would like to make image and put it ( with code)  to commons,
like :
https://commons.wikimedia.org/wiki/File:Mandelbrot_Atom_Domains_Animation.gif

You can do it yourself also , if you like.








Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: tit_toinou on May 20, 2017, 09:27:17 PM
Hi Adam,

My code is public domain.
If you could add this kind of images to Wikipedia's mandelbrot article that would be great !
The images from the AE plugin are even better I think ;) .


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: Adam Majewski on May 21, 2017, 08:26:28 AM
Hi Adam,

My code is public domain.
If you could add this kind of images to Wikipedia's mandelbrot article that would be great !
The images from the AE plugin are even better I think ;) .
OK
but the images with source code and good description of the algorithm are more educational (:-)


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: Kalles Fraktaler on May 23, 2017, 12:07:18 AM
Nice and interesting
It has some similarities with what I am playing with
http://www.youtube.com/v/eMDjF9ui-F0


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: tit_toinou on May 23, 2017, 04:27:31 AM
Cool video. Any chance to have the DE gradient effect inside Kalles Fraktaler :D ?


Title: Re: [Shadertoy] Mandelbrot DE Gradient + 3D Effect
Post by: Alef on October 27, 2017, 04:18:28 PM
Wow, so colourfull. Looking at this feels like I had eaten a mushrooms. (I eat just good ones not magical :police:)
Hadn't looked at the code. But is this a direct colouring, generated by formula not gradient?