- This topic has 10 replies, 4 voices, and was last updated December 7, 2011 at 7:57 pm by dubstep_joe.
-
AuthorPosts
-
November 30, 2011 at 11:50 am #1051972
At around 2:50ish you see this ‘expanding’ fractual.
What is the real reality? – YouTubeAnyone know what it is? Is it something to do with mandelbrot fractuals?
I’ve seen this effect done without fractuals aswell but rather an ‘image’ that constantly ‘zooms’ out further and further.. How do they do it? ๐
November 30, 2011 at 12:03 pm #1247364its a fairly standard fractal which from memory you can zoom in and out on infinitely. Even 10-15 years ago there were many open source/free programs for generating them, though I haven’t seen one for a while now I’m sure they can still be found. Someone with a better head for maths and more modern computer graphics might be able to give more help on how to make one as its been ages since I played around with these sorts of graphics.
November 30, 2011 at 12:05 pm #1247369Sounds interesting ๐ gonna look it up thanks
November 30, 2011 at 5:21 pm #1247370I’ve found an C++ algorithim on the net (Mandelbrot set tutorial).
I’ve rewritten(translated rather) into python. If anyones interested ๐
import Image, ImageDraw
image = Image.new(‘RGB’, (600, 600))
ImageHeight = 600
ImageWidth = 600MinRe = -2.0
MaxRe = 1.0
MinIm = -1.2
#Calculate a sutible ‘max Imaginary number’ so it will be in scale
MaxIm = MinIm+(MaxRe-MinRe)*ImageHeight/ImageWidth
#Calculate the ‘range’ of the real/imaginary number per pixel width
#Eg if we are looking at a range of 10, divide by 100 will give us 0.1
#meaning each ‘0.1’ ranges maps to one pixel width/block
Re_factor = (MaxRe-MinRe)/(ImageWidth-1)
Im_factor = (MaxIm-MinIm)/(ImageHeight-1)MaxIterations = 2000
for y in range(0, ImageHeight):
c_im = MaxIm – y*Im_factorfor x in range(0, ImageWidth):
c_re = MinRe + x * Re_factor
Z_re = c_re
Z_im = c_im
isInside = True
for n in range(0, MaxIterations):
Z_re2 = Z_re * Z_re
Z_im2 = Z_im * Z_imif Z_re2 + Z_im2 > 4:
isInside = False
breakZ_im = 2 * Z_re * Z_im + c_im
Z_re = Z_re2 – Z_im2 + c_reif isInside == True:
image.putpixel((x,y), (100, 255, 128))image.save(‘test.jpg’)[/CODE]
May I add that I still have yet to figure out what it’s doing? ๐ getting there slowly…. grr[CODE]
import Image, ImageDraw
image = Image.new(‘RGB’, (600, 600))
ImageHeight = 600
ImageWidth = 600MinRe = -2.0
MaxRe = 1.0
MinIm = -1.2
#Calculate a sutible ‘max Imaginary number’ so it will be in scale
MaxIm = MinIm+(MaxRe-MinRe)*ImageHeight/ImageWidth
#Calculate the ‘range’ of the real/imaginary number per pixel width
#Eg if we are looking at a range of 10, divide by 100 will give us 0.1
#meaning each ‘0.1’ ranges maps to one pixel width/block
Re_factor = (MaxRe-MinRe)/(ImageWidth-1)
Im_factor = (MaxIm-MinIm)/(ImageHeight-1)MaxIterations = 2000
for y in range(0, ImageHeight):
c_im = MaxIm – y*Im_factorfor x in range(0, ImageWidth):
c_re = MinRe + x * Re_factor
Z_re = c_re
Z_im = c_im
isInside = True
for n in range(0, MaxIterations):
Z_re2 = Z_re * Z_re
Z_im2 = Z_im * Z_imif Z_re2 + Z_im2 > 4:
isInside = False
breakZ_im = 2 * Z_re * Z_im + c_im
Z_re = Z_re2 – Z_im2 + c_reif isInside == True:
image.putpixel((x,y), (100, 255, 128))image.save(‘test.jpg’)[/CODE]
May I add that I still have yet to figure out what it’s doing? ๐ getting there slowly…. grr
December 2, 2011 at 2:54 pm #1247371I’m wondering if fractal art plays a big part in milkdrop (winamps music visualator)…
As it doesn’t seem to be a very-resource hungry, and fractal math calculations is what’s behind it (I’m guessing).
December 2, 2011 at 5:18 pm #1247366@dubstep_joe 459754 wrote:
fractal math
I read that as Fractal Meth LOL … was thinking to my self … hmm I like the sound of that … will have to reaserch it some more see if it’s worth trying. :laugh_at:
December 4, 2011 at 9:15 am #1247372And we now have colour! Need to figure out how to zoom/move now ๐
Interestingly, the mandrelbot does not actually include the ‘colour’ parts. It’s only the blue bug structure.
We can however generate colour by exploiting the algorithm. And there is tons of ways to do it…There’s also other algorithms out there that generate different structures!
There even seems to be a image sharpening software (photoshop plugins) (Workflow Technique #028 @Digital Outback Photo) that uses fractals. Those results look amazing, and I’d say technically impossible unless they somehow figure out a ‘pattern’ that is on the image or something..:weee::weee:
:weee:
December 4, 2011 at 2:19 pm #1247365Have you every read ‘Chaos’ by James Gleick? I’m currently about halfway through – explains all about chaos theory and fractals, interesting stuff.
December 5, 2011 at 4:33 pm #1247373@cheeseweasel 459933 wrote:
Have you every read ‘Chaos’ by James Gleick? I’m currently about halfway through – explains all about chaos theory and fractals, interesting stuff.
No I haven’t I’ll try get it :D, thanks ๐
December 5, 2011 at 6:45 pm #1247367@cheeseweasel 459933 wrote:
Have you every read ‘Chaos’ by James Gleick? I’m currently about halfway through – explains all about chaos theory and fractals, interesting stuff.
I saw that when you was sorting out your bag today ๐
December 7, 2011 at 7:57 pm #1247374That book is amazing cheeseweasel and I’ve only started ๐ thanks..
-
AuthorPosts
- You must be logged in to reply to this topic.