procedural galaxy generator

by gtoal
See inside

For use in a space game. The galaxy shape is approximated by a blob in the center with two spiral arms tacked on. Different spiral-arm galaxy styles can be generated using the slider. This version does not yet include other types of galaxies such as globular clusters although that should be possible by increasing the blob component and reducing the arms.

Notes and Credits

Code by pixelisator - I remixed it to save the point cloud in a way that looks more like a small galaxy. Also now uses Layzej's Gaussian random generator.

Uses the formula r=at for a spiral using polar coordinates.

It could do with a better approximation but this is OK as a proof of concept. Also I'm tempted to add depth cueing with star size and shade, and maybe a perspective rather than isometric view.

Shared: 3 Sep 2016 Modified: 25 Apr 2017
Favorite this project 22
Love this project 37
Total views 510
View the remix tree  2
More projects by gtoal