ScratchData LogoScratchData
Back to gtoal's profile

procedural galaxy generator

GTgtoal•Created September 3, 2016
procedural galaxy generator
59
38
947 views
View on Scratch

Instructions

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. https://phosphorus.github.io/app.html?id=119933253&turbo=false&full-screen=true

Description

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.

Project Details

Project ID119933253
CreatedSeptember 3, 2016
Last ModifiedApril 25, 2017
SharedSeptember 3, 2016
Visibilityvisible
CommentsAllowed