3D Fractals (Ray-traced with Flash)
I guess every developer has to play with fractals sooner or later. Now it was my turn.
I didn’t feel much for creating an other flat Mandelbrot set. So I decided to make it a little more challenging for myself and try something in 3D.
There are already many amazing renders out there. But instead of copy/pasting formulas, I tried to find my own. And to my surprise, I found some very strange and interesting stuff, especially if you consider they are just mathematical defined volumes.
To render those volumes I made a very simple (and very slow) ray-tracer which follows the ray and start checking points to see if they are in the fractal. A normal ray tracer would just calculate the intersection of the ray and the volume, but I don’t know if that is even possible with this kind of stuff?
If I found a point, I looked near that point for 2 other points so I could calculate the normal and ‘setPixel’ a normal map of the volume.
Some of the renders (click to enlarge):
I found a lot of these things and I should have made more images, but it takes many hours to render them in a high quality. I guess I really should start learning C++…
I included the source code so you can start looking yourself for those amazing volumes out there. If you find something cool, let me know
source code: fractal_raytracer_src