Visualize Fractals in Blender


(DERBENDER) #1

Hi,

wanna show you an attempt to create a Mandelbrotset in 3d in blender game engine(Low Res).

Putting it in this section in the hope to discuss how it can be improved,
so that we maybe one day could use it to visualize fractals in Blender.

I used the OSL script from tree3d to render slice planes from the MandelBox Volumetric Shader.
Then I composed them to an image and put it in the “Volume Ray Casting” script by martinsh.

I think this is the first Fractal (3d) in Blender (Game Engine).

Pic


Vid

[video]https://youtu.be/Kdc97BsGidg[/video]

Blend File

Mandelbrotmenge3Dpacked.blend (2.3 MB)

credits go to:

MandelBox Volumetric Shader by tree3d

Volume Ray Casting in BGE by martinsh

Enjoy


(SterlingRoth) #2

Pretty cool, thanks for sharing


(burnin) #3

:wink: it’s just a fraction of a fractal… Nice work nevertheless!


(DERBENDER) #4

You are welcome.

Thanks, you are absolutely right, in a limited space it is always only a piece of the fractal, of course.


(DERBENDER) #5

You can change the number of slices in line 56 of the “vol_raycast” script to get different patterns.
Here are some examples: 12,24,120,192,220 slices:





(RealityFox) #6

This is really cool, where do you learn how to make fractals? Like the maths behind it and what not? Any good recommendations?


(burnin) #7

Thanks, you are absolutely right, in a limited space it is always only a piece of the fractal, of course.

In laymen terms:
For fractals there’s no limited space as they are kinda like ‘inner-dimensional’ (Fractal dimension). Is what a name ‘Fractal’ implies.

This is really cool, where do you learn how to make fractals? Like the maths behind it and what not? Any good recommendations?

Wiki is a good start.


(DERBENDER) #8

Look at the OSL script from the MandelBox Volumetric Shader linked in post #1, this is not too complex, I guess.
Other than that, this could be a good start:
Mandelbulb
I have not coded anything myself, I am more of a visual guy and I have more questions than answers.

For example, how is the Volume Ray Casting script calculating the 3d object out of the image(s)???
There are 96 pictures a 400px x 400px.

My goal is to get a better/finer quality, so I tried different formats, for example: TGA, PNG, but I dont really get better results in the final output.

Double the size of the image 8192 x 8192, 96 pictures a 800px x 800px, still didnt get better.
Any help would be appreciated.


(RealityFox) #9

Thanks for that link! Sorry can’t help you with

Wiki is a good start.

Not the best though. Already tried that. Khan academy is pretty good but I haven’t had the time recently to complete it.


(DERBENDER) #10

Wanna make some clouds, change the opacity factor in the “Volume Ray Casting” script in line 53 to 0.5-10.



Playing araund with the OSL script:



(DERBENDER) #11

Here is a colored version using the “Thermal Vision” Script of Smoking_mirror.
It is a custom filter with an always sensor attached to the camera.
IF you wanna change the color, change the values in the line 13-16.


Flying into some fractals in the mandelbulb program, it looks so cool:




(burnin) #12

Nice experiments, still :slight_smile:
Just stumbled upon another interesting article: Path Tracing 3D Fractals


(DERBENDER) #13

Thanks, for sure an interesting read, but way over my head.
As mentioned in another thread by KWD it could be possible to visualise fractals in blender with the right programming skills, if I understand correctly.


(Taipan) #14

Hi

This looking real good…And render in viewport is no render time…Pretty cool.

The video is amazing Good work.

Tai


(tree3d) #15

Nice Job! Looks pretty cool!


(tree3d) #16

Actually raytracing requires a different aproach than this, you have to estimate the distance where a given ray will be blocked by geometry, but space is virtually infinite so you have to point to a place and say, ok, my thing will happen about here around this place, so you begin to orbit your fractal at that point!


(filmkaar) #17

Amazing work. Thanks for pushing the boundaries in Blender.


(burnin) #18

An inspiration, food for thoughts… Fractal Lab (WebGL fractal explorer)


(DERBENDER) #19

Thanks a lot guys,appreciate it.


(DERBENDER) #20

Here is another .blend file, I wanna share:
It is a mandelset animation.
It has only 1 Sample in Cyclesrender, so it is pretty fast to render.

Choose an output path to render the animation and click “Animation”
or
go to rendered view and hit play (Alt+A) to preview.

mandelset.blend (571 KB)

stc=1

Have Fun!