Kochawave iterates

  Рет қаралды 653

Algoristo

Algoristo

Күн бұрын

Yesterday I came across the Kochawave, a variant of the Koch snowflake. I started playing with the shape in my simple linear IFS setup, and I soon came up with a simple way to parametrize the IFS by the vertices of the generating curve. The results didn't look very nice, though. I wanted to draw the curve in a single line using GL_LINE_STRIP, and it needed a different approach from my usual IFS setup.
Fortunately, I'd used the line_strip approach before with the Hilbert curve, which defines a mapping from the number line to 2D coordinates. The idea was quite readily adapted to a general fractal curve, and the parametrization from the vertices of the base curve turned out even simpler.
Of course, the iterations are done on the GPU, here using a vertex shader. I also thought about a CPU-based approach in Numpy, but crunching a large number of points in parallel is much nicer on a GPU; with 4 segments and 10 iterations, there are 4^10 or about 1 million final vertices. It also avoids moving the points to the GPU again for every frame. So this runs very smoothly in realtime even on an old integrated Intel GPU.
So while this looks pretty basic - something like the course exercises that got me started back in 2015 - the techniques are new to me, and I hope to find more artistic uses for them in the future.
#kochawave #kochcurve #kochsnowflake #fractalcurve #iteratedfunctionsystem #lineart #linedrawing #singlelinedrawing #pythoncode #opengl #algorithmicart #algorist #mathart #laskutaide #computerart #ittaide #kuavataide #iterati

Пікірлер: 1
Koch Curve: The Beauty of Fractal Geometry
7:30
CuriousWalk
Рет қаралды 13 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 18 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
The Evil Design of Japan's Death Penalty
9:54
Hoog
Рет қаралды 3,3 МЛН
How An Infinite Hotel Ran Out Of Room
6:07
Veritasium
Рет қаралды 30 МЛН
Creating YOUR CRAZY Programming Ideas!
8:02
CodeCraftedPhysics
Рет қаралды 854 М.
The Beauty of Fractal Geometry (#SoME2)
4:55
Geometry
Рет қаралды 109 М.
Lenia: Expanded Universe 1080p
3:17
Bert Chan (Azul)
Рет қаралды 62 М.
AI Learns to Play Tag (and breaks the game)
10:29
AI Warehouse
Рет қаралды 3,5 МЛН
Is It Possible To Completely Fill a Klein Bottle?
7:01
The Action Lab
Рет қаралды 22 МЛН
Chaos Game | Fractals emerging from chaos | Computer simulation |
2:46
Radiocarbon calibration through time - 55,000 to 0 cal BP
9:01
Maarten Blaauw
Рет қаралды 25
Quest To Find The Largest Number
11:43
CodeParade
Рет қаралды 457 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН