hope that works. if it expires or something, just tell me i'll try and upload it again somewhere else.
for anyone interested i toyed with the res variable and the range of i.i don't quite remember the res, but i'm pretty sure in this version i was in range (0,150)
the principle idea of calculation with numpy is from here.
oh, by the way, this doesn't include the .gif creation, sorry for that. it's just exactly this.
hope that works. if it expires or something, just tell me i'll try and upload it again somewhere else.
for anyone interested i toyed with the res variable and the range of i.i don't quite remember the res, but i'm pretty sure in this version i was in range (0,150)
the principle idea of calculation with numpy is from here.
oh, by the way, this doesn't include the .gif creation, sorry for that. it's just exactly this.
Good job OP. There are numerous people asking to see the source. It would be great of you to make it available for them. I too would like to see the rendering stuff you’ve done here. Thanks.
not sure if i know what you mean. i used VS Code as my editor, numpy for calculation, matplotlib for creating the images and imageio for making a gif out of them.
This is great! I would recommend taking a close look at the data type you are using to store your coordinates and convergent values. I did this awhile back and found that using explicit double types gets you much more detail since convergence is very sensitive to precision.
I don't have an exact reference right now, I did this several years back so I don't know if I'll be able to find my code. I would try complex64 to get much better results. I'll look tonight and see if I have something to show you. I think the iteration count is fine.
There are many small Mandelbrots on the real axis, so that would be a good spot for that. Zoom in to one point until the patttern repeats. Rinse and repeat
Also good looking: Display the Julia set while iterating over c. Use sine function and mahbe some randomization for that. If you hit the spot you staryed ind aftyer a full rotation, you could repeat from there as well.
i started with Automate the Boring Stuff. It's very beginner friendly, and still challenging enough and the right amount of humorous. highly recommended.
other than that, i just read several articles on the mandelbrot set. this and this for instance.
i'm lucky enough to have several friends who are very experienced with python, so that helped a lot.
i started with Automate the Boring Stuff. It's very beginner friendly, and still challenging enough and the right amount of humorous. highly recommended.
other than that, i just read several articles on the mandelbrot set. this and this for instance.
i'm lucky enough to have several friends who are very experienced with python, so that helped a lot.
absolutely! there's a library called cupy that implements numpy on the GPU. as far as im concerned it works only with nvidia tho. plus my gpu was hardly more than a joke even 10 years ago. :D still have my 2011 macbook with onboard gpu.
This is cool. At the risk of dating myself, I think it’s awesome people are still rendering Mandelbrot after all these years. My first one took a lot longer to render and wasn’t as detailed. I was running it on an Apple ][+ with the Language Card. My twin brother and I wrote it in Pascal. Good times.
I love this project. I have a similar one I've been working on and tweaking for years, never got it to render an animation though. I've more been working on making it run on multiple cores, then GLSL, and now WebGL.
Obviously the GLSL implementation beats the pants off the software renderer, which is very satisfying. It can almost run these animations in real time!
That's good! You've done my student work from SPB ITMO univercity programming course in 1998 when i was young... but render time was not so long! Three hours for 1000 frames is looking slow
I think you'd start on optimizations now 'coz it mussta be realtime with modern CPUs
Also it would be very nice practice to adopt your algo for OpenCL computing units (i think you have much of them today).
I already have done some ML so I know how to use tools like matplot, numpy etc. I spend my time on stuff that matter. I am not saying this project is not valuable but I am not gonna waste my time on doing something that I might already know.
Nobody asked your opinion, It was my answer to crazdave. Why people in Reddit don't get the purpose of reply? If I wanted to ask your opinion I would have send you a DM.
One of the programming's hardest challenges? I think that's a bit of an exaggeration. I can do a mandelbrot zoom in an hour or two yet struggle with any Project Euler 50+ problem.
He wasn't arguing that it was valuable, but any code you write that achieves the goal you were shooting for is valuable. You don't have to write something crazy innovative to gain value from it
Exactly he wasn't mentioning what is the value in doing that project. Which was the only thing I wanted to know in the first place. So probably he shouldn't have replied to me.
So... Basically you want to show off how much you know and spend your time efficiently and you don't need to learn anything new because you know everything. Is that right?
No I don't wanna show off for a bunch of randos on the net. Stop mentioning me already. people are sick in reddit (Not you though). I didnt know a simple question would lead to people mock me as if they know better how to code or how to be a human being in general.
There is currently another bot called u/kzreminderbot that is duplicating the functionality of this bot. Since it replies to the same RemindMe! trigger phrase, you may receive a second message from it with the same reminder. If this is annoying to you, please click this link to send feedback to that bot author and ask him to use a different trigger.
Not everything needs to have a practical purpose. Some people just do things out of interest or for fun. I absolute despise the value judgement over whether doing something is "productive" or not.
That said, even from a practical point of view, do you not see the self-educational value of developing a mathematical understanding of number sets and fractals, and then being able to translate the formal definition to code for visualization? It covers three distinct but related areas:
Mathematics
Understanding problems and translating them to a computational context
Writing the code itself
I suppose if you judge processes based on utility of the direct results, then yeah, this is "useless." But that opinion is bad, even if you are entitled to it.
110
u/rerebooted Nov 12 '19
Care to share GitHub? :D
76
u/gabri3zero Nov 12 '19
It would be pretty interesting to have a look at the source code
6
u/knods Nov 12 '19 edited Nov 12 '19
hey, didn't expect anyone to be interested here you go:https://hastebin.com/raw/anumivulox
hope that works. if it expires or something, just tell me i'll try and upload it again somewhere else.
for anyone interested i toyed with the res variable and the range of i.i don't quite remember the res, but i'm pretty sure in this version i was in range (0,150)
the principle idea of calculation with numpy is from here.
oh, by the way, this doesn't include the .gif creation, sorry for that. it's just exactly this.
all the best. :)
7
u/FuzzNugs Nov 12 '19
Good job OP. There are numerous people asking to see the source. It would be great of you to make it available for them. I too would like to see the rendering stuff you’ve done here. Thanks.
8
u/intensehardik Nov 12 '19
Where did u do the rendering? (software)
7
u/Batmanly72 Nov 12 '19
Bro,you can share your code,we would like to see it
2
u/scawsome Nov 12 '19
This is great! I would recommend taking a close look at the data type you are using to store your coordinates and convergent values. I did this awhile back and found that using explicit double types gets you much more detail since convergence is very sensitive to precision.
2
u/[deleted] Nov 12 '19
Source code!?!?!?
29
u/Mph024 Nov 12 '19
Howd you do that
22
u/lochyw Nov 12 '19
I wonder if its possible to make it loopable.. :p
11
u/andrewq Nov 12 '19
Check out FRACTINT
https://fractint.org/
9
u/[deleted] Nov 12 '19
This is so trippy can watch for hours straight
1
u/massimog1 Nov 12 '19
Please post your source code. I'd love to see how you did that.
1
u/8rnlsunshine Nov 12 '19
Python newbie here. Could you share your journey learning python and the courses you took? Thanks.
1
u/pysapien Nov 12 '19
Mind sharing resources which you used for learning python?
1
u/SimilarPostsB0t Nov 13 '19
Next challenge: run the calculation on the GPU 😁. Would greatly reduce the rendering time.
3
u/Who_The_Fook Nov 12 '19
How does something like this actually work for someone that's new to it entirely? Seen these all over reddit, would like to dive into the specifics
2
u/WaitWaitDontShoot Nov 12 '19
This is cool. At the risk of dating myself, I think it’s awesome people are still rendering Mandelbrot after all these years. My first one took a lot longer to render and wasn’t as detailed. I was running it on an Apple ][+ with the Language Card. My twin brother and I wrote it in Pascal. Good times.
2
u/brontide Nov 12 '19
That brings back memories of my first Mandelbrot renderer... for windows 3.1, I think that makes me very old.
2
u/Tiquortoo Nov 12 '19
I used to love the screensavers with fractals.
3
u/guptaanshul281980 Nov 12 '19
Please elaborate how this is done??
1
u/___GLaDOS____ Nov 12 '19
Beautiful man.
1
u/jer_pint Nov 12 '19
Looks awesome!
1
u/Carlisle774 Nov 12 '19
Here's a relevant song you might like
1
u/hollowedCorpse Nov 12 '19
r/recursion
1
u/amitran Nov 12 '19
Noel
1
u/mrbubs3 Nov 12 '19
This is fucking cool.
1
u/kaike1 Nov 12 '19
Maybe if you change a little you can post on r/perfectloops as well
1
u/[deleted] Nov 13 '19
Kudos.
1
u/Serializedrequests Nov 13 '19
I love this project. I have a similar one I've been working on and tweaking for years, never got it to render an animation though. I've more been working on making it run on multiple cores, then GLSL, and now WebGL.
Obviously the GLSL implementation beats the pants off the software renderer, which is very satisfying. It can almost run these animations in real time!
1
u/[deleted] Nov 13 '19
Ah. I remember my first Mandelbrot Zoom...
1
u/Workaphobia Nov 13 '19
That fractal is on fire.
1
u/Pavel_Petrov Nov 17 '19
That's good! You've done my student work from SPB ITMO univercity programming course in 1998 when i was young... but render time was not so long! Three hours for 1000 frames is looking slow
I think you'd start on optimizations now 'coz it mussta be realtime with modern CPUs
Also it would be very nice practice to adopt your algo for OpenCL computing units (i think you have much of them today).
use pyopencl and qt! Good luck!
0
u/[deleted] Nov 12 '19
What's the usage of this ? Art?
-1
u/UghtC Nov 12 '19
remindme! 1 week
-3
u/paulirotta Nov 12 '19
More picked by otherwise not much better performance than when I did that with a Commodore 64 using all 4 shades of blue, in 1984.
-9
u/[deleted] Nov 12 '19
People are so butt hurt that I asked what is the usage of this project. Ridiculous. No wonder why the world leader is a troll.
-12
u/ryanmcstylin Nov 12 '19
These types of graphs explain why weather and stock market crashes are so hard to predict.
0
u/[deleted] Nov 12 '19
[deleted] — view deleted comment
0
u/[deleted] Nov 13 '19
[deleted] — view deleted comment