Title: Another Nonworking Attempt Post by: Geometrian on August 07, 2010, 12:04:49 AM Hi,
For a 2D Mandelbrot Set expressed in 3D (where X, Y, and Z correspond to the complex plane and height, respectively) the axis of rotation (of the complex numbers expressed in polar form) is [0.0,0.0,1.0]. So, to square Zn, you simply rotate it around that 3D axis. This produces a "stack" of Mandelbrot sets along the z axis. I had the idea of taking the cross product of the major axis (X) and a vector to the current point to get a new axis of rotation. Notice that, plotting in X, Y, Z, for Z=0, the axis is [0.0,0.0,1.0]; thus, the resultant solid will have a cross section at Z=0 of the Mandelbrot set. However, as Z changes, the axis of rotation changes. After resuscitating some of my old GPU raytracing code, (which I have since rewritten, but didn't want to merge), I was able to plot the thing. First the relevant part of the (GLSL) source, which should clarify the above explanation: Code: vec3 coord0 = vec3(x,y,z); The result, unfortunately, is not a satisfactory 3D Mandelbrot Set, but I present it here for the interested.(http://a.imageshack.us/img8/6251/image4uh.png)(http://a.imageshack.us/img210/1292/image3ao.png) Again, notice that the cross section of the thing is the Mandelbrot Set, but that it's not really a 3D fractal. Ian Title: Re: Another Nonworking Attempt Post by: kram1032 on August 07, 2010, 01:06:02 AM It' certainly a nice shape :)
Title: Re: Another Nonworking Attempt Post by: KRAFTWERK on August 17, 2010, 03:57:25 PM Yes, pretty cool! O0 |