Coding Math: Episode 35 - Intro to Fractals

  Рет қаралды 43,080

Coding Math

Coding Math

Күн бұрын

Пікірлер: 42
@EntangledFrequency
@EntangledFrequency 8 жыл бұрын
exactly what I'm looking for. Very clearly explained and code is good.
@israelRaizer
@israelRaizer 10 жыл бұрын
Good to know the channel is back
@danielm3977
@danielm3977 4 жыл бұрын
Pure beauty, I got a reward in high-school( more than 15 years ago), researching about Fractals and Chaos theory. Love it!
@georgeshady1999
@georgeshady1999 10 жыл бұрын
Sick video . I thought I was the only one so fascinated with fractals
@Polaroidon
@Polaroidon 10 жыл бұрын
Yes! I've always had a huge interest in fractals, just never was able to figure out how to code them or anything fun. I really hope you put out a good number of minis on this like you said! Thanks as always!
@Mishalka2013
@Mishalka2013 3 жыл бұрын
That's what I was looking for, great video. The way you produce fractals is absolutely easy, but was absolutely unseen to me before I watched it. I think almost everything works this way. I also have seen that some people describe fractal producing as transformations with matrices, which i think are nonlinear, now I think I understand this too and can code it.
@simonmultiverse6349
@simonmultiverse6349 3 жыл бұрын
10:20 (approx) You're using trigonometric functions to compute angles. It would be easier if you used a 2x2 matrix to do rotation and shrinking, because this would be quicker than trigonometric and inverse-trigonometric functions. Also, a matrix will do the rotation and shrink _simultaneously_ . This would compute all fractals of this kind, i.e. fractals made of multiple smaller copies of themselves. IN ADDITION, you can make the matrix reflect, so some of the small copies of the whole could be reflected if you want.
@sciboy123
@sciboy123 3 жыл бұрын
You can also draw the Sierpinski triangle very easily iteratively by plotting the orbit of a point. The process is as follows: take a random point p0 on the plane, set up the points of an equilateral triangle ABC. Pick one of the three triangle vertices randomly and move p0 halfway to that point (calculate its distance vector and divide by 2). If you repeat this process picking one of ABC randomly you eventually get Sierpinski s triangle.
@rockysage7760
@rockysage7760 3 жыл бұрын
Thanks man. Appreciate it. Exactly what I was looking for.
@lucaug10
@lucaug10 10 жыл бұрын
That was fantastic, thank you for your videos. Really looking forward to more fractals.
@rodrigod5625
@rodrigod5625 6 жыл бұрын
very good,I'm going to buy your book , it looks interesting :3 congratulations
@tanmayg7824
@tanmayg7824 6 жыл бұрын
You can use the with(context){...} function to reduce the work!!
@alexg4411
@alexg4411 8 жыл бұрын
OMG O_O so cool! Thanks! I would love to see more!
@WeTheWounded
@WeTheWounded 6 жыл бұрын
"Is that a Fractal?" No. That is the Triforce.
@leonli5067
@leonli5067 8 жыл бұрын
wow, this is really cool, thanks a lot.
@mickyr171
@mickyr171 6 жыл бұрын
Could we consider the points between 1 and 0 to be a fractal? there are infinite many of them and they all begin with 0. so are self similar
@oldjd7745
@oldjd7745 9 жыл бұрын
Have you considered addressing a video on lacunarity
@ReubenAStern
@ReubenAStern 7 жыл бұрын
Ok, I'm not working along with you, but this actually makes sense (Even though I wasn't taught trig, at school... guess I better learn it)
@jontis96
@jontis96 10 жыл бұрын
Very good video as always! But what's actually happening in the last sierpinski animation? Looks like it's rotating around it's Y-axis, whilst bending spacetime... I am assuming you are using some sinusoidal animation on pA, pB, pC?
@KeithPeters
@KeithPeters 10 жыл бұрын
yeah, you're pretty much spot on there. the code is in the github repo as always. github.com/bit101/codingmath
@KeithPeters
@KeithPeters 10 жыл бұрын
Basically, I just wondered what would happen if the mid points were not exactly half way, but some other percent. Then what if that percent was moving? Then, what if that percent were different on the x and y axes? I had no idea it would come out like that. Nice surprise.
@redgray9801
@redgray9801 10 жыл бұрын
Wow! this is very nice topic one of my favorite FRACTALS. thank you for covering this too in coding math. I really like it. Am, are you planning to cover WebGL here too?
@KeithPeters
@KeithPeters 10 жыл бұрын
I'm really only planning on covering pure mathematical topics here, avoiding specialized libraries, frameworks, etc. I'm just using JS and Canvas because JS has kind of become the "lingua franca" of programming languages. But I wouldn't totally rule out doing something with WebGL some time in the future.
@lucasmachain
@lucasmachain 8 жыл бұрын
Keith I really admire you
@theriffguy8237
@theriffguy8237 2 жыл бұрын
And it all began with a² + b² = c² and philosophically enshrined as, As Above, So Below. Later, As Within, So Without. Now. Fractals. Addendum: Euclid never put the 2, 3 or 4 on the Triangle, they were added. Pythagoras knew it too.
@mikeseely5953
@mikeseely5953 5 жыл бұрын
i need that. book
@bluestar-7
@bluestar-7 9 жыл бұрын
amazing !!
@ollllj
@ollllj 8 жыл бұрын
pretty please do an example for "raymarching of signed distance fields that are defined by 3d-fractals" it can relatively easily be done in realtime in webgl, even with infinite reflections on surfaces that are close to the camera (or reflections that are still seen as being close enough to the camera) (and that have not too varying normals nearby to not distord the reflection too much). an opensource template for raymarching trough signed distance fields in webgl is github.com/nical/GLSL-Raymarching and you basically just define a 3d fractal deformation of a signed distance function to create a fractal 3d signed distance field. many youtube videos showcase results, but they are likely prerendered. with a few tweaks and loss of detail further from the camera it can be sone in realtime on hardware that is not younger than 2011, mostly because extended sse-like instructions for parallel processing were too bad for raymarching prior to 2007.
@KeithPeters
@KeithPeters 8 жыл бұрын
+ollj oh you know way more about this than I do. go for it! :)
@coleraby
@coleraby 8 жыл бұрын
+ollj oh you really should check out shadertoy.com, if you have not stumbled across that yet... e.g. check out www.shadertoy.com/view/XljSWK There are a huge amount of WebGL-examples to dive into and learn from.
@coleraby
@coleraby 8 жыл бұрын
+Keith Peters you might want to look into shadertoy.com too. One can really go insane with motion graphics there. Since I not always like having to mess around with the browser, I created a desktop variation of ShaderToy (launchpad.net/toyshader), which gives you a full OpenGL-environment, but allows one to take examples from ShaderToy and drop them into ToyShader almost 1:1.
@coleraby
@coleraby 8 жыл бұрын
+Keith Peters In terms of interactive fractals this will probably provide some fun... www.shadertoy.com/view/Xs3XWH (LMB-drag around the madelbrot-set :)
@mutiaatika548
@mutiaatika548 7 жыл бұрын
what software you use to make this fractal??
@LlewellynvonHellen
@LlewellynvonHellen 7 жыл бұрын
JavaScript. He used JavaScript to make this fractal.
@KeithPeters
@KeithPeters 7 жыл бұрын
It's true.
@jim0_o
@jim0_o 10 жыл бұрын
Very cool, what are some cool uses (except for being pretty to look at) ? I'm not saying it has to have more of a use, I'm just assuming this has one.
@KeithPeters
@KeithPeters 10 жыл бұрын
en.wikipedia.org/wiki/Fractal#Applications_in_technology Lots of uses in various fields of technology. As for everyday programming, useful in landscape/terrain generation or level design in games, or coming up with patterns that are not completely predictable, but not totally random either.
@jim0_o
@jim0_o 10 жыл бұрын
Keith Peters nice, watching your Vimeo video at the moment, this stuff is pretty cool.
@CIorox_BIeach
@CIorox_BIeach 4 жыл бұрын
I gave exactly 0 shits about coding until now.
@ryanfuxa6738
@ryanfuxa6738 5 жыл бұрын
"Koch Snowflake"
@satina1169
@satina1169 4 жыл бұрын
can't I just use if else if else if else if else if else if else if else ... like yanderedev
@davesmithSFCA
@davesmithSFCA 7 жыл бұрын
*almost all math can be coded* _here is a sample of producing __#fractals__ in __#html5__ & __#javascript__..._
Coding Math: Episode 36 - Verlet Integration Part I
13:03
Coding Math
Рет қаралды 64 М.
How I made my own Fractal
17:33
Kuvina Saydaki
Рет қаралды 116 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Coding Challenge #14: Fractal Trees - Recursive
15:53
The Coding Train
Рет қаралды 894 М.
Decoding Math’s Famed Fractal: The Mandelbrot Set
8:08
Quanta Magazine
Рет қаралды 248 М.
Fractal Ray Marching in Blender (Geometry Nodes)
8:24
Seanterelle
Рет қаралды 22 М.
I Made 3D FRACTALS In Unity!
4:35
Braian Strak
Рет қаралды 31 М.
Fractals: The Geometry of Chaos - Christmas Lectures with Ian Stewart
4:33
The Royal Institution
Рет қаралды 33 М.
SIMULER des FRACTALES [Mandelbrot]
6:33
Quantale
Рет қаралды 5 М.
Sequences 10: Fractals and Chaos
13:47
MathTV
Рет қаралды 87 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН