Simple Fractal rendering

  Рет қаралды 137,169

Pezzza's Work

Pezzza's Work

Күн бұрын

Github of the project github.com/joh...
Made using C++ and SFML

Пікірлер: 338
@OlofNisshagen
@OlofNisshagen Жыл бұрын
You're like a more math-focused Sebastian Lague, great content!
@Breuhh
@Breuhh Жыл бұрын
Exactly
@neon_Nomad
@neon_Nomad Жыл бұрын
Fractal worlds?
@יובלהרמן-ח2ד
@יובלהרמן-ח2ד Жыл бұрын
If we are already comparing I like this channel better! CPP and sdl all the way!
@EpicVideoGamer7771
@EpicVideoGamer7771 Жыл бұрын
@@יובלהרמן-ח2ד SFML not SDL
@duality4y
@duality4y Жыл бұрын
100%
@owlroseproductions8876
@owlroseproductions8876 Жыл бұрын
You are a gem in the programming space of KZbin. You've inspired a lot of other successful programmers on here and also me (just as a hobbyist, but still). Keep making what you love and we'll love it
@spaztor7723
@spaztor7723 Жыл бұрын
where does an idiot such as myself begin in making somthing like this, a hobby??
@owlroseproductions8876
@owlroseproductions8876 Жыл бұрын
@@spaztor7723 well, as a starter for visualizations like this I recommend processing/p5.js. it's not the fastest, the sturdiest or prettiest, but the ease of use is unparalleled. I have spent countless hours in it and I've loved every second
@Jake_Gotthard
@Jake_Gotthard 10 ай бұрын
@@spaztor7723i dont even know what “constant;” does but i have adhd, autism, the determination of someone trying undertale for the 1st time and doing true genocide, an ungodly amount of love for cool stuff like fractals, a BEAST of a computer and i am going to do this.
@karolciszek8550
@karolciszek8550 Жыл бұрын
That zoom with the music was just magical
@thecakeredux
@thecakeredux Жыл бұрын
Writing a fractal render was one of my favorite projects of all times. I hope you making this as accessible as you did with this video opens allows others to experience the awe when their code creates beauty in front of their eyes.
@_miobrot_603
@_miobrot_603 Жыл бұрын
In a highschool programming class right now, and seeing this has raised motivation to the max. Still going over the basics (in python), but one day I will make something like this. Thank you Pezzza for the inspiration and I hope my comment is meaningful in some way.
@therealsemechki
@therealsemechki Жыл бұрын
Good luck on your journey! If I were to make a suggestion, use a language that supports multithreading, like C++! Or, you could learn a shader language🙂 (GPUs aren't *quite* as bad at using double-precision as it might sound, although they are still pretty slow at it. There are techniques to mitigate this, though!)
@karolciszek8550
@karolciszek8550 Жыл бұрын
You could absolutely plot a Julia set like this in Python. It would be a great project for a high school student. Good luck.
@blaze_arch6864
@blaze_arch6864 Жыл бұрын
Try Nim language Nim has syntax of Python And speed of C
@josephastier7421
@josephastier7421 Жыл бұрын
Go for it! The output of these fractal images looks really complex, but the math is simple. Some of the biggest bang for the buck is to be had displaying a color palette instead of a grayscale gradient. Then your renders will come to life.
@chochochon5464
@chochochon5464 Жыл бұрын
Since I was a kid, I've been fascinated by the fractals... I could spend HOURS watching zooming videos about fractals XD
@brayden1562
@brayden1562 Жыл бұрын
Came for the programming. Stayed for the existential crisis.
@fabienherry6690
@fabienherry6690 Жыл бұрын
That is fascinating to watch ! I love how the background of the fractal is still indicating some sort of position despite the infinite similarity
@mmd-wt5eq
@mmd-wt5eq Жыл бұрын
The more fascinating thing is your video. Thanks so much for you awesome content.
@PezzzasWork
@PezzzasWork Жыл бұрын
Thank you!
@dasjulian3
@dasjulian3 Жыл бұрын
Fractals are quite nice.
@stchannel3648
@stchannel3648 Жыл бұрын
Yes.
@PezzzasWork
@PezzzasWork Жыл бұрын
For sure
@dacolib
@dacolib Жыл бұрын
Definitely
@marcusmelander8055
@marcusmelander8055 Жыл бұрын
Indeed.
@stevenbmeza
@stevenbmeza Жыл бұрын
absolutely
@jonasdaverio9369
@jonasdaverio9369 Жыл бұрын
If you want arbitrary precision while using your GPU, you can use perturbative techniques by computing only a few points with high precision on your CPU, and then computing all other points in low precision on the GPU. Choosing the points is tricky, though
@AiRde
@AiRde Жыл бұрын
Yes this is the methode use by Kalles Fraktaler, an amazing fracal render
@jonasdaverio9369
@jonasdaverio9369 Жыл бұрын
@@AiRde I once tried to implement but the result was awful and glitchy. I would really have to make something smarter to pick the point.
@thingthingthingthingthingthing
@thingthingthingthingthingthing 3 ай бұрын
I used that for rendering Mandelbrot set, but only the center part which takes the most time
@2_Elliot
@2_Elliot Жыл бұрын
Criminally underrated, your content always amazes me in its complex simplicity. Keep it up!
@jaydevsr2536
@jaydevsr2536 Жыл бұрын
Your videos are always inspiring. I remember the time I was myself trying to render Julia sets, I was really happy to see the results. I hope other people try this as well as this is very rewarding!
@crackedemerald4930
@crackedemerald4930 Жыл бұрын
Because of the way our brain processes grays, the fractal had a lot of detail on the borders of the greys that made them very interesting.
@Maus_Indahaus
@Maus_Indahaus Жыл бұрын
The only thing missing from this masterpiece is a quick zooming out at the end to show everything in its full glory
@ajs1998
@ajs1998 Жыл бұрын
I love this, man. Programming is the coolest hobby ever and I'm so happy to be here. Awesome video, keep it up!
@spudd86
@spudd86 Жыл бұрын
I have written a program that renders Julia Sets by using texture mapping to do the inverse iteration method. Basically if you compute the inverse of the function and map the entire plane backwards it will eventually converge to the Julia Set. I'm using this for a music visualizer so we blend the frames together and the Julia Set emerges as the points with colour. I have video of it running. I blends a sort of oscilloscope visualization on top of the frame and then uses that as input to do the Julia Set inverse iteration in the next frame. You can see how the copies of the scope shrink and copy around to build up the shape of the set. The nice thing about doing the inverse iteration with texture mapping is that you *actually* compute the forward function to determine the source pixel for the texture map operation, the texture mapping to the output effectively makes it doing the inverse. The other nice thing about this is that precision isn't really critical and GPUs are REALLY good at texture mapping. I have written the same thing for both CPU and GPU (via OpenGL 2.1, so it runs on a potato), can't do a zoom though, the algorithm requires you to keep an image of the entire circle that the Julia Set might be in (that is the same circle you use as the escape radius). I have explained this poorly I know. Video of it running: kzbin.info/www/bejne/hnWUi5-hg8tqfbM It's open source so code is at: github.com/Spudd86/julia-vis
@jonasdaverio9369
@jonasdaverio9369 Жыл бұрын
Oh, you didn't write in Julia... What a missed opportunity :p
@spudd86
@spudd86 Жыл бұрын
@@jonasdaverio9369 Julia didn't exist when I started...
@kalelsoffspring
@kalelsoffspring Жыл бұрын
I've always seen Mandelbrot used for these types of videos, very neat to see another type used. The difference in where the pixel coordinates go in the looping equation seems to be the only real difference, being C for Mandelbrot, and Z_0 for this. Very nice video
@tjavado
@tjavado Жыл бұрын
this is actually a julia set of the mandelbrot iirc
@kalelsoffspring
@kalelsoffspring Жыл бұрын
@@tjavado yeah, that's what was said in the video, I just thought it was a nice alternative. Tbh I probably would've clicked off if it was Mandelbrot again :P
@vitalys5076
@vitalys5076 Жыл бұрын
After watching the video this comment section is continuously zooming out for me. My eyes and brain can't keep up with fractals!
@doggo9757
@doggo9757 Жыл бұрын
Came across this channel a few days ago, and I must say this is one of the best channels for programming and math. I have an exam, after that, I plan to binge watch all you videos. The Cool Chicken is a very cool guy.
@tm001
@tm001 Жыл бұрын
The one thing that keeps blowing my mind every time in his videos is how he can optimize the shit out of the rendering time with just "simple" logic and few lines of code, and then he basically says "I can optimize it even more but I don't want to" 😎
@Ener-G
@Ener-G 7 ай бұрын
Thank you so much for this! I'm in a rush but I wanted to express that your simple, straightforward explanation and approach to fractal rendering has opened my mind to the possibility of doing something similar myself! I've been hoping for this knowledge for a long time. Thank you so much for creating this video as a vessel by which I can begin my journey of understanding!
@WorldWeaver
@WorldWeaver Жыл бұрын
Kid: "What if it's made of dragons? And the dragons are made of even SMALLER dragons? And those are made of even SMALLER dragons? And it's just that, forever?" Parent: "Fractal." Kid: :O I think we've all asked the "what if it's made of more of it" question before.
@novygaming5713
@novygaming5713 Жыл бұрын
There's another cool fractal you can make called the mandelbrot set using the same equation. You're currently rendering julia sets. For julia sets, you set c to a fixed position on the plane while changing z for every pixel. Instead for the mandelbrot set, you just set c so it also changes with z. I personally think the mandelbrot set looks way better than the julia sets since it's a combination of all possible julia sets for every pixel.
@crakhaed
@crakhaed Жыл бұрын
Lol I thought this was a mandelbrot set until this comment 😂 ty for teaching
@kubstoff1418
@kubstoff1418 Жыл бұрын
That was a very intriguing dive into the subject, whenever you post something I'm immediately hooked to try that myself. Great Work as always!
@wallywutsizface6346
@wallywutsizface6346 Жыл бұрын
The fractals here are Julia Sets. If anyone following along wants to generate the Mandelbrot set instead, it’s quite easy. Instead of an arbitrary C value, for each pixel, set C equal to the complex coordinate of that pixel. So, instead of Z(n+1) = Z(n)^2 + C, replace C with Z(0).
@Micro-Moo
@Micro-Moo 7 ай бұрын
It is a really nice idea to perform the sub-pixel computations.
@puddleglum5610
@puddleglum5610 Жыл бұрын
You can also pull out an extra 4x to 8x performance (depending on your cpu) by using SIMD instructions instead of your normal floating point math. It’s a lot of effort to manually code with SIMD instructions, but worth it for the better perf.
@Henrix1998
@Henrix1998 Жыл бұрын
There's some compiler flags that probably could make use of SIMD without any extra effort
@puddleglum5610
@puddleglum5610 Жыл бұрын
@@Henrix1998 unfortunately, its too complex for compilers to translate into SIMD instructions as you have to change the code logic quite a bit from regular Mandelbrot code in order to make full use of the SIMD instructions
@user-sl6gn1ss8p
@user-sl6gn1ss8p Жыл бұрын
@@puddleglum5610 Maybe by creating a "computeNextFor8pixels" which does just that (taking also 8 times the input and returning a struct or something like that), and turning optimizations up? I've had good luck doing that with random number generators (like pcg64), don't see why this should be any harder for the compiler.
@INT41O
@INT41O Жыл бұрын
@@user-sl6gn1ss8p Just use SSE/AVX intrinsics, not too complicated in this case. If you have to rewrite the code just for the compiler to better optimize, you might as well optimize it manually.
@user-sl6gn1ss8p
@user-sl6gn1ss8p Жыл бұрын
@@INT41O fair enough, I'll look into it
@RayznGames
@RayznGames Жыл бұрын
I'm amazed about how far double precision goes In comparison to float. Great content!
@hippopotamus86
@hippopotamus86 Жыл бұрын
Perfect. Love your work.
@Msatthew
@Msatthew Жыл бұрын
Well, that last bit was existentially terrifying. Bravo!
@CelestialityRW
@CelestialityRW Жыл бұрын
Videos like this make me want to learn C#
@novygaming5713
@novygaming5713 Жыл бұрын
A quick tip for getting more detail in the fractal: instead of making the gradient have more range, you can just use a mod function or a sin function to color it based on the iteration count. Kind of like how Wikipedia does it.
@firkinflamer8604
@firkinflamer8604 Жыл бұрын
My favorite channel. Every video you post makes me at least raise my eyebrows
@BuffRobotiX
@BuffRobotiX Жыл бұрын
This is a great example of why double precision is overkill for most applications.
@84homey
@84homey 11 ай бұрын
Beautiful fractals. Beautiful numbers.
@JohnR436
@JohnR436 Жыл бұрын
I love this!!! Great videos. Love the easy to follow code examples & visual output (like the multithreaded rendering), very cool!
@Tann114
@Tann114 Жыл бұрын
Excellent as always Pezzza! Amazing coincidence that there's a chicken in the fractal too.
@PezzzasWork
@PezzzasWork Жыл бұрын
Yes I was very surprised myself !!
@absence9443
@absence9443 Жыл бұрын
Definitely need more simplified coding channels like these!
@tonyb5536
@tonyb5536 9 ай бұрын
This is one of the coolest things I have ever seen.
@chonnberdosh3834
@chonnberdosh3834 Жыл бұрын
In the final zooming-in-sequence the spot seems to be picked very nicely to allow a nice view the entire time. If one ends up in a dark-spot or bright-spot I think zooming in further would be pointless. As I could not see any camera-movement my question is: How does one pick such a spot? Is it just a bit of trying-around by hand until it fits or is there a more clever way to do it?
@eugienepeters1608
@eugienepeters1608 Жыл бұрын
Thank you so much for making this video. I was always interested in making a fractal render but just didnt know what to do or the steps involved, I felt paralysed. This was really helpful. I need to learn to problem solve on my own too without being baby fed :)
@sickbale
@sickbale Жыл бұрын
That's pure madness. I love it.
@doom5747
@doom5747 4 ай бұрын
looking at this video motivated me to give this a try in python, fractals are just amazing....
@crakhaed
@crakhaed Жыл бұрын
Very beautiful video! All the aspects were so well done. Especially underrated is the sound mixing and the music that follows the camera down at the end. Thank you very much for making this! For 11 minutes of watch time it probably took much longer than that to make and produce. I appreciate the time and effort you took.
@saniancreations
@saniancreations Жыл бұрын
You really had me for a second there with the logo showing up at the end.
@PezzzasWork
@PezzzasWork Жыл бұрын
:D
@guigazalu
@guigazalu Жыл бұрын
I love how the video takes it's time at around 1:25.
@imnotjesper
@imnotjesper Жыл бұрын
I think basically everyone here knows about the Mandelbrot set and Julia sets, but those who don't should check out Numberphile's video about it with Ben Sparks. It's amazing.
@ahuman32478
@ahuman32478 Жыл бұрын
Hello Pezza. I built the code you provided on github and got an executable. However, when I try to run the executable, it says I am missing an SFML DLL. I didn't see any DLL included in the github repository. Am I supposed to download the DLL separately?
@multiarray2320
@multiarray2320 Жыл бұрын
is it true that there is a chicken at that point in the fractal, or have you edited it in?
@d00dEEE
@d00dEEE Жыл бұрын
I believe it's chickens all the way down.
@olbluelips
@olbluelips Жыл бұрын
I never get tired of fractals!
@clementdato6328
@clementdato6328 Жыл бұрын
Impossible. I don't believe you can zoom in and actually find a Pezzza's Work icon in the Julie Set rendering. And it prints out exactly "Thanks for watching!" right when your video ends. I refuse to believe.
@QuentinVaresano
@QuentinVaresano Жыл бұрын
Your videos go better and better, please never end
@blumbomium
@blumbomium Жыл бұрын
Might have been the quickest 11 minutes of my life
@Dricou61
@Dricou61 11 ай бұрын
It could be so fun to build a game in which you control a character that coule navigate into fractale structures
@brynshannon6692
@brynshannon6692 Жыл бұрын
the infinity of cosmic shrimp
@Graverman
@Graverman Жыл бұрын
love this content! Keep improving and it’ll be amazing. Also love when you show all the optimizations you’ve made and their downsides
@bananadog111
@bananadog111 Жыл бұрын
i love your videos and i'd like to start using c++ as well, but i can't decide which ide would work best, any ideas?
@BarneyCodes
@BarneyCodes Жыл бұрын
Great video! I've made a fractal renderer using a shader in WEBGL (there's a video on my channel if you're interested) and ran into the same issue of not having double precision, I'd love to find a way around this. I haven't tried animating my fractals yet! I'll have to try it, thanks for the inspiration!
@kaiprzadka6896
@kaiprzadka6896 Жыл бұрын
Is there anything like fixed precision? (Python for instance has the decimals module for that)
@BarneyCodes
@BarneyCodes Жыл бұрын
@@kaiprzadka6896 Not as far as I can tell. Since I made mine with JavaScript, and therefore WebGL, the specification for GLSL is pretty bare bones (it's not even required by the spec to have high-precision floats!). I'll have to look into it further though, thanks for the lead!
@ladyravendale1
@ladyravendale1 Жыл бұрын
@@BarneyCodesMy first instinct is to preform some terrible bodging with frankensteined ints or arrays to make a very slow but functional high precision number.
@BarneyCodes
@BarneyCodes Жыл бұрын
@@ladyravendale1 I had wondered about trying that too, even just somehow trying to use two floats for each number (two floats == double precision right??).. Haven't actually attempted it though. Let me know if you give it a go!
@ladyravendale1
@ladyravendale1 Жыл бұрын
@@BarneyCodes I most likely wouldn’t use two floats, instead just a bunch of ints. I can’t really imagine how you would string together floats for higher precision since by nature the decimal point floats, and since you would have 2+ I don’t really see how that would work. A big issue with most non int numerical classes in JS type languages is a lack of easy bit manipulation/reading. At least to my mind it would be far easier to use 1 int as an x bit mantissa, then however many more ints as the actual value. Write some bastardized version of the normal float implementation, treating your ints as registers, and there you go.
@Syp64
@Syp64 Жыл бұрын
Thanks for sharing this. Hope this inspires future talent!
@banditbloodwyndevs8782
@banditbloodwyndevs8782 Жыл бұрын
I hope it wasn't asked or shown before: How are you writing your engine? Which language do you use? C? C++? Rust? C# maybe? And what graphics API do you use? OpenGL? DirectX? Vulkan? I'm asking because maybe I will try to write my own engine just for fun and I'm looking for some examples how others tackle this.
@bergolho
@bergolho Жыл бұрын
Congratulations on this awesome video man!
@killyGHILLIE
@killyGHILLIE 10 ай бұрын
This is cool god teir maths. I wish I listened more in school and now I need to become a computer programmer!
@wglint7509
@wglint7509 Жыл бұрын
Hello i love your video and i'm asking what did you use for make animation like 0:59 moment of the video ?
@daphenomenalz4100
@daphenomenalz4100 Жыл бұрын
What softwares and modules do you use for visualizing? I know C++ but never knew how to do stuff like this. Can you make a tutorial video to get it to stuff like this. PLS. Really love your videos. I can probably do this in JS tho pretty hard (i am still learning), by learning the concepts used in this video. But i want to know how to do it in C++ My laptop will prolly blow up tho xD, i don't have any GPU ad its not a gaming laptop lol
@INT41O
@INT41O Жыл бұрын
SDL2 is quite simple to use (it's even in the name)
@daphenomenalz4100
@daphenomenalz4100 Жыл бұрын
@@INT41O thnx
@superblocker3343
@superblocker3343 Жыл бұрын
What rendering library do you use for your projects? Or, if you don't use a library, how do you do it?
@nikitademodov3446
@nikitademodov3446 Жыл бұрын
Nice video! But I don't understand why you resorted to CPU execution.. Most GPUs actually support double precision (at least all that support OpenGL 4.0.0 [natively! looking at you, Apple M1 :/]). I wrote a clumsy unoptimized fractal renderer once too and it ran flawlessly on GPUs (smooth motion/zooming) with full double-precision (max zoom ca. by factor one quadrillion) and I'm sure there's some optimizations that would make it much better if I had the time (and intelligence) to implement them. Anyways love how polished yours turned out! Congrats on (almost) 100k!
@mathpuppy314
@mathpuppy314 Жыл бұрын
May I ask what platform/language you do all of this in? I really love your projects and ideas and I want to try my hand at some of my own but I don't know where to start.
@DanDeebster
@DanDeebster Жыл бұрын
Judging by the variables being initialised like i{0}, it's C++
@MxMxffin
@MxMxffin Жыл бұрын
i made a program in 9th grade creating the mandelbrot set using 255 iterations. it had terrible performance but i liked it. made it with turbo pascal back then
@zetmor1337
@zetmor1337 Жыл бұрын
You can use that "smooth_iteration" as an elevation, and render it in (false) 3D
@raushankumar2336
@raushankumar2336 Жыл бұрын
This is absolutely dope👌
@mathman0569
@mathman0569 Жыл бұрын
I love your content I hope you get more subs and such and I hope to watch your wonderful channel grow
@PezzzasWork
@PezzzasWork Жыл бұрын
Thank you! I’ll do my best :)
@thebil
@thebil Жыл бұрын
Perhaps double precision could be extended using some clever algorithms such as Kahan summation?
@cmilkau
@cmilkau Жыл бұрын
Got a loading spinner right at the RIP float moment, which was quite funny xD
@Luke-me9qe
@Luke-me9qe Жыл бұрын
Well can you zoom out as well? All fractal videos always zoom in...
@petepete4981
@petepete4981 Жыл бұрын
COOL stuff!!!! Tried to compile your project, but where to get /res? there was a cmake error...
@PezzzasWork
@PezzzasWork Жыл бұрын
There was indeed a problem with the cmakelists, should be better now
@mayankthakur2158
@mayankthakur2158 Жыл бұрын
I've experimented a bit with this myself, but i haven't been able to figure this out: as you zoom more and more, the "contrast" of the image seems to rise. in the beginning of the animation, there are gradients of colors which lead to the sections of white in the image. however when you zoom (especially towards the end) there isn't any gradient anymore, it's just blue. any reason why that might be ?
@DRUYD
@DRUYD Жыл бұрын
wonderful content as always, is so well explained it seems super easy, barely an inconvenience.
@guigazalu
@guigazalu Жыл бұрын
OBS video transition examples while explaining the Xaos method? So cool!
@NightmareCourtPictures
@NightmareCourtPictures Жыл бұрын
Man what is the music at the end?
@АлександрТарасов-щ1г
@АлександрТарасов-щ1г Жыл бұрын
Кажется, я заглянул в бездну.
@don.3s
@don.3s Жыл бұрын
I wouldn't be amazed if fractals had something to do with dna and everyone is like a slight variation of a different fractal
@toiletry
@toiletry Жыл бұрын
this video inspired me to create a small fractal project of my own. i have done all of the logic which is quite simple for both mandelbrot and julia mappings, but my performance is absolutely horrible even with the most basic renders, for instance at 50 max iterations and a 800x800 window i need 250ms for each frame. This gets exponentially worse as i start to zoom in, like 800ms for a portion of coordinates that have 50 iterations. Do you have any advice? By the way its not a rendering issue, as i tested it and the vast majority of the time comes from the computation
@juh9870_projects
@juh9870_projects Жыл бұрын
Is that red halo around white dots on 10:05 a compression artifact, or is there actually a low iteration count in there?
@Talent_Unlimited
@Talent_Unlimited Жыл бұрын
Those areas have a low iteration cuont...
@witherpunked5567
@witherpunked5567 Жыл бұрын
One of your last video's got me thinking. What if you could create an AI commander of an army, which commanded troops to fight in medieval stile battles, and see what strategies each commander AI come up with. If only I knew how to code I would try but I don't really know where to start.
@AndyThomasStaff
@AndyThomasStaff 6 ай бұрын
At 3:24 you take the square root of the modulus of a vector2 and return that to a float. This math is impossible. What are you attempting to do there?
@shadow-ht5gk
@shadow-ht5gk Жыл бұрын
Your English has improved so much since the phalanx video
@Pyrografpl
@Pyrografpl Жыл бұрын
Nice! I always wanted to code my own fractal diver
@Pyrografpl
@Pyrografpl Жыл бұрын
You inspired me that much so I just finished my Julia explorer in C++SDL. It is 1am 😅 with 16 threads on my i7 6gen it is not super fast. I have idea of caching images and showing them until next frame is finished being rendered. Bit it wont help with animated fractals.
@specific-solutions
@specific-solutions Жыл бұрын
Have you looked into using perturbation to eliminate the float issue? I was able to build simple cpu and gpu renderers, but was not able to follow the perturbed maths to get that buttery smooth deep rendering
@Veptis
@Veptis 9 ай бұрын
By rendering 16 samples, its theoretically just 4x the resolution and then sampled down. So arent you rerendering a lot of pixels by "zooming" in that you already know? Could there be efficient cashing to reuse old samples in areas with low variance in those samples? Meaning they are unlikely to reveal new information by sampling finer/zooming in
@masterfail8450
@masterfail8450 Жыл бұрын
Hey, tu utilises quoi pour enregistrer le tableau de données en une image ? J'ai fait le même projet en python et j'aimerais passer en C pour aller plus vite mais je le trouve rien sur comment créer une image/vidéo à partir de tableaux... Super vidéo btw 😉
@SoftYoda
@SoftYoda Жыл бұрын
Would you go much deeper with Octuple-precision floating-point format
@mayankthakur2158
@mayankthakur2158 Жыл бұрын
absolutely amazing video, very cool stuff !!!❤️
@Fine_Mouche
@Fine_Mouche Жыл бұрын
3:23 : what is i, ? because there is no 'i' somewhere else in this snippet. You maybe mean 'iteration' (but it's actually 'i' in your github : `return static_cast(i) - static_cast(log2(std::max(TFloatType(1.0), log2(mod))));`
@PezzzasWork
@PezzzasWork Жыл бұрын
Yes it’s a typo, it should be iteration
@pomatuchto
@pomatuchto Жыл бұрын
Could you explain the smoothing operation you applied at 3:17? I can't understand how it works. What is "i"character in expression "float(i)"? What does twice applied log2 stand for?
@michaeldamolsen
@michaeldamolsen Жыл бұрын
I think float(i) is a typo, it should probably be (float)iterations. The log2() is the logarithm in base 2 rather than base 10: log2(x) = log(x)/log(2). There is a Wikipedia article called "Plotting algorithms for the Mandelbrot set" which explains the smoothing in the section titled "Continuous (smooth) coloring". (I didn't post a direct link, because external links are often held for review or blocked.) Also, in stackoverflow question 369438 someone claims that for Julia sets there is a different formula for smoothing the escape speed, you might want to try that for comparison.
@pomatuchto
@pomatuchto Жыл бұрын
@@michaeldamolsen thank you
@shrimpoffthebarbie
@shrimpoffthebarbie Жыл бұрын
Not giving yourself enough credit by saying it's simple. Great work. Staring into infinite similarly. Love fractals and will get round to trying program some for myself.
@michaellundgren6949
@michaellundgren6949 Жыл бұрын
I feel like you made this whole video so you could put the chicken at the bottom of the fractal.
@graham8316
@graham8316 Жыл бұрын
would be a good explanation of why double precision isn't necessary in most situations
@zelimirfedoran9720
@zelimirfedoran9720 Жыл бұрын
Awesome! I’d love to see this in 3d next 😅
@JakeSeeber
@JakeSeeber Жыл бұрын
Beautiful work, thank you for the video pezzza
How to Generate Fractals? ❄️ (in French but subtitles)
18:30
DIMENSION CODE
Рет қаралды 74 М.
How Particle Life emerges from simplicity
10:16
Tom Mohr
Рет қаралды 355 М.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 31 МЛН
Like in a dream - 3D fractal trip
4:35
bib993
Рет қаралды 3,5 МЛН
Creating a Space Invaders clone using my C++ engine and SFML
11:58
Pezzza's Work
Рет қаралды 38 М.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 195 М.
The Chaotic Beauty of the Double Pendulum Fractal
3:37
Nicogs Playground
Рет қаралды 26 М.
What's so special about the Mandelbrot Set? - Numberphile
16:53
Numberphile
Рет қаралды 2,4 МЛН
How to train simple AIs to balance a double pendulum
24:59
Pezzza's Work
Рет қаралды 266 М.
How to Make 3D Fractals
7:48
CodeParade
Рет қаралды 1,6 МЛН
Decoding The Mandelbrot Set: Math’s Famed Fractal
8:08
Quanta Magazine
Рет қаралды 222 М.
Adding SEX to my video game (evolution simulation devlog 4-3)
15:14
Fractals are typically not self-similar
21:36
3Blue1Brown
Рет қаралды 4 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН