@TheArtofCodeIsCool
  @TheArtofCodeIsCool
The Art of Code | Shader Showcase: Megaparsecs @TheArtofCodeIsCool | Uploaded January 2021 | Updated October 2024, 1 hour ago.
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: facebook.com/groups/theartofcode
Patreon: patreon.com/TheArtOfCode
ShaderToy: shadertoy.com/user/BigWIngs
PayPal Donation: paypal.me/theartofcode

Live version:
shadertoy.com/view/WsyBDz

Music: Yearning by Michael fk - Artlist
Shader Showcase: MegaparsecsLive Coding:Bending LightInterpolation for Dummies!Kelp Forest - ShaderToyHow to create a camera in ShaderToyRay Marching for Dummies!Writing a ray marcher in UnityShader Showcase: HODLShader Showcase: Up in flamesLive Coding: 3d Truchet WeaveShader Showcase: Danger NoodleHow to texture a procedural object

Shader Showcase: Megaparsecs @TheArtofCodeIsCool

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER