My attempt at a spiral galaxy. Made from a bunch of ellipses.
I got the idea when I read about new theories concerning spiral galaxy formation. The standard idea of the spiral arms just orbiting around the center doesn't work because it would 'wind up' the spiral with every rotation. This would very quickly (on cosmological scales) lead the spirals to would wind up to the point where they'd dissapear. This is not what we observe so a different theory is needed. One such theory, called desnity wave theory, is that we are actually looking at lots of overlapping and rotated elliptical orbits, which I tried to emulate here.
Playing around with this made me realize that a galaxy is just a big vortex of dust, where every dust particle is a star! I threw in some super big & bright stars to make for a more interesting image. There is also the occasional supernova thrown in. Though in reality super novae happen in our galaxy about once every 50 years and since one orbit takes about 250 million years it should have about 150,000 super nova flashes per second if we look at it at this time-scale!
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
Live version:
https://www.shadertoy.com/view/WsyBDz
Music: Yearning by Michael fk - Artlist
...
https://www.youtube.com/watch?v=LaRCG5Ek1sc
This is the second part of the making of Over the Moon. Be sure to check out part one here:
https://youtu.be/LLZPnh_LK8c
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
Live version:
https://www.shadertoy.com/view/4s33zf
Music:
Solitude - Michele Nobler
ShaderToy for absolute beginners:
https://www.youtube.com/watch?v=u5HAYVHsasc
...
https://www.youtube.com/watch?v=XaiYKkxvrFM
What can be better than procedural matroshkas marching to the Kremlin?
The live version can be found here:
https://www.shadertoy.com/view/XlcSzM
Music from here:
https://soundcloud.com/officialskorge/skorge-tetris-theme
Follow me on twitter @The_ArtOfCode
PayPal Donation: https://paypal.me/theartofcode
...
https://www.youtube.com/watch?v=0kbZzVolycw
This is a continuation of the first video in this series. In this video we make the effect more pleasing to the eye.
Be sure to check out part 1 here:
https://youtu.be/xh61Ol2X4GA
========== Social Media Links ==========
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
========== Other videos to watch ==========
ShaderToy for complete beginners: https://youtu.be/u5HAYVHsasc
Part 1of this video:
https://youtu.be/xh61Ol2X4GA
...
https://www.youtube.com/watch?v=1nDlYawrdqI
In a previous video (linked below) I showed how to make a basic Truchet effect. This tutorial video is about how to weave two Truchet layers together to create a more complex and interesting pattern. It also covers some tips and tricks to make the final result look cooler.
========== Get an NFT of this effect ===============
I added log-polar coordinates to make it look more interesting. If you want to do the same in your own effect, you can just convert the uv coordinates like so:
uv = vec2(atan(uv.x, uv.y)/6.283185+0.5, log(length(uv)));
https://www.fxhash.xyz/generative/18101
========== Timetable ==========
00:00 - Intro
00:40 - Setup
01:48 - Truchet Function
17:58 - Colors
19:27 - Multiple Layers
20:40 - Making a Weave
25:37 - Better Blending
29:42 - Chebychev Length
33:10 - Changing Curves
34:01 - Changing Thickness
36:33 - Adding a Pattern
42:14 - Outro
========== Social Media Links ==========
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
FX Hash (NFTs): https://www.fxhash.xyz/u/The%20Art%20of%20Code
========== If you want to follow along ==========
Start point:
Just go to ShaderToy.com and make a new shader.
End point:
https://www.shadertoy.com/view/NtdyWN
========== Other videos to watch ==========
ShaderToy for complete beginners: https://youtu.be/u5HAYVHsasc
Truchet Tiling, explained!: https://www.youtube.com/watch?v=2R7h76GoIJM
...
https://www.youtube.com/watch?v=pmS-F6RJhAk
In science, technology and engineering it is very common to have to interpolate between data points. One of the many ways to do this is through Lagrange interpolation. In this video I'll go through how it works and if you go to desmos.com you can follow right along.
========== Social Media Links ==========
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
========== If you want to follow along ==========
Starting point:
https://www.desmos.com
End Point:
https://www.desmos.com/calculator/zsnqrj1xu3
========== Other videos to watch ==========
Check out my video about linear interpolation:
https://www.youtube.com/watch?v=NO5JGFJJ_Kk
Or using smooth minimums:
https://www.youtube.com/watch?v=YJ4iyff7zbk
Or using Hermite interpolation (smoothstep):
https://www.youtube.com/watch?v=60VoL-F-jIQ
...
https://www.youtube.com/watch?v=4S6G-zenbFM
This is the first of two videos about Conways Game of Life. In this video we'll go through the basic concept, some crazy examples of what people have made, and then we code life from scratch!
========== Social Media Links ==========
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
========== Other videos to watch ==========
ShaderToy for complete beginners: https://youtu.be/u5HAYVHsasc
How to build a computer in game of life: https://www.youtube.com/watch?v=Kk2MH9O4pXY
...
https://www.youtube.com/watch?v=xh61Ol2X4GA
In this video we'll make a fireworks effect from scratch!
If you are new to ShaderToy then I highly recommend starting at the beginning:
https://youtu.be/u5HAYVHsasc
If you want to know how smoothstep works, check this out:
https://youtu.be/60VoL-F-jIQ
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
Live version:
Not the exact same code as in the video, but close enough ;)
https://www.shadertoy.com/view/lscGRl
...
https://www.youtube.com/watch?v=xDxAnguEOn8
In this video we'll look at how to construct a torus, or trefoil knot. Torus knots are not too hard to understand and they look very cool and can serve as the basis of many cool effects.
Twitter: @The_ArtOfCode
Facebook: https://www.facebook.com/groups/theartofcode/
Patreon: https://www.patreon.com/TheArtOfCode
ShaderToy: https://www.shadertoy.com/user/BigWIngs
PayPal Donation: https://paypal.me/theartofcode
Starting point:
https://www.shadertoy.com/view/WtGXDD
Live version:
https://www.shadertoy.com/view/ttXBzB
To learn how to write your own ray marcher, see this video:
https://www.youtube.com/watch?v=PGtv-dBi2wE
...
https://www.youtube.com/watch?v=2dzJZx0yngg